forked from antfu-collective/vitesse-webext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
86 lines (86 loc) · 3.3 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
{
"name": "vitesse-webext",
"displayName": "Vitesse WebExt",
"version": "0.0.1",
"description": "[description]",
"private": true,
"scripts": {
"dev": "npm run clear && cross-env NODE_ENV=development TARGET_BROWSER=firefox run-p dev:*",
"dev:prepare": "esno scripts/prepare.ts",
"dev:web": "vite",
"dev:js": "vite build --config vite.config.content.ts",
"build": "cross-env NODE_ENV=production run-s clear build:web build:prepare",
"build:prepare": "esno scripts/prepare.ts",
"build:web": "vite build",
"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",
"release:firefox": "cross-env TARGET_BROWSER=firefox run-s build pack:xpi",
"release:chromium": "cross-env TARGET_BROWSER=chrome run-s build pack:crx",
"start:chromium": "web-ext run --source-dir ./extension --target=chromium",
"start:firefox": "web-ext run --source-dir ./extension --target=firefox-desktop",
"start:firefoxdev": "web-ext run --source-dir ./dist --target=firefox-desktop --firefox=firefoxdeveloperedition",
"clear": "rimraf extension/dist extension/manifest.json extension.*",
"check": "svelte-check --tsconfig=./tsconfig.json",
"lint": "prettier --check . && eslint --cache \"src/**/*.{json,ts,js,svelte}\"",
"format": "prettier --write .",
"lint:fix": "npm run format && eslint --cache --fix \"src/**/*.{json,ts,js,svelte}\""
},
"devDependencies": {
"@ffflorian/jszip-cli": "^3.1.6",
"@iconify/json": "^2.1.27",
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.41",
"@tsconfig/svelte": "^3.0.0",
"@types/chrome": "^0.0.181",
"@types/download": "^8.0.1",
"@types/eslint": "^8.4.1",
"@types/fs-extra": "^9.0.13",
"@types/node": "^17.0.23",
"@types/webextension-polyfill": "^0.8.3",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"body-parser": "1.19.1",
"chokidar": "^3.5.3",
"cross-env": "^7.0.3",
"crx": "^5.0.1",
"download": "^8.0.0",
"eslint": "^8.13.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte3": "^3.4.1",
"esno": "^0.14.1",
"express": "4.17.2",
"fs-extra": "^10.0.1",
"husky": "^7.0.4",
"kolorist": "^1.5.1",
"lint-staged": "^12.3.7",
"npm-run-all": "^4.1.5",
"prettier": "^2.6.2",
"prettier-plugin-svelte": "^2.7.0",
"rimraf": "^3.0.2",
"rollup": ">=2.50.0 <3.0.0",
"safe-compare": "^1.1.4",
"svelte": "^3.47.0",
"svelte-check": "^2.6.0",
"svelte-preprocess": "^4.10.5",
"svelte-webext-stores": "^0.0.12",
"typescript": "^4.6.3",
"typescript-svelte-plugin": "^0.3.1",
"unplugin-auto-import": "^0.7.0",
"unplugin-icons": "^0.14.1",
"vite": "^2.9.1",
"vite-plugin-web-extension": "^1.3.1",
"vite-plugin-windicss": "^1.8.3",
"web-ext": "^6.8.0",
"webext-bridge": "^5.0.4",
"webextension-polyfill": "^0.9.0",
"windicss": "^3.5.1"
},
"lint-staged": {
"*.{ts,svelte}": [
"eslint --cache --fix",
"prettier --ignore-unknown --write"
],
"*.svelte": "svelte-check"
}
}