1
+ {
2
+ "name" : " wuhan2020" ,
3
+ "version" : " 0.2.0" ,
4
+ "license" : " AGPL-3.0" ,
5
+ "author" : " shiy2008@gmail.com" ,
6
+ "description" : " 针对 2020 新冠病毒疫情中的武汉援助信息网站" ,
7
+ "homepage" : " https://web-cell.dev/wuhan2020/" ,
8
+ "repository" : {
9
+ "type" : " git" ,
10
+ "url" : " git+https://github.com/EasyWebApp/wuhan2020.git"
11
+ },
12
+ "bugs" : {
13
+ "url" : " https://github.com/EasyWebApp/wuhan2020/issues"
14
+ },
15
+ "main" : " source/index.html" ,
16
+ "dependencies" : {
17
+ "boot-cell" : " ^0.24.0" ,
18
+ "browser-unhandled-rejection" : " ^1.0.2" ,
19
+ "cell-router" : " ^2.0.0-rc.6" ,
20
+ "classnames" : " ^2.2.6" ,
21
+ "clipboard-polyfill" : " ^2.8.6" ,
22
+ "mobx" : " ^5.15.3" ,
23
+ "mobx-web-cell" : " ^0.2.5" ,
24
+ "web-cell" : " ^2.0.0-rc.15"
25
+ },
26
+ "devDependencies" : {
27
+ "cross-env" : " ^6.0.3" ,
28
+ "husky" : " ^4.2.1" ,
29
+ "lint-staged" : " ^10.0.2" ,
30
+ "parcel-bundler" : " ^1.12.4" ,
31
+ "prettier" : " ^1.19.1" ,
32
+ "typescript" : " ^3.7.5" ,
33
+ "workbox-cli" : " ^4.3.1"
34
+ },
35
+ "prettier" : {
36
+ "singleQuote" : true ,
37
+ "tabWidth" : 4 ,
38
+ "overrides" : [
39
+ {
40
+ "files" : " *.yml" ,
41
+ "options" : {
42
+ "tabWidth" : 2
43
+ }
44
+ }
45
+ ]
46
+ },
47
+ "lint-staged" : {
48
+ "*.{html,md,less,js,json,yml,ts,tsx}" : [
49
+ " prettier --write"
50
+ ]
51
+ },
52
+ "scripts" : {
53
+ "test" : " lint-staged" ,
54
+ "start" : " rm -rf dist/ && parcel source/index.html --open" ,
55
+ "pack-dist" : " cross-env NODE_ENV=production parcel build source/index.html --public-url ." ,
56
+ "pack-sw" : " rm -f dist/sw.js.map && workbox generateSW" ,
57
+ "build" : " rm -rf dist/ && npm run pack-dist && npm run pack-sw"
58
+ },
59
+ "husky" : {
60
+ "hooks" : {
61
+ "pre-commit" : " npm test" ,
62
+ "pre-push" : " npm run build"
63
+ }
64
+ }
65
+ }
0 commit comments