forked from antfu-collective/vitesse-webext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
67 lines (67 loc) · 3.11 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
{
"name": "react-extension-template",
"displayName": "Template for a browser extension with React, Typescript and Vite.",
"version": "0.0.1",
"description": "[description]",
"scripts": {
"clear": "rimraf build/*",
"dev": "npm run clear && cross-env NODE_ENV=development run-p dev:*",
"dev:prepare": "esno scripts/prepare.ts",
"dev:js": "vite build --config vite.config.content.ts --mode development",
"dev:web": "vite --mode development",
"build": "cross-env NODE_ENV=production run-s clear build:web build:prepare build:js",
"build:prepare": "esno scripts/prepare.ts",
"build:web": "vite build",
"build:js": "vite build --config vite.config.content.ts",
"pack": "cross-env NODE_ENV=production run-p pack:*",
"pack:chrome": "rimraf ./dist/$npm_package_name-chrome-$npm_package_version.zip && (cd build && zip ../dist/$npm_package_name-chrome-$npm_package_version.zip -r *)",
"pack:edge": "rimraf ./dist/$npm_package_name-edge-$npm_package_version.zip && (cd build && zip ../dist/$npm_package_name-edge-$npm_package_version.zip -r *)",
"pack:firefox": "cross-env WEB_EXT_ARTIFACTS_DIR=./dist/ web-ext build --source-dir ./build/firefox --filename $npm_package_name-firefox-$npm_package_version.xpi --overwrite-dest",
"pack:source": "git clone . ./dist/extension-source && rimraf ./dist/extension-source/.git && (cd dist/extension-source && zip ../$npm_package_name-source-$npm_package_version.zip -r *) && rimraf ./dist/extension-source",
"deploy": "cross-env NODE_ENV=production run-p deploy:*",
"deploy:chrome": "BROWSER=chrome npm run build && npm run pack:chrome",
"deploy:edge": "BROWSER=edge npm run build && npm run pack:edge",
"deploy:firefox": "BROWSER=firefox npm run build && npm run pack:firefox && npm run pack:source",
"deploy:source": "npm run pack:source",
"start:chromium": "web-ext run --source-dir ./build --target=chromium",
"start:firefox": "web-ext run --source-dir ./build --target=firefox-desktop",
"lint": "eslint src --ext .js,.jsx,.ts,.tsx",
"format": "prettier --write ./src ",
"extract": "i18next-scanner"
},
"devDependencies": {
"@types/fs-extra": "^9.0.13",
"@types/node": "^16.10.2",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@types/webextension-polyfill": "^0.8.2",
"@typescript-eslint/eslint-plugin": "^4.32.0",
"@typescript-eslint/parser": "^5.10.0",
"@vitejs/plugin-react": "^1.1.4",
"chokidar": "^3.5.2",
"cross-env": "^7.0.3",
"crx": "^5.0.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"esno": "^0.10.0",
"fs-extra": "^10.0.0",
"i18next-scanner": "^3.1.0",
"kolorist": "^1.5.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"sass": "^1.49.0",
"typescript": "^4.4.3",
"typescript-plugin-css-modules": "^3.4.0",
"vite": "^2.6.2",
"vite-plugin-svgr": "^1.0.1",
"web-ext": "^6.6.0"
},
"dependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2",
"webextension-polyfill": "^0.8.0"
}
}