Skip to content

Commit 158a55e

Browse files
author
zhaozhiwen
committed
feat: 使用now部署文档站点
1 parent b2a25f0 commit 158a55e

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

now.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "happy-ui",
3+
"builds": [
4+
{
5+
"src": "package.json",
6+
"use": "@now/static-build",
7+
"config": {
8+
"distDir": "doc-site"
9+
}
10+
}
11+
]
12+
}

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "happy-ui",
33
"version": "1.0.0",
44
"description": "A React UI Library.",
5+
"homepage": "https://github.com/worldzhao/react-ui-library-tutorial#readme",
56
"typings": "lib/index.d.ts",
67
"main": "lib/index.js",
78
"module": "esm/index.js",
@@ -11,6 +12,10 @@
1112
"lib/**/style/*",
1213
"*.less"
1314
],
15+
"authors": {
16+
"name": "worldzhao",
17+
"email": "[email protected]"
18+
},
1419
"scripts": {
1520
"dev": "docz dev",
1621
"start": "npm run dev",
@@ -19,6 +24,8 @@
1924
"clean": "rimraf lib esm dist",
2025
"build:types": "tsc -p tsconfig.build.json && cpr lib esm",
2126
"build": "npm run clean && npm run build:types && gulp",
27+
"publish:doc": "now --prod",
28+
"now-build": "npm run build:doc",
2229
"release": "ts-node ./scripts/release.ts",
2330
"commit": "git-cz",
2431
"test": "jest",
@@ -38,7 +45,6 @@
3845
"bugs": {
3946
"url": "https://github.com/worldzhao/react-ui-library-tutorial/issues"
4047
},
41-
"homepage": "https://github.com/worldzhao/react-ui-library-tutorial#readme",
4248
"peerDependencies": {
4349
"react": ">=16.8.0",
4450
"react-dom": ">=16.8.0"
@@ -80,6 +86,7 @@
8086
"jest": "^24.9.0",
8187
"less": "^3.10.3",
8288
"lint-staged": "^9.5.0",
89+
"now": "^19.0.1",
8390
"plop": "^2.6.0",
8491
"prettier": "^1.19.1",
8592
"prismjs": "^1.17.1",

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11974,6 +11974,11 @@ now-and-later@^2.0.0:
1197411974
dependencies:
1197511975
once "^1.3.2"
1197611976

11977+
now@^19.0.1:
11978+
version "19.0.1"
11979+
resolved "https://registry.npm.taobao.org/now/download/now-19.0.1.tgz?cache=0&sync_timestamp=1589380180004&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnow%2Fdownload%2Fnow-19.0.1.tgz#a4575adfed17ea049d9207c145f3ce7f60c818cf"
11980+
integrity sha1-pFda3+0X6gSdkgfBRfPOf2DIGM8=
11981+
1197711982
npm-run-path@^2.0.0:
1197811983
version "2.0.2"
1197911984
resolved "https://registry.npm.taobao.org/npm-run-path/download/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f"

0 commit comments

Comments
 (0)