Skip to content

Commit 17dcd9f

Browse files
committed
feat: npm run firefox:nightly
Runs extension in Firefox Nightly, downloads the latest one if missing.
1 parent 9d96232 commit 17dcd9f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

DEVELOPER-NOTES.md

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ Each `npm` task can run separately, but most of the time, `dev-build`, `test`, a
9191
- `npm run lint:standard`: Run [Standard](http://standardjs.com) linter ([IPFS JavaScript projects default to standard code style](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md))
9292
- `npm run lint:web-ext`: Run [addons-linter](https://github.com/mozilla/addons-linter) shipped with `web-ext` tool
9393
- `npm run firefox`: Run as temporary add-on in Firefox
94+
- `npm run firefox:nightly`: Run as temporary add-on in Firefox Nightly (uses one in `./firefox/`, see `get-firefox-nightly` below)
9495
- `npm run chromium`: Run as temporary add-on in Chromium
9596
- `npm run get-firefox-nightly`: Fetch latest Firefox nightly build to `./firefox/`
9697
- `npm run firefox:beta:add -- --update-link "https://host/path/to/file.xpi" file.xpi`: Add a manifest entry for new self-hosted beta for Firefox

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"prepush": "run-s clean build lint test",
5454
"chromium": "run-s bundle:chromium && web-ext run --target chromium",
5555
"firefox": "run-s bundle:firefox && web-ext run --url about:debugging",
56+
"firefox:nightly": "cross-env PATH=\"./firefox:$PATH\" run-s get-firefox-nightly firefox",
5657
"firefox:beta:add": "faauv --update ci/firefox/update.json ",
5758
"get-firefox-nightly": "shx test -e ./firefox/firefox || get-firefox -b nightly -e",
5859
"changelog": "npx conventional-changelog-cli -p angular -i CHANGELOG.md -s",

0 commit comments

Comments
 (0)