Chore: Add a "zip-source" command to package.json
To upload the extension to AMO it needs to include the source code, this command grabs all the relevant files and zips them.
This commit is contained in:
parent
6802f57de5
commit
68c504011b
|
@ -13,7 +13,8 @@
|
|||
"start": "web-ext run --source-dir build/ --bc",
|
||||
"start:chromium": "yarn start --chromium-profile chromium/ --keep-profile-changes --target chromium --start-url \"chrome://extensions\"",
|
||||
"start:firefox": "yarn start --firefox-profile firefox/ --keep-profile-changes --target firefox-desktop --start-url \"about:debugging#/runtime/this-firefox\"",
|
||||
"build": "yarn clean && parcel build source/assets/manifest.json -d build/ && web-ext build --source-dir build/",
|
||||
"build": "yarn clean && parcel build source/assets/manifest.json -d build/ && web-ext build --source-dir build/ && yarn zip-source",
|
||||
"zip-source": "zip -r web-ext-artifacts/tildes_reextended-source.zip ReadMe.md yarn.lock tsconfig.json package.json .gitignore License source/ scripts/ .vscode/",
|
||||
"clean": "trash .cache build/ web-ext-artifacts/",
|
||||
"bump": "ts-node scripts/bump-version.ts && yarn build",
|
||||
"test": "xo && stylelint source/scss/"
|
||||
|
|
Loading…
Reference in New Issue