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 # swap manifests
cp src/manifest.ch.json src/manifest.json cp src/manifest.ch.json src/manifest.json
# build # build
npm run prod npm run release:ch
# swap manifests back # swap manifests back
cp src/manifest.dev.json src/manifest.json cp src/manifest.dev.json src/manifest.json

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

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

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

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

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

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