Skip to content

Commit 7a1f7e3

Browse files
committed
chore: Use dumi
1 parent 05d0272 commit 7a1f7e3

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

now.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": 2,
3+
"name": "rc-overflow",
4+
"builds": [
5+
{
6+
"src": "package.json",
7+
"use": "@now/static-build",
8+
"config": { "distDir": ".doc" }
9+
}
10+
],
11+
"routes": [
12+
{ "src": "/(.*)", "dest": "/dist/$1" }
13+
]
14+
}

package.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,18 @@
2929
},
3030
"license": "MIT",
3131
"scripts": {
32-
"start": "cross-env NODE_ENV=development father doc dev --storybook",
33-
"build": "father doc build --storybook",
34-
"compile": "father build && lessc assets/index.less assets/index.css",
35-
"gh-pages": "npm run build && father doc deploy",
36-
"prepublishOnly": "npm run compile && np --yolo --no-publish && npm run gh-pages",
37-
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md",
38-
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
39-
"pretty-quick": "pretty-quick",
32+
"start": "dumi dev",
33+
"docs:build": "dumi build",
34+
"docs:deploy": "gh-pages -d docs-dist",
35+
"compile": "father-build",
36+
"deploy": "npm run docs:build && npm run docs:deploy",
37+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
4038
"test": "father test",
41-
"coverage": "father test --coverage"
39+
"test:coverage": "umi-test --coverage",
40+
"prepublishOnly": "npm run compile && np --no-cleanup --yolo --no-publish",
41+
"lint": "eslint src/ --ext .tsx,.ts",
42+
"lint:tsc": "tsc -p tsconfig.json --noEmit",
43+
"now-build": "npm run docs:build"
4244
},
4345
"dependencies": {
4446
"@babel/runtime": "^7.11.1",
@@ -54,11 +56,13 @@
5456
"@types/react-dom": "^16.9.10",
5557
"@umijs/fabric": "^2.0.8",
5658
"cross-env": "^7.0.2",
59+
"dumi": "^1.0.38",
5760
"enzyme": "^3.0.0",
5861
"enzyme-adapter-react-16": "^1.0.1",
5962
"enzyme-to-json": "^3.4.0",
6063
"eslint": "^7.0.0",
6164
"father": "^2.13.4",
65+
"father-build": "^1.19.1",
6266
"less": "^3.10.3",
6367
"np": "^7.0.0",
6468
"prettier": "^2.0.5",

0 commit comments

Comments
 (0)