-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
156 lines (156 loc) · 4.98 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
145
146
147
148
149
150
151
152
153
154
155
156
{
"name": "my-ui",
"version": "0.1.0",
"main": "lib/index.js",
"module": "es/index.js",
"browser": "dist/my-ui.js",
"parcel": {
"library": "MyUI",
"externals": [
"react"
]
},
"description": "Use for development React UI library.",
"license": "MIT",
"repository": {
"type": "git",
"url": ""
},
"homepage": "",
"bugs": {
"url": ""
},
"keywords": [],
"files": [
"dist",
"lib",
"es",
"LICENSE",
"README.md"
],
"scripts": {
"build-esm": "gulp clean-es && cross-env NODE_ENV=production BABEL_ENV=esm gulp build",
"build-cjs": "gulp clean-lib && cross-env NODE_ENV=production BABEL_ENV=commonjs gulp build",
"build-umd": "cross-env NODE_ENV=production webpack --config webpack.config.prod.babel.js --progress --colors --display-error-details",
"build-dev": "cross-env NODE_ENV=development webpack --config webpack.config.dev.babel.js --progress --colors --display-error-details",
"link": "cross-env NODE_ENV=link webpack-dev-server --config webpack.config.dev.babel.js --progress --colors --display-error-details",
"start": "cross-env NODE_ENV=development webpack-dev-server --config webpack.config.dev.babel.js --progress --colors",
"mock": "mock-server ./mock/data --static ./mock/static --config ./mock/mock.config.js --watch",
"start-mock": "concurrently \"npm start\" \"npm run mock\"",
"lint-js": "eslint -c .eslintrc.prod.js src/ --ext .js,.jsx --fix",
"lint-css": "stylelint \"src/**/*.{css,less,scss,sass}\" --cache --fix",
"test": "jest",
"package": "npm run build-umd && npm run build-esm && npm run build-cjs",
"publish-prerelease": "npm run package && gulp version-prerelease && npm publish",
"publish-patch": "npm run package && gulp version-patch && npm publish",
"publish-minor": "npm run package && gulp version-minor && npm publish",
"publish-major": "npm run package && gulp version-major && npm publish",
"unpublish": "npm unpublish -f",
"git-push": "gulp git-push"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,jsx}": [
"eslint -c .eslintrc.prod.js --fix",
"git add"
],
"src/**/*.{css,less,scss,sass}": [
"stylelint --cache --fix",
"git add"
]
},
"peerDependencies": {
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"classnames": "^2.2.6",
"prop-types": "^15.7.2"
},
"devDependencies": {
"@babel/core": "^7.0.1",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-proposal-export-namespace-from": "^7.2.0",
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
"@babel/plugin-proposal-pipeline-operator": "^7.7.7",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.8.3",
"@babel/register": "^7.0.0",
"@easytool/define-config": "^0.1.3",
"@easytool/mock-server": "^0.2.2",
"@easytool/proxy-config": "^0.1.0",
"autoprefixer": "^9.1.5",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "10.0.1",
"babel-jest": "^25.0.0",
"babel-loader": "^8.0.2",
"babel-plugin-inline-import-data-uri": "^1.0.1",
"babel-plugin-module-resolver": "^4.0.0",
"case-sensitive-paths-webpack-plugin": "^2.1.2",
"clean-webpack-plugin": "^3.0.0",
"concurrently": "^4.0.1",
"cross-env": "^5.2.0",
"css-loader": "^1.0.0",
"del": "^5.0.0",
"eslint": "^5.6.0",
"eslint-loader": "^2.1.0",
"eslint-plugin-react": "^7.12.3",
"file-loader": "^2.0.0",
"generate-file-webpack-plugin": "^1.0.1",
"gulp": "^4.0.0",
"gulp-babel": "^8.0.0",
"gulp-bump": "^3.1.1",
"gulp-cli": "^2.0.1",
"gulp-clone": "^2.0.1",
"gulp-eslint": "^5.0.0",
"gulp-filter": "^6.0.0",
"gulp-less": "^4.0.1",
"gulp-postcss": "^8.0.0",
"gulp-replace": "^1.0.0",
"gulp-sourcemaps": "^3.0.0",
"gulp-stylelint": "^13.0.0",
"html-webpack-plugin": "^4.3.0",
"husky": "^1.2.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^24.1.0",
"less": "^3.12.2",
"less-loader": "^7.0.1",
"lint-staged": "^9.3.0",
"merge2": "^1.4.1",
"mini-css-extract-plugin": "^0.4.2",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-loader": "^3.0.0",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"style-loader": "^0.23.0",
"stylelint": "^11.0.0",
"stylelint-webpack-plugin": "^1.2.3",
"terser-webpack-plugin": "^2.3.6",
"url-loader": "^2.3.0",
"webpack": "^4.19.0",
"webpack-bundle-analyzer": "^4.2.0",
"webpack-cli": "^3.3.9",
"webpack-dev-server": "^3.1.8",
"webpack-merge": "^4.1.4"
},
"devEnvironments": {
"servers": {
"local": 8080,
"mock": 3000
},
"proxies": {
"/api": "http://localhost:3000"
},
"globals": {
"__DEV__": true
}
}
}