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

Convert Makefile script to npm scripts #1424

Merged
merged 2 commits into from
Oct 11, 2021
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
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
node-version:
- 12 # to be removed 2022-04-30
- 14 # to be removed 2023-04-30
- 15 # to be removed 2021-06-01
- 16 # to be removed 2024-04-30
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
117 changes: 0 additions & 117 deletions Makefile

This file was deleted.

10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,15 @@
"./": "./"
},
"scripts": {
"test": "make test"
"prebuild": "npm run clean",
"build": "browserify --bare --outfile chai.js --standalone chai --entry index.js",
"pretest": "npm run build",
"test": "npm run test-node && npm run test-chrome",
"test-node": "mocha --require ./test/bootstrap/index.js --reporter dot test/*.js test/*.mjs",
"test-chrome": "karma start karma.conf.js --single-run --browsers HeadlessChrome",
"test-firefox": "karma start karma.conf.js --browsers Firefox",
"test-cov": "istanbul cover ./node_modules/.bin/_mocha -- --require ./test/bootstrap/index.js test/*.js test/*.mjs",
"clean": "rm -f chai.js coverage"
},
"engines": {
"node": ">=12"
Expand Down