-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
95 lines (95 loc) · 3.04 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"name": "@aiou/webext-template",
"version": "0.2.3",
"description": "webext template powered by vite and react",
"keywords": [
"react",
"vite",
"extension",
"chrome",
"firefox",
"aiou",
"template"
],
"license": "MIT",
"packageManager": "[email protected]",
"homepage": "https://github.com/neo-hack/webext-template",
"repository": {
"type": "git",
"url": "https://github.com/neo-hack/webext-template"
},
"bugs": {
"url": "https://github.com/neo-hack/webext-template/issues",
"email": "[email protected]"
},
"author": "JW <[email protected]> (https://twitter.com/jiangweixian)",
"scripts": {
"dev": "npm run clear && cross-env NODE_ENV=development run-p dev:*",
"dev:bg": "tsup --watch ./src",
"dev:prepare": "esno scripts/prepare.ts",
"dev:web": "vite",
"dev:js": "npm run build:js -- --mode development",
"build": "cross-env NODE_ENV=production run-s clear build:*",
"build:web": "vite build",
"build:prepare": "esno scripts/prepare.ts",
"build:js": "vite build --config vite.config.content.ts",
"build:bg": "tsup --config tsup.config.ts",
"pack": "cross-env NODE_ENV=production run-p pack:*",
"pack:zip": "rimraf extension.zip && jszip-cli add extension -o ./extension.zip",
"pack:crx": "crx pack extension -o ./extension.crx",
"pack:xpi": "cross-env WEB_EXT_ARTIFACTS_DIR=./ web-ext build --source-dir ./extension --filename extension.xpi --overwrite-dest",
"start:chromium": "web-ext run --source-dir ./extension --target=chromium",
"start:firefox": "web-ext run --source-dir ./extension --target=firefox-desktop",
"clear": "rimraf extension",
"lint:fix": "eslint . --fix",
"prepare": "husky install",
"ci:publish": "pnpm changeset publish",
"ci:version": "pnpm changeset version"
},
"lint-staged": {
"**/**/*.{js,ts,tsx,vue,json}": ["eslint --fix"]
},
"dependencies": {
"document-ready": "^2.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@aiou/eslint-config": "^0.7.8",
"@changesets/cli": "^2.17.0",
"@ffflorian/jszip-cli": "^3.1.5",
"@rollup/plugin-replace": "^5.0.2",
"@types/document-ready": "^2.0.0",
"@types/fs-extra": "^9.0.12",
"@types/node": "^16.7.13",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@types/webextension-polyfill": "^0.10.0",
"@vitejs/plugin-react": "^2.0.1",
"autoprefixer": "^10.4.14",
"chokidar": "^3.5.2",
"cross-env": "^7.0.3",
"crx": "^5.0.1",
"cz-emoji": "^1.3.1",
"eslint": "^8.36.0",
"esno": "^0.9.1",
"fs-extra": "^10.0.0",
"husky": "^7.0.0",
"kolorist": "^1.5.0",
"lint-staged": "^11.1.2",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.2",
"tailwindcss": "^3.2.7",
"terser": "^5.16.6",
"tsup": "^6.6.3",
"typescript": "^4.4.2",
"unplugin-auto-import": "^0.4.5",
"vite": "^3.2.4",
"web-ext": "^6.3.0",
"webext-bridge": "^4.1.1",
"webextension-polyfill": "^0.8.0"
},
"engines": {
"node": ">=16"
}
}