improvements to npm run scripts to not require any global modules

This commit is contained in:
Peter Snyder 2017-11-11 14:18:13 -05:00
parent 9b3b8a39e9
commit 5d742ad810
No known key found for this signature in database
GPG key ID: 9690F0C12F24762F
2 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "WebAPI Manager",
"version": "0.9.9 ",
"version": "0.9.9",
"description": "Improves browser security and privacy by controlling page access to the Web API.",
"icons": {
"48": "images/uic-48.png",

View file

@ -22,13 +22,13 @@
"contributors": [],
"scripts": {
"clean": "rm -Rf dist/",
"bundle": "node_modules/gulp/bin/gulp.js clean && node_modules/gulp/bin/gulp.js && web-ext -s add-on -a dist build --overwrite-dest",
"firefox": "node_modules/web-ext/bin/web-ext -s add-on run",
"bundle": "node_modules/gulp/bin/gulp.js clean && node_modules/gulp/bin/gulp.js && node_modules/web-ext/bin/web-ext -s add-on -a dist build --overwrite-dest",
"firefox": "node_modules/cross-env/dist/bin/cross-env.js npm run bundle && node_modules/web-ext/bin/web-ext -s add-on run",
"lint": "node_modules/eslint/bin/eslint.js .",
"lint:fix": "node_modules/eslint/bin/eslint.js --fix .",
"test": "npm run clean; npm run bundle && ln -s `ls dist/` dist/webapi_manager.zip && cross-env node_modules/mocha/bin/mocha test/unit/*.js test/functional/*.js --only-local-tests",
"test:watch": "cross-env npm test --watch",
"test:all": "npm run clean; npm run bundle && ln -s `ls dist/` dist/webapi_manager.zip && cross-env node_modules/mocha/bin/mocha test/unit/*.js test/functional/*.js"
"test": "npm run clean; npm run bundle && ln -s `ls dist/` dist/webapi_manager.zip && node_modules/cross-env/dist/bin/cross-env.js node_modules/mocha/bin/mocha test/unit/*.js test/functional/*.js --only-local-tests",
"test:watch": "node_modules/cross-env/dist/bin/cross-env.js npm test --watch",
"test:all": "npm run clean; npm run bundle && ln -s `ls dist/` dist/webapi_manager.zip && node_modules/cross-env/dist/bin/cross-env.js node_modules/mocha/bin/mocha test/unit/*.js test/functional/*.js"
},
"pre-push": {
"run": [