1
Fork 0

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:
Bauke 2019-11-10 18:55:19 +01:00
parent 6802f57de5
commit 68c504011b
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 2 additions and 1 deletions

View File

@ -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/"