Skip to content

Commit

Permalink
build: convert Makefile script to npm scripts (#1424)
Browse files Browse the repository at this point in the history
* Convert Makefile script to npm scripts

* Change node version 15 to version 16
  • Loading branch information
koddsson committed Oct 11, 2021
1 parent a8b8d79 commit f3ffa15
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 119 deletions.
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

0 comments on commit f3ffa15

Please sign in to comment.