This repository has been archived by the owner on Jul 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
81 lines (81 loc) · 2.99 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
{
"name": "radical-native",
"private": true,
"scripts": {
"clean": "rimraf build target",
"build": "cross-env run-s build:*",
"build:firefox": "cross-env mkdir -p build/firefox && run-p build:firefox:*",
"build:firefox:parcel": "parcel build src/background.ts src/contentscript.ts src/resources/bundle.ts -d build/firefox --no-source-maps --no-minify",
"build:firefox:static": "cp src/manifest.firefox.json build/firefox/manifest.json && cp -r src/icons LICENSE build/firefox",
"build:native": "cross-env ./native/scripts/build.sh",
"dev": "run-p dev:*",
"dev:firefox": "mkdir -p build/firefox && run-p dev:firefox:*",
"dev:firefox:parcel": "parcel watch src/background.ts src/contentscript.ts src/resources/bundle.ts src/riot-patch.ts -d build/firefox --no-hmr",
"dev:firefox:static": "nodemon -w src --ext '*' --exec 'cp src/manifest.firefox.json build/firefox/manifest.json && cp -r src/icons build/firefox'",
"dev:chrome": "mkdir -p build/chrome && run-p dev:chrome:*",
"dev:chrome:parcel": "parcel watch src/background.ts src/contentscript.ts src/resources/bundle.ts src/riot-patch.ts -d build/chrome --no-hmr",
"dev:chrome:polyfill": "cp node_modules/webextension-polyfill/dist/browser-polyfill.min.js build/chrome",
"dev:chrome:static": "nodemon -w src --ext '*' --exec 'cp src/manifest.chrome.json build/chrome/manifest.json'",
"dev:install-native": "./native/scripts/dev.sh",
"dev:native": "cargo watch -x build",
"lint": "cross-env run-p lint:*",
"lint:eslint": "eslint src/**/*.ts",
"lint:tsc": "tsc",
"test": "cross-env run-p test:cargo",
"test:cargo": "cargo test",
"test:webext": "ts-mocha --paths",
"test:watch": "run-p test:watch:*",
"test:watch:cargo": "cargo watch -x test",
"test:watch:webext": "npm run test:webext -- --watch",
"test:coverage": "run-p test:coverage:*",
"test:coverage:webext": "nyc npm run test"
},
"devDependencies": {
"@types/firefox-webext-browser": "^82.0.1",
"@types/mocha": "^9.0.0",
"@types/node": "^16.4.12",
"@types/uuid": "^8.3.1",
"@typescript-eslint/eslint-plugin": "^4.29.0",
"@typescript-eslint/parser": "^4.29.0",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"mocha": "^9.0.3",
"nodemon": "^2.0.12",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"parcel": "^1.12.4",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"ts-mocha": "^8.0.0",
"tsconfig-paths": "^3.10.1",
"typescript": "^4.3.5",
"webextension-polyfill": "^0.8.0"
},
"browserslist": [
"Firefox >= 67",
"last 2 Chrome versions"
],
"prettier": {
"trailingComma": "es5",
"endOfLine": "auto"
},
"mocha": {
"bail": true,
"reporter": "progress",
"extension": "ts",
"project": "tsconfig.json"
},
"nyc": {
"reporter": [
"html",
"text",
"lcov"
]
},
"license": "MIT",
"dependencies": {
"uuid": "^8.3.2"
}
}