Skip to content

Commit 4236585

Browse files
outsiderisQix-
authored andcommitted
migrate Makefile to npm scripts
Signed-off-by: Outsider <[email protected]>
1 parent 4490cd9 commit 4236585

File tree

3 files changed

+15
-40
lines changed

3 files changed

+15
-40
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ install:
1111
- npm install
1212

1313
script:
14-
- make all
14+
- npm run lint
15+
- npm test

Makefile

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

package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@
2323
"Andrew Rhyne <[email protected]>"
2424
],
2525
"license": "MIT",
26+
"scripts": {
27+
"lint": "xo",
28+
"test": "npm run test:node && npm run test:browser",
29+
"test:node": "istanbul cover _mocha -- test.js",
30+
"posttest:node": "cat ./coverage/lcov.info | coveralls",
31+
"pretest:browser": "npm run build",
32+
"test:browser": "karma start --single-run",
33+
"prebuild:debug": "mkdir -p dist && browserify --standalone debug -o dist/debug.es6.js .",
34+
"build:debug": "babel -o dist/debug.js dist/debug.es6.js > dist/debug.js",
35+
"build:test": "babel -d dist test.js",
36+
"build": "npm run build:debug && npm run build:test",
37+
"clean": "rimraf dist coverage"
38+
},
2639
"dependencies": {
2740
"ms": "^2.1.1"
2841
},

0 commit comments

Comments
 (0)