31 строка
2.8 KiB
JSON
31 строка
2.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 scripts/manifest.json extension/manifest.json; 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",
|
|
"android": "cp scripts/manifest-dev-android.json extension/manifest.json; cp extension/settings/dev.js extension/settings.js; npm run update-localization; web-ext run -t firefox-android --firefox-apk org.mozilla.fenix -s extension --verbose --no-config-discovery --pref=extensions.experiments.enabled=true",
|
|
"android-win": "copy scripts\\manifest-dev-android.json extension\\manifest.json & copy extension\\settings\\dev.js extension\\settings.js & npm run update-localization-win & web-ext run -t firefox-android --firefox-apk org.mozilla.fenix -s extension --verbose --no-config-discovery --pref=extensions.experiments.enabled=true",
|
|
"desktop": "cp scripts/manifest.json extension/manifest.json; 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",
|
|
"clean-localization-folder-win": "rmdir /S /Q extension\\_locales\\.github & rmdir /S /Q extension\\_locales\\.git",
|
|
"update-localization": "git submodule init && git submodule update --remote --depth 1 extension/_locales; npm run clean-localization-folder",
|
|
"update-localization-win": "git submodule init & git submodule update --remote --depth 1 extension\\_locales & npm run clean-localization-folder-win",
|
|
"update-telemetry-schema": "bash scripts/update-telemetry-schema.sh",
|
|
"update-bergamot-version": "bash scripts/update-begamot-version.sh"
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "^8.44.0",
|
|
"web-ext": "^7.6.2",
|
|
"markdown": "^0.5.0"
|
|
},
|
|
"version": "1.3.4"
|
|
}
|