1 | {
|
2 | "name": "super-project",
|
3 | "version": "3.0.7-alpha.9",
|
4 | "description": "Base framework for Super Project.",
|
5 | "main": "",
|
6 | "bin": {
|
7 | "super-build": "./bin/build.js",
|
8 | "super-start": "./bin/start.js",
|
9 | "super-dev": "./bin/dev.js",
|
10 | "super-analyze": "./bin/analyze.js"
|
11 | },
|
12 | "scripts": {
|
13 | "doc-server": "docsify serve docs",
|
14 | "test": "echo \"Error: no test specified\" && exit 1"
|
15 | },
|
16 | "repository": {
|
17 | "type": "git",
|
18 | "url": "https://github.com/websage-team/super-project.git"
|
19 | },
|
20 | "keywords": [
|
21 | "react",
|
22 | "style",
|
23 | "import-style",
|
24 | "import-css"
|
25 | ],
|
26 | "author": "cs_victor@126.com,dongwenxiao,diablohu",
|
27 | "license": "Apache 2.0",
|
28 | "bugs": {
|
29 | "url": "https://github.com/websage-team/super-project/issues"
|
30 | },
|
31 | "homepage": "https://github.com/websage-team/super-project",
|
32 | "dependencies": {
|
33 | "sp-css-loader": "^1.3.0",
|
34 | "sp-css-import": "^2.0.0",
|
35 | "sp-koa-views": "^1.0.1",
|
36 | "super-ui-page": "3.0.7-alpha.2",
|
37 | "sp-auth": "^2.1.0",
|
38 |
|
39 |
|
40 | "koa": "^2.5.0",
|
41 | "koa-body": "^2.5.0",
|
42 | "koa-compress": "^2.0.0",
|
43 | "koa-convert": "^1.2.0",
|
44 | "koa-html-minifier": "^1.0.1",
|
45 | "koa-json": "^1.1.1",
|
46 | "koa-multer": "^1.0.2",
|
47 | "koa-onerror": "^3.1.0",
|
48 | "koa-response-time": "^2.0.0",
|
49 | "koa-router": "^7.4.0",
|
50 | "koa-static": "^3.0.0",
|
51 | "koa-compose": "^3.2.1",
|
52 | "koa-helmet": "^3.3.0",
|
53 |
|
54 |
|
55 | "react": "^16.3.2",
|
56 | "react-dom": "^16.3.2",
|
57 | "react-router": "^3.2.0",
|
58 | "redux": "^4.0.0",
|
59 | "redux-thunk": "^2.2.0",
|
60 | "react-redux": "^5.0.7",
|
61 | "react-router-redux": "^4.0.8",
|
62 |
|
63 |
|
64 | "isomorphic-fetch": "^2.2.1",
|
65 | "ejs": "^2.6.1",
|
66 | "xmlify": "^1.1.0",
|
67 | "yargs": "^11.0.0",
|
68 |
|
69 |
|
70 | "babel-core": "^6.26.3",
|
71 | "babel-polyfill": "^6.26.0",
|
72 | "babel-preset-env": "^1.7.0",
|
73 | "babel-preset-react": "^6.24.1",
|
74 | "babel-preset-stage-0": "^6.24.1",
|
75 | "babel-plugin-add-module-exports": "^0.2.1",
|
76 | "babel-plugin-transform-decorators-legacy": "^1.3.4",
|
77 | "babel-plugin-transform-runtime": "^6.23.0",
|
78 | "babel-plugin-transform-regenerator": "^6.26.0",
|
79 | "babel-plugin-transform-class-properties": "^6.24.1",
|
80 |
|
81 |
|
82 | "webpack": "^4.8.3",
|
83 | "webpack-dev-server": "^3.1.4",
|
84 | "webpack-dev-middleware": "^3.1.2",
|
85 | "webpack-hot-middleware": "^2.22.2",
|
86 | "webpack-bundle-analyzer": "^2.13.0",
|
87 | "html-webpack-plugin": "^3.2.0",
|
88 | "mini-css-extract-plugin": "^0.4.0",
|
89 |
|
90 |
|
91 | "opn": "^5.3.0",
|
92 | "webpack-config": "^7.5.0",
|
93 | "js-cookie": "^2.2.0",
|
94 |
|
95 |
|
96 | "babel-loader": "^7.1.4",
|
97 | "json-loader": "^0.5.7",
|
98 | "file-loader": "^1.1.11",
|
99 | "url-loader": "^1.0.1",
|
100 | "react-hot-loader": "^4.2.0",
|
101 | "postcss-loader": "^2.1.5",
|
102 | "css-loader": "^0.28.11",
|
103 | "less-loader": "^4.1.0",
|
104 | "sass-loader": "^7.0.1",
|
105 | "style-loader": "^0.21.0",
|
106 | "markdown-loader": "^2.0.2",
|
107 | "universal-alias-loader": "^1.2.2",
|
108 |
|
109 |
|
110 | "less": "^3.0.4",
|
111 | "postcss": "^6.0.22",
|
112 | "autoprefixer": "8.5.0",
|
113 |
|
114 |
|
115 | "rimraf": "^2.6.2",
|
116 | "copyfiles": "^2.0.0",
|
117 | "classlist-polyfill": "^1.2.0",
|
118 | "es5-shim": "^4.5.10",
|
119 | "fs-extra": "^6.0.1",
|
120 | "debug": "^3.1.0",
|
121 | "glob-promise": "^3.4.0",
|
122 | "md5-file": "^4.0.0",
|
123 | "chalk": "^2.4.1",
|
124 | "commander": "^2.15.1",
|
125 | "os-locale": "^2.1.0",
|
126 | "npm-run-script": "^0.0.4",
|
127 | "ora": "^2.1.0",
|
128 | "progress": "^2.0.0",
|
129 | "cli-spinners": "^1.3.1",
|
130 | "pm2": "^2.10.4"
|
131 | },
|
132 | "peerDependencies": {
|
133 | "react": ">=16",
|
134 | "react-dom": ">=16",
|
135 | "react-router": ">=3 <4",
|
136 | "redux": ">=3",
|
137 | "redux-thunk": ">=2",
|
138 | "react-redux": ">=5",
|
139 | "react-router-redux": ">=4",
|
140 | "babel-loader": ">=7"
|
141 | },
|
142 | "devDependencies": {
|
143 | "eslint": "^4.19.1",
|
144 | "eslint-plugin-react": "^7.8.2",
|
145 | "babel-eslint": "^8.2.3"
|
146 | },
|
147 |
|
148 | "eslintConfig": {
|
149 | "extends": "eslint:recommended",
|
150 | "plugins": [
|
151 | "react"
|
152 | ],
|
153 | "env": {
|
154 | "browser": true,
|
155 | "node": true,
|
156 | "commonjs": true,
|
157 | "amd": true,
|
158 | "es6": true,
|
159 | "mocha": true,
|
160 | "jquery": true
|
161 | },
|
162 | "parserOptions": {
|
163 | "ecmaVersion": 2018,
|
164 | "sourceType": "module",
|
165 | "ecmaFeatures": {
|
166 | "impliedStrict": true,
|
167 | "jsx": true,
|
168 | "experimentalObjectRestSpread": true
|
169 | }
|
170 | },
|
171 | "globals": {
|
172 | "__DEV__": true,
|
173 | "__CLIENT__": true,
|
174 | "__SERVER__": true,
|
175 | "__SPA__": true,
|
176 | "__REDUX_STATE__": true
|
177 | },
|
178 | "settings": {
|
179 | "import/ignore": [
|
180 | "node_modules"
|
181 | ]
|
182 | },
|
183 | "rules": {
|
184 | "no-const-assign": 1,
|
185 | "no-extra-semi": 2,
|
186 | "semi": 0,
|
187 | "no-case-declarations": 2,
|
188 | "no-console": 0,
|
189 | "no-fallthrough": 0,
|
190 | "no-empty": 0,
|
191 | "no-empty-pattern": 2,
|
192 | "no-mixed-spaces-and-tabs": 0,
|
193 | "no-octal": 2,
|
194 | "no-redeclare": [
|
195 | 2,
|
196 | {
|
197 | "builtinGlobals": true
|
198 | }
|
199 | ],
|
200 | "no-self-assign": 2,
|
201 | "no-this-before-super": 1,
|
202 | "no-undef": 1,
|
203 | "no-unreachable": 1,
|
204 | "no-unused-vars": 1,
|
205 | "no-use-before-define": 0,
|
206 | "constructor-super": 1,
|
207 | "curly": 0,
|
208 | "eqeqeq": 0,
|
209 | "func-names": 0,
|
210 | "valid-typeof": 1,
|
211 | "indent": [
|
212 | "error",
|
213 | 4,
|
214 | {
|
215 | "SwitchCase": 1
|
216 | }
|
217 | ],
|
218 | "react/jsx-uses-react": "error",
|
219 | "react/jsx-uses-vars": "error"
|
220 | }
|
221 | }
|
222 | }
|