Skip to content

Commit fbbcfae

Browse files
committedJan 26, 2020
【修复】文件丢失
1 parent 117f7fc commit fbbcfae

File tree

2 files changed

+68
-3
lines changed

2 files changed

+68
-3
lines changed
 

‎.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
branches:
22
only:
3-
- master
3+
- dev
44

55
language: node_js
66
node_js:
@@ -16,9 +16,9 @@ script:
1616
deploy:
1717
provider: pages
1818
on:
19-
branch: master
19+
branch: dev
2020
skip_cleanup: true
2121
local_dir: dist/
2222
# fqdn: ${DOMAIN} # Custom Domain
23-
# target_branch: master # namespace/namespace.github.io needs this
23+
target_branch: master
2424
token: ${TOKEN}

‎package.json

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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

Comments
 (0)
Please sign in to comment.