From 68c504011b4a5d101c5acc799a43e29d78952c6b Mon Sep 17 00:00:00 2001 From: Bauke Date: Sun, 10 Nov 2019 18:55:19 +0100 Subject: [PATCH] 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. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 52f6d52..4770838 100644 --- a/package.json +++ b/package.json @@ -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/"