forked from lgwebdream/fe-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaultConfig.js
More file actions
30 lines (30 loc) · 785 Bytes
/
Copy pathdefaultConfig.js
File metadata and controls
30 lines (30 loc) · 785 Bytes
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
const customConfig = {
projectName: 'empty-project',
buildTool: 'snowpack', // webpack-backup/vite/snowpack; rollup(for feature)
mainFramework: 'react',
uiFramework: 'none',
featureList: [],
root: '',
// mainFrameworkVersion: '17', // react: 16/17, vue: 2/3
// test: 'jest', // chai/mocha
// style: ['sass', 'postcss', 'less'],
// lint: ['eslint', 'prettier'],
// node: '10',
// plugins: [],
};
const CONFIG_NAME = '.fecoderc.json';
const initConfig = {
request: {
url: 'http://localhost:3000',
headers: {},
},
language: 'zh-CN',
templatePath: 'src',
};
const defaultConfig = {
...initConfig,
...customConfig,
};
module.exports.CONFIG_NAME = CONFIG_NAME;
module.exports.initConfig = initConfig;
module.exports.defaultConfig = defaultConfig;