🍤 Build for manifest v2 and v3 at once

- and zip them
This commit is contained in:
Shiba 2022-07-01 20:39:13 +00:00
parent 0ba4efd43e
commit f072c95051
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
.cache
dist
build
node_modules
web-ext-artifacts
yarn-error.log

View file

@ -21,8 +21,8 @@
"build:v2": "npm run clear:dist ; npm run build:base && npm run pick:manifest:v2",
"build:v3": "npm run clear:dist ; npm run build:base && npm run pick:manifest:v3",
"build": "npm run build:v3",
"build": "rm -r ./build ; mkdir ./build && npm run build:v2 && zip -r ./build/manifest-v2.zip ./dist && npm run build:v3 && zip -r ./build/manifest-v3.zip ./dist",
"watch:v2": "npm run clear:dist ; npm run pick:manifest:v2 && npm-run-all -l -p watch:parcel watch:assets",
"watch:v3": "npm run clear:dist ; npm run pick:manifest:v3 && npm-run-all -l -p watch:parcel watch:assets",