Skip to content

Commit 8008dbe

Browse files
committed
chore: add taro-ui-docs package config
1 parent 1c318e6 commit 8008dbe

File tree

5 files changed

+1588
-97
lines changed

5 files changed

+1588
-97
lines changed

.eslintrc.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,18 @@
3333
"overrides": [
3434
{
3535
"files": [
36-
"build/*.js"
36+
"packages/taro-ui-docs/build/*.js"
3737
],
3838
"rules": {
39-
"import/no-commonjs": "off"
39+
"import/no-commonjs": "off",
40+
"no-console": "off",
41+
"no-undefined": "off"
4042
}
4143
},
4244
{
4345
"files": [
44-
"test/**/*.test.js",
45-
"test/**/test.js"
46+
"**/test/**/*.test.js",
47+
"**/test/**/test.js"
4648
],
4749
"rules": {
4850
"taro/no-stateless-component": "off",

packages/taro-ui-docs/.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
]
1616
],
1717
"plugins": [
18-
"syntax-dynamic-import",
18+
"@babel/plugin-syntax-dynamic-import",
1919
"@babel/plugin-proposal-class-properties",
2020
[
2121
"@babel/plugin-transform-react-jsx",

packages/taro-ui-docs/package.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"private": true,
3+
"name": "taro-ui-docs",
4+
"version": "3.0.0",
5+
"description": "Taro UI docs",
6+
"author": "O2Team <aotu.io>",
7+
"homepage": "https://taro-ui.aotu.io",
8+
"repository": {
9+
"type": "git",
10+
"url": "[email protected]:nervjs/taro-ui.git"
11+
},
12+
"license": "MIT",
13+
"scripts": {
14+
"dev:doc": "node ./build/dev-server",
15+
"build:h5": "node ./build/build-static",
16+
"build:doc": "node ./build/build-docs"
17+
},
18+
"browserslist": [
19+
"last 3 versions",
20+
"Android >= 4.1",
21+
"ios >= 8"
22+
],
23+
"dependencies": {},
24+
"devDependencies": {
25+
"@babel/core": "^7.9.0",
26+
"@babel/plugin-proposal-class-properties": "^7.8.3",
27+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
28+
"@babel/plugin-transform-react-jsx": "^7.9.4",
29+
"@babel/preset-env": "^7.9.0",
30+
"@types/classnames": "^2.2.10",
31+
"@types/react": "^16.9.32",
32+
"@types/react-dom": "^16.9.6",
33+
"@types/webpack-env": "^1.15.1",
34+
"at-ui-style": "^1.5.1",
35+
"babel-loader": "^8.1.0",
36+
"chalk": "^4.0.0",
37+
"classnames": "^2.2.6",
38+
"clean-webpack-plugin": "^3.0.0",
39+
"copy-to-clipboard": "^3.3.1",
40+
"copy-webpack-plugin": "^5.1.1",
41+
"css-loader": "^3.4.2",
42+
"favicons-webpack-plugin": "^3.0.1",
43+
"file-loader": "^6.0.0",
44+
"front-matter": "^3.1.0",
45+
"fs-extra": "^9.0.0",
46+
"highlight.js": "^9.18.1",
47+
"html-webpack-plugin": "^4.0.4",
48+
"html-withimg-loader": "^0.1.16",
49+
"json-loader": "^0.5.7",
50+
"loader-utils": "^2.0.0",
51+
"markdown-it": "^10.0.0",
52+
"markdown-it-container": "^2.0.0",
53+
"ora": "^4.0.3",
54+
"postcss": "^7.0.27",
55+
"postcss-loader": "^3.0.0",
56+
"qrcode.react": "^1.0.0",
57+
"react": "^16.13.1",
58+
"react-dom": "^16.13.1",
59+
"react-router-dom": "^5.1.2",
60+
"sass-loader": "^8.0.2",
61+
"url-loader": "^4.0.0",
62+
"webpack": "^4.42.1",
63+
"webpack-dev-server": "^3.10.3",
64+
"webpack-merge": "^4.2.2",
65+
"yaml-loader": "^0.6.0"
66+
}
67+
}

packages/taro-ui/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,9 @@
3131
"scripts": {
3232
"dev": "yarn run dev:lib",
3333
"dev:lib": "tsc --project ./tsconfig.build.json --watch --incremental",
34-
"dev:doc": "yarn run build:h5-static && node ./build/dev-server",
3534
"build": "yarn run build:rollup && yarn run build:lib",
3635
"build:lib": "tsc --project ./tsconfig.build.json",
3736
"build:rollup": "rollup --config ./config/rollup.config.js",
38-
"build:h5-static": "yarn run build:h5 && node ./build/build-static",
39-
"build:doc": "yarn run build:h5-static && node ./build/build-docs",
4037
"prepublishOnly": "yarn run clean && yarn run build",
4138
"lint": "eslint ./src --fix",
4239
"lint:style": "stylelint \"src/**/*.scss\" --syntax scss",

0 commit comments

Comments
 (0)