|
| 1 | +{ |
| 2 | + "name": "webext", |
| 3 | + "displayName": "unsight.dev browser extension", |
| 4 | + "version": "0.0.1", |
| 5 | + "private": true, |
| 6 | + "description": "unsight.dev browser extension", |
| 7 | + "scripts": { |
| 8 | + "dev": "pnpm run clear && cross-env NODE_ENV=development run-p dev:*", |
| 9 | + "dev-firefox": "pnpm run clear && cross-env NODE_ENV=development EXTENSION=firefox run-p dev:*", |
| 10 | + "dev:prepare": "esno scripts/prepare.ts", |
| 11 | + "dev:background": "pnpm run build:background -- --mode development", |
| 12 | + "dev:web": "vite", |
| 13 | + "dev:js": "pnpm run build:js -- --mode development", |
| 14 | + "build": "cross-env NODE_ENV=production run-s clear build:web build:prepare build:background build:js", |
| 15 | + "build:prepare": "esno scripts/prepare.ts", |
| 16 | + "build:background": "vite build --config vite.config.background.mts", |
| 17 | + "build:web": "vite build", |
| 18 | + "build:js": "vite build --config vite.config.content.mts", |
| 19 | + "pack": "cross-env NODE_ENV=production run-p pack:*", |
| 20 | + "pack:zip": "rimraf extension.zip && jszip-cli add extension/* -o ./extension.zip", |
| 21 | + "pack:crx": "crx pack extension -o ./extension.crx", |
| 22 | + "pack:xpi": "cross-env WEB_EXT_ARTIFACTS_DIR=./ web-ext build --source-dir ./extension --filename extension.xpi --overwrite-dest", |
| 23 | + "start:chromium": "web-ext run --source-dir ./extension --target=chromium", |
| 24 | + "start:firefox": "web-ext run --source-dir ./extension --target=firefox-desktop", |
| 25 | + "clear": "rimraf --glob extension/dist extension/manifest.json extension.*", |
| 26 | + "test:unit": "vitest test", |
| 27 | + "test:e2e": "playwright test", |
| 28 | + "test:types": "pnpm build && tsc --noEmit" |
| 29 | + }, |
| 30 | + "dependencies": { |
| 31 | + "@github/relative-time-element": "^4.4.4", |
| 32 | + "@vueuse/shared": "^12.0.0" |
| 33 | + }, |
| 34 | + "devDependencies": { |
| 35 | + "@ffflorian/jszip-cli": "^3.8.2", |
| 36 | + "@iconify/json": "^2.2.287", |
| 37 | + "@playwright/test": "^1.49.1", |
| 38 | + "@types/node": "^22.10.2", |
| 39 | + "@types/webextension-polyfill": "^0.12.1", |
| 40 | + "@unocss/reset": "^0.65.2", |
| 41 | + "@vitejs/plugin-vue": "^5.2.1", |
| 42 | + "@vue/test-utils": "^2.4.6", |
| 43 | + "@vueuse/core": "^12.0.0", |
| 44 | + "chokidar": "^4.0.3", |
| 45 | + "cross-env": "^7.0.3", |
| 46 | + "crx": "^5.0.1", |
| 47 | + "esno": "^4.8.0", |
| 48 | + "jsdom": "^25.0.1", |
| 49 | + "kolorist": "^1.8.0", |
| 50 | + "npm-run-all": "^4.1.5", |
| 51 | + "rimraf": "^6.0.1", |
| 52 | + "typescript": "5.6.3", |
| 53 | + "unocss": "^0.65.2", |
| 54 | + "unplugin-auto-import": "^0.19.0", |
| 55 | + "unplugin-icons": "^0.22.0", |
| 56 | + "unplugin-vue-components": "^0.28.0", |
| 57 | + "vite": "^5.4.11", |
| 58 | + "vitest": "^2.1.8", |
| 59 | + "vue": "^3.5.13", |
| 60 | + "web-ext": "^8.3.0", |
| 61 | + "webext-bridge": "^6.0.1", |
| 62 | + "webextension-polyfill": "^0.12.0" |
| 63 | + } |
| 64 | +} |
0 commit comments