Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update bundle scripts #31

Merged
merged 3 commits into from
Jul 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@
"deps:install": "npm i",
"deps:check": "ncu",
"deps:update": "ncu -u",
"bundle:clean": "rimraf build",
"bundle:non-code": "npm run bundle:clean && mkdir -p build && cp -r images manifest.json src/popup.html build",
"bundle:code-dev": "esbuild src/extension.js --watch --bundle --outfile=build/content.js",
"bundle:code-prod": "esbuild src/extension.js --minify --bundle --outfile=build/content.js",
"bundle:dev": "npm run bundle:non-code && npm run bundle:code-dev",
"bundle:prod": "npm run bundle:non-code && npm run bundle:code-prod",
"bundle:clean": "rimraf build && mkdir build",
"bundle:code": "npm run bundle:clean && esbuild content=src/extension.js popup=src/popup.html images/icon-16.png images/icon-32.png images/icon-48.png images/icon-128.png manifest.json --bundle --loader:.html=copy --loader:.png=copy --loader:.json=copy --outdir=build",
"bundle:dev": "npm run bundle:code -- --watch",
"bundle:prod": "npm run bundle:code -- --minify",
"bundle:release": "npm run bundle:prod && ./scripts/createArtifact.js"
},
"devDependencies": {
Expand Down