update README & package.json to match web-ext flow

This commit is contained in:
groovecoder 2017-11-29 13:49:56 -06:00 committed by Jonathan Kingston
parent d944116e3e
commit bea201a389
2 changed files with 8 additions and 14 deletions

View file

@ -18,8 +18,8 @@ For more info, see:
## Development ## Development
1. Install web-ext with npm 1. `npm install`
2. cd src; web-ext run -f Nightly 2. `./node_modules/.bin/web-ext run -s src/
### Testing ### Testing
TBD TBD
@ -33,22 +33,15 @@ TBD
4. Push the tag up to GitHub: `git push --tags` 4. Push the tag up to GitHub: `git push --tags`
#### Publish to AMO #### Publish to AMO
While the add-on is an Embedded Web Extension, we have to use the [Mozilla
Internal Signing
Service](https://mana.mozilla.org/wiki/display/FIREFOX/Internal+Extension+Signing)
to sign it as a Mozilla extension exempt from AMO's Web Extension restrictions.
So, to distribute the add-on to AMO: 1. `npm run-script build`
2. [Upload the `.zip` to AMO](https://addons.mozilla.org/en-US/developers/addon/multi-account-containers/versions/submit/)
1. Use `jpm xpi` to build the `.xpi` file
2. [Submit the `.xpi` to the Internal Signing Service and download the signed `.xpi`](https://mana.mozilla.org/wiki/display/SVCOPS/Sign+a+Mozilla+Internal+Extension)
3. [Upload the signed `.xpi` file to
AMO](https://addons.mozilla.org/en-US/developers/addon/multi-account-containers/versions/submit/)
#### Publish to GitHub #### Publish to GitHub
Finally, we also publish the release to GitHub for those followers. Finally, we also publish the release to GitHub for those followers.
1. [Make the new release on 1. Download the signed `.xpi` from [the addon versions page](https://addons.mozilla.org/en-US/developers/addon/multi-account-containers/versions)
2. [Make the new release on
GitHub](https://github.com/mozilla/multi-account-containers/releases/new) GitHub](https://github.com/mozilla/multi-account-containers/releases/new)
* Use the version number for "Tag version" and "Release title" * Use the version number for "Tag version" and "Release title"
* Release notes: copy the output of `git log --no-merges --pretty=format:"%h %s" <previous-version>..<new-version>` * Release notes: copy the output of `git log --no-merges --pretty=format:"%h %s" <previous-version>..<new-version>`

View file

@ -19,7 +19,8 @@
"npm-run-all": "^4.0.0", "npm-run-all": "^4.0.0",
"stylelint": "^7.9.0", "stylelint": "^7.9.0",
"stylelint-config-standard": "^16.0.0", "stylelint-config-standard": "^16.0.0",
"stylelint-order": "^0.3.0" "stylelint-order": "^0.3.0",
"web-ext": "^2.2.2"
}, },
"homepage": "https://github.com/mozilla/testpilot-containers#readme", "homepage": "https://github.com/mozilla/testpilot-containers#readme",
"license": "MPL-2.0", "license": "MPL-2.0",