Skip to content

Commit

Permalink
Merge pull request #2427 from mozilla/add-helper-dev-scripts
Browse files Browse the repository at this point in the history
Add remove/restore scripts for nested .git folder
  • Loading branch information
dannycolin authored Jan 10, 2023
2 parents 0b23478 + 7256456 commit a91c6b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ README.html
addon.env

src/web-ext-artifacts/*
web-ext-artifacts

# JetBrains IDE files
.idea
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,16 @@
"url": "git+https://github.com/mozilla/multi-account-containers.git"
},
"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:addon": "./bin/addons-linter.sh",
"lint:css": "stylelint src/css/*.css",
"lint:html": "htmllint *.html",
"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",
"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:once": "mocha test/**/*.test.js",
"test:watch": "npm run test:once -- --watch",
Expand Down

0 comments on commit a91c6b0

Please sign in to comment.