diff --git a/.gitignore b/.gitignore index 034bee8..2d80aba 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ README.html addon.env src/web-ext-artifacts/* +web-ext-artifacts # JetBrains IDE files .idea diff --git a/package.json b/package.json index 280bc60..86c6230 100644 --- a/package.json +++ b/package.json @@ -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",