Merge pull request #2427 from mozilla/add-helper-dev-scripts
Add remove/restore scripts for nested .git folder
This commit is contained in:
commit
a91c6b09a9
2 changed files with 5 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,6 +8,7 @@ README.html
|
||||||
addon.env
|
addon.env
|
||||||
|
|
||||||
src/web-ext-artifacts/*
|
src/web-ext-artifacts/*
|
||||||
|
web-ext-artifacts
|
||||||
|
|
||||||
# JetBrains IDE files
|
# JetBrains IDE files
|
||||||
.idea
|
.idea
|
||||||
|
|
|
@ -36,13 +36,16 @@
|
||||||
"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/",
|
"build": "web-ext build -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