fix: build scripts for test

This commit is contained in:
Michal Szczepanski 2023-10-30 17:52:16 +01:00
parent 257872aebe
commit e06c4e77bd
7 changed files with 16 additions and 9 deletions

@ -3,6 +3,6 @@ export NODE_ENV=development
# swap manifests
cp src/manifest.ch.json src/manifest.json
# build
npm run prod
npm run release:ch
# swap manifests back
cp src/manifest.dev.json src/manifest.json

@ -3,6 +3,6 @@ export NODE_ENV=production
# swap manifests
cp src/manifest.ch.json src/manifest.json
# build
npm run prod
npm run release:ch
# swap manifests back
cp src/manifest.dev.json src/manifest.json

@ -3,6 +3,6 @@ export NODE_ENV=production
# swap manifests
cp src/manifest.ch.test.json src/manifest.json
# build
npm run prod
npm run release:test:ch
# swap manifests back
cp src/manifest.dev.json src/manifest.json

@ -3,6 +3,6 @@ export NODE_ENV=production
# swap manifests
cp src/manifest.ff.json src/manifest.json
# build
npm run prod:ff
npm run release:ff
# swap manifests back
cp src/manifest.dev.json src/manifest.json

@ -3,6 +3,6 @@ export NODE_ENV=production
# swap manifests
cp src/manifest.ff.test.json src/manifest.json
# build
npm run prod:ff
npm run release:test:ff
# swap manifests back
cp src/manifest.dev.json src/manifest.json

@ -8,9 +8,10 @@
"scripts": {
"dev": "parcel watch src/manifest.json --host localhost --target pinmenote-dev",
"dev:ff": "parcel build src/manifest.json --target pinmenote-firefox-dev",
"build": "npm run prod && npm run prod:ff",
"prod": "parcel build src/manifest.json --target pinmenote-prod --log-level verbose --no-cache --reporter @parcel/reporter-bundle-analyzer",
"prod:ff": "parcel build src/manifest.json --target pinmenote-firefox-prod --log-level verbose --no-cache --reporter @parcel/reporter-bundle-analyzer",
"release:ch": "parcel build src/manifest.json --target pinmenote-prod --log-level verbose --no-cache --reporter @parcel/reporter-bundle-analyzer",
"release:test:ch": "parcel build src/manifest.json --target pinmenote-test --log-level verbose --no-cache --reporter @parcel/reporter-bundle-analyzer",
"release:ff": "parcel build src/manifest.json --target pinmenote-firefox-prod --log-level verbose --no-cache --reporter @parcel/reporter-bundle-analyzer",
"release:test:ff": "parcel build src/manifest.json --target pinmenote-firefox-test --log-level verbose --no-cache --reporter @parcel/reporter-bundle-analyzer",
"lint": "eslint --ext .ts,.tsx src/",
"lint:fix": "eslint --ext .ts,.tsx src/ --fix"
},
@ -21,6 +22,12 @@
"pinmenote-prod": {
"sourceMap": false
},
"pinmenote-test": {
"sourceMap": false
},
"pinmenote-firefox-test": {
"sourceMap": false
},
"pinmenote-firefox-prod": {
"sourceMap": false
},

@ -17,7 +17,7 @@
"24": "assets/icon/24.png",
"32": "assets/icon/32.png"
},
"default_title": "pinmenote",
"default_title": "pinmenote-dev",
"default_popup": "default-popup/default-popup.html"
},
"permissions": ["activeTab", "storage", "unlimitedStorage", "scripting", "downloads"],