Skip to content

Commit

Permalink
Add wxt commands for build, zip, and postinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
Royal-lobster committed Dec 29, 2024
1 parent d9f4374 commit 01e3adb
Show file tree
Hide file tree
Showing 8 changed files with 3,030 additions and 160 deletions.
1 change: 1 addition & 0 deletions .wxt/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
73 changes: 0 additions & 73 deletions manifest.config.ts

This file was deleted.

15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
"license": "MIT",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"release": "pnpm build && publish-extension --chrome-zip \"artifacts/chrome.zip\" --chrome-extension-id \"$CHROME_EXTENSION_ID\" --chrome-client-id \"$CHROME_CLIENT_ID\" --chrome-client-secret \"$CHROME_CLIENT_SECRET\" --chrome-refresh-token \"$CHROME_REFRESH_TOKEN\"",
"release:cli": "pnpm build && dotenv -e .env -- publish-extension --chrome-zip \"artifacts/chrome.zip\" --chrome-extension-id \"$CHROME_EXTENSION_ID\" --chrome-client-id \"$CHROME_CLIENT_ID\" --chrome-client-secret \"$CHROME_CLIENT_SECRET\" --chrome-refresh-token \"$CHROME_REFRESH_TOKEN\"",
"dev": "wxt",
"dev:firefox": "wxt -b firefox",
"build": "wxt build",
"build:firefox": "wxt build -b firefox",
"zip": "wxt zip",
"zip:firefox": "wxt zip -b firefox",
"postinstall": "wxt prepare",
"format": "biome format . --write",
"lint": "biome check .",
"flush": "rm -rf artifacts/ dist/",
Expand Down Expand Up @@ -70,6 +72,7 @@
"tailwindcss": "^3.3.5",
"typescript": "^4.9.5",
"vite": "^4.1.1",
"vite-plugin-zip-pack": "^1.0.5"
"vite-plugin-zip-pack": "^1.0.5",
"wxt": "^0.19.23"
}
}
Loading

0 comments on commit 01e3adb

Please sign in to comment.