Skip to content

Commit 38bb163

Browse files
committed
feat: gulp and proxy
1 parent 4215afa commit 38bb163

93 files changed

Lines changed: 824 additions & 2407 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = {
3737
'import/no-extraneous-dependencies': 0,
3838
// reference https://medium.com/@paulwithap/the-most-important-eslint-rule-for-redux-applications-c10f6aeff61d
3939
'import/named': 2,
40-
'no-console': ['error', { 'allow': ['error'] }],
40+
'no-console': ['error', { 'allow': ['log', 'error'] }],
4141
},
4242
'globals': {
4343
'React': false,

bin/config.js

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
const path = require('path')
2+
3+
function getPath(folder) {
4+
const cwd = process.env.INIT_CWD || process.cwd()
5+
return path.resolve(cwd, folder)
6+
}
7+
8+
module.exports = {
9+
asset: {
10+
path: getPath('static/'),
11+
src: {
12+
path: getPath('src/'),
13+
js: getPath('src/static/js'),
14+
img: getPath('src/static/img'),
15+
view: getPath('src/template'),
16+
},
17+
build: {
18+
path: getPath('static/build'),
19+
js: getPath('static/build/js'),
20+
css: getPath('static/build/css'),
21+
img: getPath('static/build/img'),
22+
view: getPath('view/build/'),
23+
},
24+
dist: {
25+
path: getPath('static/dist'),
26+
js: getPath('static/dist/js'),
27+
css: getPath('static/dist/css'),
28+
img: getPath('static/dist/img'),
29+
view: getPath('view/dist/'),
30+
},
31+
},
32+
domain: 'piaofang.wepiao.com',
33+
dev: {
34+
fe: {
35+
local: '127.0.0.1:8000',
36+
dev: '127.0.0.1:8000',
37+
pre: '127.0.0.1:8000',
38+
pro: '127.0.0.1:8000',
39+
},
40+
be: {
41+
dev: '127.0.0.1:8000',
42+
pre: '127.0.0.1:8000',
43+
pro: '127.0.0.1:8000',
44+
},
45+
f2e: '127.0.0.1:8000',
46+
api: '127.0.0.1:8000',
47+
react: '0',
48+
},
49+
}

bin/config/default.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

bin/config/dev.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

bin/config/development.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/config/gulp.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

bin/config/production.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)