add npm run build-shield command

This commit is contained in:
Jonathan Kingston 2017-05-11 16:52:37 +01:00 committed by groovecoder
parent 5916bd2871
commit 08ba094748
2 changed files with 8 additions and 2 deletions

View file

@ -59,8 +59,12 @@ Check out the [Browser Toolbox](https://developer.mozilla.org/en-US/docs/Tools/B
### Building .xpi ### Building .xpi
To build a local .xpi, use the plain [`jpm To build a local testpilot-containers.xpi, use the plain [`jpm
xpi`](https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/jpm#jpm_xpi) command. xpi`](https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/jpm#jpm_xpi) command,
or run `npm run build`.
#### Building a shield .xpi
To build a local shield-study-containers.xpi, run `npm run build-shield`.
### Signing an .xpi ### Signing an .xpi

View file

@ -16,6 +16,7 @@
"eslint-plugin-promise": "^3.4.0", "eslint-plugin-promise": "^3.4.0",
"htmllint-cli": "^0.0.5", "htmllint-cli": "^0.0.5",
"jpm": "^1.2.2", "jpm": "^1.2.2",
"json": "^9.0.6",
"npm-run-all": "^4.0.0", "npm-run-all": "^4.0.0",
"shield-studies-addon-utils": "^2.0.0", "shield-studies-addon-utils": "^2.0.0",
"stylelint": "^7.9.0", "stylelint": "^7.9.0",
@ -42,6 +43,7 @@
}, },
"scripts": { "scripts": {
"build": "npm test && jpm xpi", "build": "npm test && jpm xpi",
"build-shield": "npm test && json -I -f package.json -e 'this.name=\"shield-study-containers\"' && jpm xpi && json -I -f package.json -e 'this.name=\"testpilot-containers\"'",
"deploy": "deploy-txp", "deploy": "deploy-txp",
"lint": "npm-run-all lint:*", "lint": "npm-run-all lint:*",
"lint:addon": "addons-linter webextension --self-hosted", "lint:addon": "addons-linter webextension --self-hosted",