Add remove/restore scripts for nested .git folder
The /src/_locales/.github folder causes `web-ext run` to fail when running the npm dev script. This folder removal isn't tracked or surfaced during local dev work when working from the root directory.
This commit is contained in:
parent
a7aaacd82c
commit
035450ae96
1 changed files with 3 additions and 1 deletions
|
@ -36,13 +36,15 @@
|
||||||
"url": "git+https://github.com/mozilla/multi-account-containers.git"
|
"url": "git+https://github.com/mozilla/multi-account-containers.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "web-ext run -s src/",
|
"dev": "npm run remove-locales-github && web-ext run -s src/",
|
||||||
"lint": "npm-run-all lint:*",
|
"lint": "npm-run-all lint:*",
|
||||||
"lint:addon": "./bin/addons-linter.sh",
|
"lint:addon": "./bin/addons-linter.sh",
|
||||||
"lint:css": "stylelint src/css/*.css",
|
"lint:css": "stylelint src/css/*.css",
|
||||||
"lint:html": "htmllint *.html",
|
"lint:html": "htmllint *.html",
|
||||||
"lint:js": "eslint .",
|
"lint:js": "eslint .",
|
||||||
"package": "rm -rf src/web-ext-artifacts && npm run build && mv src/web-ext-artifacts/firefox_multi-account_containers-*.zip addon.xpi",
|
"package": "rm -rf src/web-ext-artifacts && npm run build && mv src/web-ext-artifacts/firefox_multi-account_containers-*.zip addon.xpi",
|
||||||
|
"restore-locales-github": "cd src/_locales && git restore .github/",
|
||||||
|
"remove-locales-github": "rm -rf src/_locales/.github",
|
||||||
"test": "npm run lint && npm run coverage",
|
"test": "npm run lint && npm run coverage",
|
||||||
"test:once": "mocha test/**/*.test.js",
|
"test:once": "mocha test/**/*.test.js",
|
||||||
"test:watch": "npm run test:once -- --watch",
|
"test:watch": "npm run test:once -- --watch",
|
||||||
|
|
Loading…
Add table
Reference in a new issue