-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgenerator.js
38 lines (37 loc) · 953 Bytes
/
generator.js
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
module.exports = (api, options, rootOptions) => {
// modify package.json fields
api.extendPackage({
dependencies: {
'vue-router': '^3.0.1',
'semantic-ui-css': '^2.3.3',
'semantic-ui-vue': '^0.3.3',
'@arcblock/ocap-js': '^0.3.8',
'babel-polyfill': '^6.26.0',
},
devDependencies: {
'@vue/cli-plugin-babel': '^3.0.1',
'@vue/cli-plugin-eslint': '^3.0.1',
'@vue/cli-service': '^3.0.1',
'vue-template-compiler': '^2.5.17',
},
eslintConfig: {
root: true,
env: {
node: true,
},
extends: ['plugin:vue/essential', 'eslint:recommended'],
rules: {},
parserOptions: {
parser: 'babel-eslint',
},
},
postcss: {
plugins: {
autoprefixer: {},
},
},
browserslist: ['> 1%', 'last 2 versions', 'not ie <= 8'],
});
// copy and render all files in ./template with ejs
api.render('./template');
};