This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
package.json
30 lines (30 loc) · 2.82 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"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"
}