-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
100 lines (100 loc) · 3.07 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"name": "@kne/antd-taro",
"version": "1.0.40",
"dependencies": {
"@kne/lodash-wechat": "^4.17.21",
"@kne/use-control-value": "^0.1.8",
"@kne/use-ref-callback": "^0.1.2",
"classnames": "^2.3.2",
"dayjs": "^1.11.9"
},
"peerDependencies": {
"@tarojs/components": "*",
"@tarojs/taro": "*",
"react": "*"
},
"scripts": {
"create": "cross-env MODULES_DEV_BASE_PATH='./src' modules-dev-create",
"start": "run-p start:lib start:md start:doc start:example",
"build": "run-s build:lib build:md build:doc build:example",
"test": "run-s test:unit test:lint test:build",
"eject": "react-scripts eject",
"init": "husky && npm run init-example",
"init-example": "mini-example install && create-md && mini-example build",
"build:lib": "microbundle --no-compress --format modern,cjs --jsx React.createElement --jsxFragment React.Fragment --alias lodash=@kne/lodash-wechat --assertType inline",
"build:md": "create-md",
"start:md": "create-md --watch",
"start:lib": "microbundle watch --no-compress --format modern,cjs --jsx React.createElement --jsxFragment React.Fragment --alias lodash=@kne/lodash-wechat --assertType inline",
"test:build": "run-s build",
"test:lint": "eslint .",
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
"test:watch": "react-scripts test --env=jsdom",
"start:doc": "mini-example start",
"build:doc": "mini-example build",
"build:example": "cd example && npm run build:weapp",
"start:example": "cd example && cross-env NODE_ENV=production npm run build:weapp -- --watch",
"prettier": "prettier --config .prettierrc --write 'src/**/*.{js,jsx,ts,tsx,json,css,scss}'",
"lint-staged": "npx lint-staged"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"syntax": {
"esmodules": true
},
"files": [
"dist"
],
"main": "dist/index.js",
"module": "dist/index.modern.js",
"source": "src/index.js",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss}": [
"prettier --config .prettierrc --write",
"git add"
]
},
"devDependencies": {
"@babel/runtime": "^7.7.7",
"@kne/md-doc": "^0.1.8",
"@kne/microbundle": "^0.15.5",
"@kne/mini-example": "^0.1.12",
"@kne/modules-dev": "^2.0.20",
"@tarojs/components": "3.6.23",
"@tarojs/helper": "3.6.23",
"@tarojs/plugin-framework-react": "3.6.23",
"@tarojs/plugin-platform-weapp": "3.6.23",
"@tarojs/react": "3.6.23",
"@tarojs/runtime": "3.6.23",
"@tarojs/shared": "3.6.23",
"@tarojs/taro": "3.6.23",
"cross-env": "^7.0.3",
"husky": "^9.0.11",
"sass": "^1.75.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1"
}
}