Skip to content

Commit

Permalink
Add source command
Browse files Browse the repository at this point in the history
  • Loading branch information
hyzyla committed Apr 10, 2022
1 parent b34c2c7 commit 475a8c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
distribution
.parcel-cache
source.zip
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"watch": "parcel watch source/manifest.json --dist-dir distribution --no-cache --no-hmr",
"lint": "npx eslint source",
"start:firefox": "web-ext run",
"start:chrome": "web-ext run -t chromium"
"start:chrome": "web-ext run -t chromium",
"source": "git archive -o source.zip HEAD"
},
"browserslist": [
"last 1 Chrome version",
Expand Down
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ the generated extension.
Built using
[fregante/browser-extension-template](https://github.com/fregante/browser-extension-template/generate)
template


### Create source archive for AMO verification
1. Run `npm run source`
2. Now you can find source code at root directory by the name `source.zip`

0 comments on commit 475a8c7

Please sign in to comment.