Add npm run all to run build+test+lint
This commit is contained in:
@@ -81,9 +81,7 @@ WANT TO CONTRIBUTE?
|
|||||||
For developers, once you've made changes to the code, you should run these commands for testing:
|
For developers, once you've made changes to the code, you should run these commands for testing:
|
||||||
|
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run all
|
||||||
npm run test
|
|
||||||
npm run lint
|
|
||||||
|
|
||||||
Note that running `firefox qunit_test_runner.html` is usually more informative than running `karma` with `npm run test`. They both run the same tests.
|
Note that running `firefox qunit_test_runner.html` is usually more informative than running `karma` with `npm run test`. They both run the same tests.
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
"url": "https://github.com/impress/impress.js/issues"
|
"url": "https://github.com/impress/impress.js/issues"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"all": "npm run build && npm run test && npm run lint",
|
||||||
"build": "node build.js",
|
"build": "node build.js",
|
||||||
"lint": "jshint src test/*.js && jscs src test/*.js",
|
"lint": "jshint src test/*.js && jscs src test/*.js",
|
||||||
"new-lint": "eslint src test",
|
"new-lint": "eslint src test",
|
||||||
|
|||||||
Reference in New Issue
Block a user