-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
51 lines (51 loc) · 1.73 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
{
"name": "extension-name",
"scripts": {
"dev": "yarn clean && yarn copy-static && yarn watch:all",
"build": "yarn clean && yarn build:all && yarn copy-static",
"build:all": "yarn build:background & yarn build:contentscript & yarn build:popup & yarn build:options",
"build:contentscript": "parcel build src/contentscript.ts -o contentscript.js",
"build:background": "parcel build src/background.ts -o background.js",
"build:popup": "parcel build src/popup.tsx -o popup.js --public-url='/'",
"watch:all": "run-p -r watch:background watch:contentscript watch:popup",
"watch:contentscript": "parcel watch --hmr-hostname localhost src/contentscript.ts -o contentscript.js",
"watch:background": "parcel watch --hmr-hostname localhost src/background.ts -o background.js",
"watch:popup": "parcel watch --hmr-hostname localhost src/popup.tsx -o popup.js --public-url='/'",
"copy-static": "cp -r static/ dist/",
"clean": "rm -rf dist",
"css-types": "tcm src",
"precommit": "lint-staged"
},
"watch": {
"copy-static": {
"patterns": [
"static"
],
"extensions": "*",
"quiet": false
}
},
"devDependencies": {
"@types/chrome": "^0.0.101",
"@types/d3": "^5.7.2",
"@types/react": "^16.9.25",
"@types/react-dom": "^16.9.5",
"npm-run-all": "^4.1.5",
"npm-watch": "^0.3.0",
"parcel-bundler": "^1.12.3",
"tslint": "^5.19.0",
"typescript": "^3.8.3",
"web-ext-types": "^3.2.1"
},
"dependencies": {
"compromise": "^13.1.1",
"d3": "^5.15.1",
"d3-scale-chromatic": "^1.5.0",
"mark.js": "^8.11.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"styled-components": "^5.0.1"
},
"version": "0.0.0",
"private": true
}