Skip to content

Commit

Permalink
migrate Makefile to npm scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Outsider <outsideris@gmail.com>
  • Loading branch information
outsideris authored and Qix- committed Oct 3, 2018
1 parent 4490cd9 commit 4236585
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 40 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -11,4 +11,5 @@ install:
- npm install

script:
- make all
- npm run lint
- npm test
39 changes: 0 additions & 39 deletions Makefile

This file was deleted.

13 changes: 13 additions & 0 deletions package.json
Expand Up @@ -23,6 +23,19 @@
"Andrew Rhyne <rhyneandrew@gmail.com>"
],
"license": "MIT",
"scripts": {
"lint": "xo",
"test": "npm run test:node && npm run test:browser",
"test:node": "istanbul cover _mocha -- test.js",
"posttest:node": "cat ./coverage/lcov.info | coveralls",
"pretest:browser": "npm run build",
"test:browser": "karma start --single-run",
"prebuild:debug": "mkdir -p dist && browserify --standalone debug -o dist/debug.es6.js .",
"build:debug": "babel -o dist/debug.js dist/debug.es6.js > dist/debug.js",
"build:test": "babel -d dist test.js",
"build": "npm run build:debug && npm run build:test",
"clean": "rimraf dist coverage"
},
"dependencies": {
"ms": "^2.1.1"
},
Expand Down

0 comments on commit 4236585

Please sign in to comment.