Skip to content

Commit de28f40

Browse files
authored
remove snippets files (#3054)
* remove snippets files
1 parent e958705 commit de28f40

File tree

15 files changed

+2
-873
lines changed

15 files changed

+2
-873
lines changed

.github/workflows/nodejs.yml

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -269,48 +269,3 @@ jobs:
269269
id: docs-artifact
270270
if: steps.check-tag.outputs.published_version_tag == 'true'
271271
uses: actions/deploy-pages@v4
272-
273-
snippets:
274-
if: |
275-
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
276-
github.event_name == 'workflow_dispatch'
277-
runs-on: ubuntu-latest
278-
timeout-minutes: 10
279-
280-
strategy:
281-
max-parallel: 1
282-
matrix:
283-
node-version: [20.x, 22.x]
284-
285-
steps:
286-
- uses: actions/checkout@v4
287-
- name: Use Node.js ${{ matrix.node-version }}
288-
uses: actions/setup-node@v4
289-
with:
290-
node-version: ${{ matrix.node-version }}
291-
292-
- name: Setup npm version 10
293-
run: |
294-
npm i -g npm@10 --registry=https://registry.npmjs.org
295-
296-
- name: Cache node modules
297-
id: cache-nodemodules
298-
uses: actions/cache@v4
299-
env:
300-
cache-name: cache-node-modules
301-
with:
302-
# caching node_modules
303-
path: |
304-
node_modules
305-
*/*/node_modules
306-
key: ${{ runner.os }}-deps-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
307-
restore-keys: |
308-
${{ runner.os }}-deps-${{ matrix.node-version }}-
309-
310-
- name: Install Dependencies
311-
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
312-
run: npm ci
313-
314-
- run: npm run build
315-
- name: Run Snippets
316-
run: (for i in packages/xrpl/snippets/src/*.ts; do echo "Running $i" && npx ts-node $i || exit 1; done)

packages/xrpl/.eslintrc.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,6 @@ module.exports = {
7676
'@typescript-eslint/no-magic-numbers': 'off',
7777
},
7878
},
79-
{
80-
files: ['snippets/src/*.ts'],
81-
rules: {
82-
'import/no-unused-modules': 'off',
83-
// Each file has a particular flow.
84-
'max-lines-per-function': 'off',
85-
'max-statements': 'off',
86-
// Snippets have logs on console to better understand the working.
87-
'no-console': 'off',
88-
},
89-
},
9079
{
9180
files: ['test/**/*.ts'],
9281
rules: {

packages/xrpl/package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@
4747
"ws": "^8.14.2"
4848
},
4949
"scripts": {
50-
"build": "run-s build:lib build:snippets build:web",
51-
"build:snippets": "tsc --build ./snippets/tsconfig.json",
50+
"build": "run-s build:lib build:web",
5251
"build:lib": "tsc --build tsconfig.build.json",
5352
"build:web": "webpack",
5453
"build:browserTests": "webpack --config ./test/webpack.config.js",
@@ -65,10 +64,7 @@
6564
"test:watch": "jest --watch --config=jest.config.unit.js --verbose false --silent=false",
6665
"format": "prettier --write '{src,test}/**/*.ts'",
6766
"lint": "eslint . --ext .ts --max-warnings 0",
68-
"perf": "./scripts/perf_test.sh",
69-
"compile:snippets": "tsc -p snippets/tsconfig.json",
70-
"start:snippet": "npm run compile:snippets && node",
71-
"inspect:snippet": "npm run compile:snippets && node inspect"
67+
"perf": "./scripts/perf_test.sh"
7268
},
7369
"prettier": "@xrplf/prettier-config",
7470
"repository": {

packages/xrpl/snippets/README.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/xrpl/snippets/src/claimPayChannel.ts

Lines changed: 0 additions & 74 deletions
This file was deleted.

packages/xrpl/snippets/src/getTransaction.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

packages/xrpl/snippets/src/multisigning.ts

Lines changed: 0 additions & 81 deletions
This file was deleted.

packages/xrpl/snippets/src/partialPayment.ts

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)