-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
55 lines (55 loc) · 1.79 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
{
"name": "opencc-extension",
"version": "0.3.3",
"description": "A browser extension to convert webpages between different Chinese variants.",
"repository": "github:tnychn/opencc-extension",
"author": {
"name": "Tony Chan",
"email": "[email protected]",
"url": "https://github.com/tnychn"
},
"license": "MIT",
"scripts": {
"build": "./build.mjs",
"build:watch": "yarn build watch",
"start": "web-ext run -s ./build",
"start:firefox": "concurrently \"NODE_ENV='development' BROWSER='firefox' yarn build:watch\" \"wait-on ./build/manifest.json && yarn start\"",
"start:chromium": "concurrently \"NODE_ENV='development' BROWSER='chrome' yarn build:watch\" \"wait-on ./build/manifest.json && yarn start -t chromium\"",
"dist:chrome": "NODE_ENV='production' BROWSER='chrome' yarn build ./dist/chrome && web-ext build -s ./dist/chrome -a . -n opencc.chrome.zip",
"dist:firefox": "NODE_ENV='production' BROWSER='firefox' yarn build ./dist/firefox && web-ext build -s ./dist/firefox -a . -n opencc.firefox.zip",
"dist": "concurrently \"yarn dist:chrome\" \"yarn dist:firefox\" && rm -rf ./dist"
},
"dependencies": {
"opencc-js": "^1.0.5"
},
"devDependencies": {
"@types/chrome": "^0.0.164",
"@types/opencc-js": "^1.0.3",
"concurrently": "^6.5.1",
"esbuild": "^0.17.19",
"eslint": "^8.56.0",
"eslint-config-prettier": "^8.10.0",
"prettier": "^2.8.8",
"wait-on": "^6.0.1",
"web-ext": "^6.8.0"
},
"prettier": {
"tabWidth": 2,
"printWidth": 120
},
"eslintConfig": {
"env": {
"es6": true,
"browser": true,
"webextensions": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"prettier"
]
}
}