Skip to content

Commit

Permalink
chore(scripts): cleanup package.json scripts (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Jan 24, 2023
1 parent 70e0a36 commit 1585605
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: yarn install

- name: Linter.
run: yarn lint:ci
run: yarn lint
tests:
# The type of runner that the job will run on
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ All the commits in this repo follow the [Conventional Commits spec](https://www.
### Updating polkadot-js dependencies

1. Every Monday the polkadot-js ecosystem will usually come out with a new release. It's important that we keep up,
and read the release notes for any breaking changes or high priority updates. In order to update all the dependencies and resolutions run `yarn update-pjs-deps`.
and read the release notes for any breaking changes or high priority updates. In order to update all the dependencies and resolutions run `yarn up "@polkadot/*"`.

- @polkadot/api [release notes](https://github.com/polkadot-js/api/releases)
- @polkadot/util-crypto [release notes](https://github.com/polkadot-js/common/releases)
Expand Down
25 changes: 11 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,31 @@
"url": "https://github.com/paritytech/substrate-api-sidecar/issues"
},
"scripts": {
"main": "node ./build/src/main.js",
"dev": "tsc-watch --onSuccess \"yarn run main\"",
"deploy": "yarn build && npm publish",
"build": "substrate-exec-rimraf build/ && substrate-exec-tsc && echo Build Finished",
"build:calc": "bash ./calc/build.sh",
"build:docker": "docker build -t substrate-api-sidecar .",
"build:docs": "(cd docs && yarn && yarn build)",
"main": "node ./build/src/main.js",
"build:scripts": "substrate-exec-rimraf scripts/build/ && substrate-exec-tsc --project scripts/tsconfig.json",
"build:e2e-tests": "substrate-exec-rimraf e2e-tests/build/ && substrate-exec-tsc --project e2e-tests/tsconfig.json",
"lint": "substrate-dev-run-lint",
"lint:fix": "substrate-dev-run-lint --fix",
"lint:ci": "substrate-dev-run-lint",
"deploy": "yarn build && npm publish",
"lint:scripts": "cd scripts && substrate-dev-run-lint",
"lint:e2e-tests": "cd e2e-tests && substrate-dev-run-lint",
"start": "yarn run main",
"start:log-rpc": "yarn run build && NODE_ENV=test yarn run main ",
"dev": "tsc-watch --onSuccess \"yarn run main\"",
"start:latest-e2e-tests": "yarn build:e2e-tests && node ./e2e-tests/build/latest/index.js",
"start:historical-e2e-scripts": "yarn build:scripts && node scripts/build/runHistoricalE2eTests.js",
"start:latest-e2e-scripts": "yarn build:scripts && node scripts/build/runLatestE2eTests.js",
"test": "NODE_ENV=test substrate-exec-jest --detectOpenHandles",
"test:watch": "NODE_ENV=test substrate-exec-jest --watch",
"test:ci": "NODE_ENV=test substrate-exec-jest --runInBand",
"lint:e2e-tests": "cd e2e-tests && substrate-dev-run-lint",
"build:e2e-tests": "substrate-exec-rimraf e2e-tests/build/ && substrate-exec-tsc --project e2e-tests/tsconfig.json",
"test:latest-e2e-tests": "yarn start:latest-e2e-scripts",
"test:historical-e2e-tests": "yarn start:historical-e2e-scripts",
"start:historical-e2e-tests": "yarn build:e2e-tests && node ./e2e-tests/build/historical/historical.js --config=./e2e-tests/jest.config.js",
"start:latest-e2e-tests": "yarn build:e2e-tests && node ./e2e-tests/build/latest/index.js",
"start:historical-e2e-scripts": "yarn build:scripts && node scripts/build/runHistoricalE2eTests.js",
"start:latest-e2e-scripts": "yarn build:scripts && node scripts/build/runLatestE2eTests.js",
"build:scripts": "substrate-exec-rimraf scripts/build/ && substrate-exec-tsc --project scripts/tsconfig.json",
"lint:scripts": "cd scripts && substrate-dev-run-lint",
"start:test-release": "yarn build:scripts && node scripts/build/runYarnPack.js",
"test:test-release": "yarn start:test-release",
"update-pjs-deps": "substrate-update-pjs-deps && yarn"
"test:test-release": "yarn build:scripts && node scripts/build/runYarnPack.js"
},
"dependencies": {
"@polkadot/api": "^9.12.1",
Expand Down

0 comments on commit 1585605

Please sign in to comment.