Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,48 +269,3 @@ jobs:
id: docs-artifact
if: steps.check-tag.outputs.published_version_tag == 'true'
uses: actions/deploy-pages@v4

snippets:
if: |
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
max-parallel: 1
matrix:
node-version: [20.x, 22.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup npm version 10
run: |
npm i -g npm@10 --registry=https://registry.npmjs.org

- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
# caching node_modules
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-deps-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-deps-${{ matrix.node-version }}-

- name: Install Dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: npm ci

- run: npm run build
- name: Run Snippets
run: (for i in packages/xrpl/snippets/src/*.ts; do echo "Running $i" && npx ts-node $i || exit 1; done)
11 changes: 0 additions & 11 deletions packages/xrpl/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,6 @@ module.exports = {
'@typescript-eslint/no-magic-numbers': 'off',
},
},
{
files: ['snippets/src/*.ts'],
rules: {
'import/no-unused-modules': 'off',
// Each file has a particular flow.
'max-lines-per-function': 'off',
'max-statements': 'off',
// Snippets have logs on console to better understand the working.
'no-console': 'off',
},
},
{
files: ['test/**/*.ts'],
rules: {
Expand Down
8 changes: 2 additions & 6 deletions packages/xrpl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
"ws": "^8.14.2"
},
"scripts": {
"build": "run-s build:lib build:snippets build:web",
"build:snippets": "tsc --build ./snippets/tsconfig.json",
"build": "run-s build:lib build:web",
"build:lib": "tsc --build tsconfig.build.json",
"build:web": "webpack",
"build:browserTests": "webpack --config ./test/webpack.config.js",
Expand All @@ -65,10 +64,7 @@
"test:watch": "jest --watch --config=jest.config.unit.js --verbose false --silent=false",
"format": "prettier --write '{src,test}/**/*.ts'",
"lint": "eslint . --ext .ts --max-warnings 0",
"perf": "./scripts/perf_test.sh",
"compile:snippets": "tsc -p snippets/tsconfig.json",
"start:snippet": "npm run compile:snippets && node",
"inspect:snippet": "npm run compile:snippets && node inspect"
"perf": "./scripts/perf_test.sh"
},
"prettier": "@xrplf/prettier-config",
"repository": {
Expand Down
4 changes: 0 additions & 4 deletions packages/xrpl/snippets/README.md

This file was deleted.

74 changes: 0 additions & 74 deletions packages/xrpl/snippets/src/claimPayChannel.ts

This file was deleted.

40 changes: 0 additions & 40 deletions packages/xrpl/snippets/src/getTransaction.ts

This file was deleted.

81 changes: 0 additions & 81 deletions packages/xrpl/snippets/src/multisigning.ts

This file was deleted.

95 changes: 0 additions & 95 deletions packages/xrpl/snippets/src/partialPayment.ts

This file was deleted.

Loading
Loading