From 5d742ad8101d30415c8f318243afc62af54a3cac Mon Sep 17 00:00:00 2001 From: Peter Snyder Date: Sat, 11 Nov 2017 14:18:13 -0500 Subject: [PATCH] improvements to npm run scripts to not require any global modules --- add-on/manifest.json | 2 +- package.json | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/add-on/manifest.json b/add-on/manifest.json index 75716e0..eeab74a 100644 --- a/add-on/manifest.json +++ b/add-on/manifest.json @@ -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", diff --git a/package.json b/package.json index bfa94a4..4e03fe5 100644 --- a/package.json +++ b/package.json @@ -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": [