-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
package.json
50 lines (50 loc) · 2.16 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
{
"name": "watch-on-lbry",
"version": "1.5.4",
"license": "GPL-3.0",
"scripts": {
"build:assets": "cpx \"src/**/*.{json,png,svg}\" dist/",
"watch:assets": "cpx --watch -v \"src/**/*.{json,png,svg}\" dist/",
"build:parcel": "cross-env NODE_ENV=production parcel build --no-source-maps --no-minify \"src/**/*.{js,jsx,ts,tsx}\" \"src/**/*.html\" \"src/**/*.md\"",
"watch:parcel": "parcel watch --no-hmr --no-source-maps \"src/**/*.{js,jsx,ts,tsx}\" \"src/**/*.html\" \"src/**/*.md\"",
"build:webext": "web-ext build --source-dir ./dist --overwrite-dest",
"clear:dist": "rm -r ./dist ; mkdir ./dist",
"build:base": "npm-run-all -l -p build:parcel build:assets",
"pick:manifest:v2": "cp -b ./manifest.v2.json ./dist/manifest.json",
"pick:manifest:v3": "cp -b ./manifest.v3.json ./dist/manifest.json",
"build:v2": "npm run clear:dist ; npm run build:base && npm run pick:manifest:v2",
"build:v3": "npm run clear:dist ; npm run build:base && npm run pick:manifest:v3",
"build": "rm -r ./build ; mkdir ./build && npm run build:v2 && zip -r ./build/manifest-v2.zip ./dist && npm run build:v3 && zip -r ./build/manifest-v3.zip ./dist",
"watch:v2": "npm run clear:dist ; npm run pick:manifest:v2 && npm-run-all -l -p watch:parcel watch:assets",
"watch:v3": "npm run clear:dist ; npm run pick:manifest:v3 && npm-run-all -l -p watch:parcel watch:assets",
"watch": "npm run watch:v3",
"start:chrome": "web-ext run -t chromium --source-dir ./dist",
"start:firefox": "web-ext run --source-dir ./dist",
"test": "jest"
},
"browserslist": [
">1%",
"not ie > 0"
],
"devDependencies": {
"@babel/preset-typescript": "^7.10.4",
"@types/chrome": "0.0.124",
"@types/classnames": "^2.2.10",
"@types/jest": "^26.0.14",
"@types/lodash": "^4.14.162",
"braces": ">=2.3.1",
"classnames": "^2.2.6",
"cpx": "^1.5.0",
"cross-env": "^7.0.2",
"jest": "^26.5.3",
"lodash": "^4.17.21",
"marked": "^2.0.0",
"node-forge": "^0.10.0",
"node-sass": "^4.14.1",
"npm-run-all": "^4.1.5",
"parcel-bundler": "^1.12.4",
"preact": "^10.5.4",
"typescript": "^4.0.3",
"web-ext": "^5.2.0"
}
}