Skip to content

Commit

Permalink
Add release script in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
kugurerdem committed Jun 4, 2024
1 parent da3967b commit cbbfa45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,4 @@ hot-reloading feature while building/contributing to this extension. Note that
if you change static files such as assets, etc., you need to re-run `npm run
build` for the changes to apply.

To create a distributable release, use:

`(cd dist && zip ../dist.zip -r *)`

To create a source code release, use:

`zip -r source.zip $(git ls-files)`
To obtain zips, run `npm run release`
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"version": "1.0.0",
"scripts": {
"start": "parcel serve --no-cache -p 8080 src/manifest.json src/manage.html --config @parcel/config-webextension",
"build": "rm -rf dist && parcel build --no-cache --no-scope-hoist src/manifest.json src/manage.html --config @parcel/config-webextension && cp -r src/assets dist/"
"build": "rm -rf dist && parcel build --no-cache --no-scope-hoist src/manifest.json src/manage.html --config @parcel/config-webextension && cp -r src/assets dist/",
"release": "npm run release:dist && npm run release:source",
"release:dist": "(cd dist && zip ../dist.zip -r *)",
"release:source": "zip -r source.zip $(git ls-files)"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit cbbfa45

Please sign in to comment.