27 строки
1.8 KiB
JSON
27 строки
1.8 KiB
JSON
{
|
|
"name": "firefox_translations",
|
|
"scripts": {
|
|
"build-html-changelog": "md2html CHANGELOG.md | cat scripts/changelog.tpl - > extension/view/static/CHANGELOG.html",
|
|
"test": "if [[ -z \"${MOZ_AUTOMATION}\" ]]; then npm run test-esr; npm run test-master; fi",
|
|
"test-esr": "if [[ -z \"${MOZ_AUTOMATION}\" ]]; then python3 scripts/tests/e2e-tests.py esr102; fi",
|
|
"test-master": "if [[ -z \"${MOZ_AUTOMATION}\" ]]; then python3 scripts/tests/e2e-tests.py gecko; fi",
|
|
"lint:js": "eslint -c .eslintrc.js extension",
|
|
"build": "npm run build-html-changelog; cp extension/settings/prod.js extension/settings.js; npm run update-localization; web-ext build -s extension --overwrite-dest --no-config-discovery -n firefox_translations.xpi",
|
|
"build-test": "cp extension/settings/test.js extension/settings.js; npm run update-localization; web-ext build -s extension --overwrite-dest --no-config-discovery -n firefox_translations.xpi",
|
|
"lint:extension": "web-ext lint -s extension",
|
|
"once": "cp extension/settings/dev.js extension/settings.js; npm run update-localization; web-ext run -s extension --verbose --firefox nightly --no-config-discovery --pref=extensions.experiments.enabled=true",
|
|
"package": "npm run build && mv web-ext-artifacts/*.zip addon.xpi",
|
|
"setup-webext": "npm install -g web-ext",
|
|
"clean-localization-folder": "rm -rf extension/_locales/.github; rm -rf extension/_locales/.git",
|
|
"update-localization": "git submodule init && git submodule update --remote --depth 1 extension/_locales; npm run clean-localization-folder",
|
|
"update-telemetry-schema": "bash scripts/update-telemetry-schema.sh",
|
|
"update-bergamot-version": "bash scripts/update-begamot-version.sh"
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "^8.31.0",
|
|
"web-ext": "^7.4.0",
|
|
"markdown": "^0.5.0"
|
|
},
|
|
"version": "1.2.0"
|
|
}
|