-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
153 lines (153 loc) · 4.76 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
{
"name": "@wx/x-compass-homepage",
"libraryName": "wx",
"libraryEntry": "index.umd.js",
"version": "0.0.1",
"description": "Boilerplate for webpack & react, with typeScript",
"main": "build/index.umd.js",
"repository": {
"type": "git",
"url": "https://github.com/wxyyxc1992/fe-boilerplate"
},
"license": "MIT",
"keywords": [
"webpack",
"react"
],
"author": "wxyyxc1992@github",
"prettier": {
"printWidth": 100,
"singleQuote": true
},
"lint-staged": {
"*.{ts,tsx,scss,less,md}": [
"prettier --write",
"git add"
]
},
"scripts": {
"start": "webpack-dashboard -- npm run dev:node",
"dev": "parallelshell \"npm run mock\" \"npm run dev\"",
"dev:node": "webpack-dev-server --config ./dev-config/webpack.config.dev.js --hot",
"build": "npm run clean && NODE_ENV=production webpack --config ./dev-config/webpack.config.prod.js --mode production",
"build:dev": "npm run clean && webpack --config ./dev-config/webpack.config.prod.js --mode development",
"build:lib": "npm run clean && NODE_ENV=production webpack --config ./dev-config/webpack.config.umd.js --mode production",
"stats": "webpack --config ./dev-config/webpack.config.prod.js --mode production --profile --json > build/stats.json",
"analyze": "npm run stats && webpack-bundle-analyzer build/stats.json",
"clean": "rimraf build && mkdir build",
"test": "jest",
"update": "npm-check -u",
"lint": "tslint -c tslint.json 'src/**/*.(ts|tsx)'",
"mock": "json-server --watch dev-config/mock/db.json --port 9091",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"precommit": "lint-staged",
"prettier-all": "prettier --write 'src/**/*' '!src/{assets,datas}/**'"
},
"jest": {
"moduleFileExtensions": [
"js",
"ts",
"tsx"
],
"transform": {
"^.+\\.(ts|tsx)$": "<rootDir>/preprocessor.js"
},
"moduleDirectories": [
"node_modules",
"bower_components",
"shared"
],
"moduleNameMapper": {
"\\.(css|less|scss)$": "<rootDir>/dev-config/mock/styleMock.js",
"\\.(gif|ttf|eot|svg)$": "<rootDir>/dev-config/mock/fileMock.js"
},
"testMatch": [
"**/*.test.(ts|tsx|js)"
]
},
"dependencies": {
"@types/react-helmet": "^5.0.7",
"ant-design-pro": "^2.0.0",
"antd": "^3.5.2",
"axios": "^0.18.0",
"class-names": "^1.0.0",
"classname": "^0.0.0",
"classnames": "^2.2.6",
"history": "^4.7.2",
"instantsearch.css": "^7.1.0",
"mobx": "5.1.2",
"mobx-react": "^5.2.8",
"mobx-react-router": "^4.0.5",
"moment": "^2.22.1",
"preact": "^8.4.2",
"preact-compat": "^3.19.0",
"prop-types": "^15.6.1",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react-helmet": "^5.2.0",
"react-instantsearch": "^5.3.1",
"react-loadable": "^5.5.0",
"react-parallax": "^2.0.0",
"react-particles-js": "^2.3.0",
"react-router": "^4.2.0",
"react-router-dom": "^4.3.1",
"react-svg-loader": "^2.1.0",
"styled-components": "^3.4.9"
},
"devDependencies": {
"@storybook/addon-actions": "^3.4.5",
"@storybook/addon-links": "^3.4.5",
"@storybook/addons": "^3.4.5",
"@storybook/react": "^3.4.5",
"@types/classnames": "^2.2.6",
"@types/enzyme": "^3.1.10",
"@types/jest": "23.3.2",
"@types/react": "^16.3.14",
"@types/react-dom": "^16.0.5",
"@types/react-loadable": "^5.5.1",
"@types/react-router": "^4.0.32",
"@types/react-router-dom": "^4.3.1",
"autoprefixer": "9.1.5",
"awesome-typescript-loader": "^5.0.0",
"copy-webpack-plugin": "^4.5.2",
"css-loader": "1.0.0",
"enzyme": "^3.3.0",
"file-loader": "2.0.0",
"html-webpack-plugin": "^3.2.0",
"html-webpack-template": "^6.2.0",
"jest": "23.6.0",
"jest-cli": "23.6.0",
"json-server": "0.14.0",
"less": "^3.0.4",
"less-loader": "^4.1.0",
"mini-css-extract-plugin": "^0.4.0",
"mobx-react-devtools": "6.0.3",
"node-sass": "^4.9.0",
"npm-check": "^5.7.1",
"offline-plugin": "^5.0.3",
"optimize-css-assets-webpack-plugin": "5.0.1",
"parallelshell": "3.0.1",
"postcss-loader": "3.0.0",
"react-hot-loader": "^4.2.0",
"resolve-url-loader": "3.0.0",
"rimraf": "^2.6.2",
"sass-loader": "^7.0.1",
"style-loader": "0.23.0",
"ts-import-plugin": "^1.6.1",
"ts-loader": "5.1.1",
"tslint": "^5.10.0",
"tslint-config-prettier": "^1.12.0",
"tslint-react": "^3.6.0",
"typescript": "3.0.3",
"uglifyjs-webpack-plugin": "2.0.1",
"url-loader": "^1.0.1",
"wasm-loader": "^1.3.0",
"webpack": "^4.8.3",
"webpack-bundle-analyzer": "3.0.2",
"webpack-cli": "3.1.0",
"webpack-dashboard": "2.0.0",
"webpack-dev-server": "^3.1.4",
"workerize-loader": "^1.0.2"
}
}