-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpackage.json
More file actions
129 lines (129 loc) · 3.49 KB
/
package.json
File metadata and controls
129 lines (129 loc) · 3.49 KB
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
{
"version": "0.2.2",
"name": "antd-form-component",
"main": "lib/index.js",
"dependencies": {
"async-validator": "^1.8.5",
"classnames": "^2.2.5",
"lodash": "^4.17.10",
"prop-types": "^15.6.1",
"sprintf-js": "^1.1.1"
},
"devDependencies": {
"antd": "^3.11.4",
"babel-cli": "^6.26.0",
"chai": "4.1.2",
"cross-env": "^5.1.1",
"husky": "^1.0.0-rc.4",
"istanbul-instrumenter-loader": "3.0.0",
"karma": "2.0.0",
"karma-browserstack-launcher": "1.3.0",
"karma-chai": "0.1.0",
"karma-chrome-launcher": "2.2.0",
"karma-coverage-istanbul-reporter": "1.3.3",
"karma-firefox-launcher": "1.1.0",
"karma-ie-launcher": "^1.0.0",
"karma-junit-reporter": "1.2.0",
"karma-mocha": "1.3.0",
"karma-mocha-reporter": "2.2.5",
"karma-sinon": "1.0.5",
"karma-sinon-chai": "1.3.3",
"karma-webpack": "2.0.9",
"less": "^3.0.4",
"less-loader": "^4.1.0",
"lint-staged": "^7.1.0",
"mocha": "4.1.0",
"prettier": "^1.13.2",
"react": "^16.7.0",
"react-boilerplate-app-scripts": "^0.2.11",
"react-dom": "^16.7.0",
"react-router-controller": "^0.1.9",
"sinon": "4.1.3",
"sinon-chai": "2.14.0"
},
"scripts": {
"build-css": "lessc ./src/assets/css/style.less ./src/assets/css/style.css && lessc ./src/assets/css/style@2.x.x.less ./src/assets/css/style@2.x.x.css",
"build-demo": "npm run build-dll hide-message && react-boilerplate-app-scripts build",
"build-dll": "react-boilerplate-app-scripts build-dll",
"cover": "react-boilerplate-app-scripts cover",
"serve-build": "react-boilerplate-app-scripts serve-build",
"start": "npm run build-dll hide-message && react-boilerplate-app-scripts start",
"use": "react-boilerplate-app-scripts use",
"build-publish": "npm run test && npm run build-css && npm run transform && npm publish",
"prettier": "prettier --write './**/*(*.js|*.jsx|*.less|*.css)'",
"transform": "npm run transform-default && cp -R ./src/assets ./lib",
"transform-default": "rm -rf ./lib && cross-env BABEL_ENV=production babel ./src -d lib",
"transform-default-watch": "cross-env BABEL_ENV=default babel ./src -d lib -w"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run test"
}
},
"lint-staged": {
"*.js|*.jsx": [
"eslint"
],
"*.js|*.jsx|*.less|*.css": [
"prettier --write",
"git add"
]
},
"react-boilerplate-app-scripts": {
"basename": "demo/antd-form-component",
"appSrcPath": "demo/src",
"appPublicPath": "demo/public"
},
"babel": {
"env": {
"development": {
"presets": [
"react",
[
"es2015",
{
"modules": false
}
],
"stage-0"
],
"plugins": [
"transform-decorators-legacy",
"transform-runtime",
"react-hot-loader/babel"
]
},
"production": {
"plugins": [
"transform-decorators-legacy",
"transform-runtime"
],
"presets": [
"react",
"es2015",
"stage-0"
]
},
"es": {
"plugins": [
"transform-decorators-legacy",
"transform-runtime"
],
"presets": [
"react",
[
"es2015",
{
"modules": false
}
],
"stage-0"
]
}
}
},
"eslintConfig": {
"extends": "react-app"
}
}