-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
43 lines (43 loc) · 1.87 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
{
"scripts": {
"build": "yarn clean && yarn build:firefox && yarn build:chromium",
"build:firefox": "yarn copy-manifest:firefox && npx parcel build 'src/**/*.*' --no-source-maps --target firefox",
"build:chromium": "yarn copy-manifest:chromium && npx parcel build 'src/**/*.*' --no-source-maps --target chromium",
"watch:firefox": "yarn clean && yarn copy-manifest:firefox && npx parcel watch 'src/**/*.*' --no-source-maps --no-hmr --target firefox",
"watch:chromium": "yarn clean && yarn copy-manifest:chromium && npx parcel watch 'src/**/*.*' --no-source-maps --no-hmr --target chromium",
"copy-manifest:firefox": "mkdir -p dist/firefox && cp manifest/firefox.json dist/firefox/manifest.json",
"copy-manifest:chromium": "mkdir -p dist/chromium && cp manifest/chromium.json dist/chromium/manifest.json",
"package": "yarn package:chromium && yarn package:firefox",
"package:firefox": "yarn build:firefox && npx web-ext build --source-dir dist/firefox/ --overwrite-dest -n firefox.zip",
"package:chromium": "yarn build:chromium && npx web-ext build --source-dir dist/chromium/ --overwrite-dest -n chromium.zip",
"clean": "rm -rf dist && rm -rf .parcel-cache"
},
"targets": {
"firefox": {
"includeNodeModules": true,
"optimize": true
},
"chromium": {
"includeNodeModules": true,
"optimize": true
}
},
"devDependencies": {
"@fontsource/archivo-black": "^5.0.17",
"@fontsource/inconsolata": "^5.0.15",
"@fortawesome/fontawesome-free": "^6.4.2",
"@parcel/transformer-sass": "2.10.0",
"@parcel/validator-typescript": "^2.10.0",
"@types/chrome": "^0.0.248",
"@types/jquery": "^3.5.24",
"@types/webextension-polyfill": "^0.10.5",
"bulma": "^0.9.4",
"jquery": "^3.7.1",
"parcel": "^2.10.0",
"parcel-reporter-static-files-copy": "^1.5.3",
"typescript": "^5.2.2",
"web-ext": "^7.8.0",
"webextension-polyfill": "^0.10.0"
},
"dependencies": {}
}