Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: standardize npm script names #582

Merged
merged 6 commits into from Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Expand Up @@ -41,7 +41,5 @@ jobs:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install
- name: Build commonjs
run: npm run build
Comment on lines -44 to -45
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build happens via the pretest script.

- name: Run tests
run: npm run unit
run: npm run test
27 changes: 13 additions & 14 deletions package.json
Expand Up @@ -67,22 +67,21 @@
"pre-commit": "lint-staged"
},
"scripts": {
"unit": "npm-run-all -s unit:*",
"unit:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'",
"unit:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs",
"test": "npm-run-all -p unit lint",
"lint": "eslint . --report-unused-disable-directives",
"fixlint": "npm run lint -- --fix",
"build": "rollup -c rollup.config.js",
"build:debug": "npm run build -- -m",
"update-version": "node tools/update-version.js",
"pretest": "npm run build",
"lint": "eslint . --report-unused-disable-directives",
"lint:fix": "npm run lint -- --fix",
"prepublishOnly": "npm run update-version && npm run build",
"sync-docs": "node sync-docs.js",
"generate-release": "eslint-generate-release",
"generate-alpharelease": "eslint-generate-prerelease alpha",
"generate-betarelease": "eslint-generate-prerelease beta",
"generate-rcrelease": "eslint-generate-prerelease rc",
"publish-release": "eslint-publish-release"
"pretest": "npm run build",
"sync:docs": "node sync-docs.js",
snitin315 marked this conversation as resolved.
Show resolved Hide resolved
"test": "npm-run-all -s test:*",
"test:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'",
"test:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs",
"update-version": "node tools/update-version.js",
"release:generate:latest": "eslint-generate-release",
"release:generate:alpha": "eslint-generate-prerelease alpha",
"release:generate:beta": "eslint-generate-prerelease beta",
"release:generate:rc": "eslint-generate-prerelease rc",
"release:publish": "eslint-publish-release"
}
}