Add npm run all to run build+test+lint

This commit is contained in:
Henrik Ingo
2020-03-29 11:32:18 +03:00
parent 99484d11b8
commit ef57b5b471
2 changed files with 2 additions and 3 deletions

View File

@@ -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.

View File

@@ -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",