Skip to content

Commit f3ffa15

Browse files
authored
build: convert Makefile script to npm scripts (#1424)
* Convert Makefile script to npm scripts * Change node version 15 to version 16
1 parent a8b8d79 commit f3ffa15

File tree

3 files changed

+10
-119
lines changed

3 files changed

+10
-119
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
node-version:
2020
- 12 # to be removed 2022-04-30
2121
- 14 # to be removed 2023-04-30
22-
- 15 # to be removed 2021-06-01
22+
- 16 # to be removed 2024-04-30
2323
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2424

2525
steps:

Makefile

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

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@
3434
"./": "./"
3535
},
3636
"scripts": {
37-
"test": "make test"
37+
"prebuild": "npm run clean",
38+
"build": "browserify --bare --outfile chai.js --standalone chai --entry index.js",
39+
"pretest": "npm run build",
40+
"test": "npm run test-node && npm run test-chrome",
41+
"test-node": "mocha --require ./test/bootstrap/index.js --reporter dot test/*.js test/*.mjs",
42+
"test-chrome": "karma start karma.conf.js --single-run --browsers HeadlessChrome",
43+
"test-firefox": "karma start karma.conf.js --browsers Firefox",
44+
"test-cov": "istanbul cover ./node_modules/.bin/_mocha -- --require ./test/bootstrap/index.js test/*.js test/*.mjs",
45+
"clean": "rm -f chai.js coverage"
3846
},
3947
"engines": {
4048
"node": ">=12"

0 commit comments

Comments
 (0)