-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
144 lines (144 loc) · 5.09 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"name": "wya-rc",
"version": "0.5.6",
"description": "wya for react components",
"main": "lib/main.js",
"files": [
"src/**",
"dist/**",
"templates/**",
"lib/**"
],
"scripts": {
"start": "npm run dev",
"dev": "npm run prompt && npm run all",
"serve": "node --max_old_space_size=8192 ./node_modules/webpack-dev-server/bin/webpack-dev-server --config ./config/webpack.config.dev.js --color --progress --hot",
"dist": "npm run remove:dist && node --max_old_space_size=8192 ./node_modules/webpack/bin/webpack --config ./config/webpack.config.dist.js --color --progress",
"build": "cross-env UGLIFY_JS=true npm run dist",
"build:dev": "cross-env UGLIFY_JS=false npm run dist",
"lib": "rm -rf ./lib && cross-env NODE_ENV=production babel src --out-dir lib --copy-files --ignore **.test.js,**.md,examples/**, && npm publish",
"remove:dist": "rm -rf ./dist",
"lint": "esw ./config/*.config.* ./src/**/*.js",
"lint:fix": "npm run lint -- --fix",
"lint:watch": "npm run lint -- --fix --watch",
"lint:style": "stylelint --fix --syntax scss src/**/*.scss",
"mock": "cd ./src/mock && npm run start",
"prompt": "node ./config/prompt.config.js",
"all": "npm-run-all --parallel --race --continue-on-error lint:watch serve",
"lint-staged": "lint-staged",
"pre-commit:install": "cp .hooks/* .git/hooks/",
"test": "jest --config ./tests/config/jest.config.js"
},
"author": "wya-team",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/wya-team/wya-rc"
},
"bugs": {
"url": "https://github.com/wya-team/wya-rc/issues"
},
"others_desc": [
"Don't want to use it directly: braft-editor, element-resize-event; Better control version",
"Often use: echarts, antd, antd-mobile, react, react-dom, classnames, lrz, wya-fetch;Load by yourself,`npm install -S **`"
],
"dependencies": {
"braft-editor": "1.8.10",
"element-resize-event": "^2.0.9",
"html2canvas": "^1.0.0-alpha.12",
"photoswipe": "^4.1.2"
},
"devDependencies": {
"antd": "^3.4.1",
"antd-mobile": "^2.1.8",
"autoprefixer": "^8.3.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^8.2.3",
"babel-jest": "^22.4.3",
"babel-loader": "^7.1.4",
"babel-plugin-import": "^1.7.0",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-plugin-webpack-loaders": "^0.9.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"classnames": "^2.2.5",
"copy-webpack-plugin": "^4.5.1",
"cross-env": "^5.1.4",
"css-loader": "^0.28.11",
"echarts": "^4.0.4",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"enzyme-to-json": "^3.3.3",
"eslint": "^4.19.1",
"eslint-plugin-babel": "^5.0.0",
"eslint-plugin-markdown": "^1.0.0-beta.6",
"eslint-plugin-react": "^7.7.0",
"eslint-watch": "^3.1.4",
"file-loader": "^1.1.11",
"friendly-errors-webpack-plugin": "^1.7.0",
"fs-extra": "^5.0.0",
"glob": "^7.1.2",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
"jest": "^22.4.3",
"less": "^3.0.1",
"less-loader": "^4.1.0",
"lint-staged": "^7.0.4",
"lrz": "^4.9.40",
"mockjs": "^1.0.1-beta3",
"node-sass": "^4.8.3",
"npm-run-all": "^4.1.2",
"postcss-flexbugs-fixes": "^3.3.0",
"postcss-loader": "^2.1.4",
"postcss-smart-import": "^0.7.6",
"pre-commit": "^1.2.2",
"precss": "^3.1.2",
"prompt": "^1.0.0",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"rimraf": "^2.6.2",
"sass-loader": "^7.0.1",
"style-loader": "^0.21.0",
"stylelint": "^9.2.0",
"stylelint-config-standard": "^18.2.0",
"stylelint-webpack-plugin": "^0.10.4",
"upath": "^1.0.4",
"url-loader": "^1.0.1",
"webpack": "^4.20.2",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.3",
"webpack-merge": "^4.1.2",
"wya-fetch": "^0.1.15"
},
"peerDependencies": {
"wya-fetch": ">=0.1.10",
"react": ">=16.3.2",
"react-dom": ">=16.3.2",
"lrz": ">=4.9.40",
"classnames": ">=2.2.5",
"echarts": "^3.0.0 || ^4.0.0",
"antd": ">=3.1.4",
"antd-mobile": ">=2.1.4"
},
"lint-staged": {
"{src,config}/**/*.{js,jsx}": [
"esw --fix",
"git add"
],
"*.md": [
"esw --ext '.md' --fix",
"git add"
],
"src/**/*.scss": [
"stylelint --fix --syntax scss",
"git add"
]
},
"pre-commit": [
"lint-staged"
]
}