-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmeta.js
46 lines (46 loc) · 1.31 KB
/
meta.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
39
40
41
42
43
44
45
46
module.exports = {
prompts: {
name: {
type: 'string',
required: true,
message: 'Project name',
},
description: {
type: 'string',
required: false,
message: 'Project description',
default: 'A Vue.js project',
},
author: {
type: 'string',
message: 'Author',
},
extended: {
type: 'confirm',
message: `Add basic Login and Admin views with Vuex,
Vue-router and Bootstrap-vue?`,
},
},
filters: {
'client/router.js': 'extended',
'client/static/main.css': 'extended === false',
'client/static/images/**/*': 'extended',
'client/components/**/*': 'extended',
'client/services/**/*': 'extended',
'client/store/**/*': 'extended',
'client/style/**/*': 'extended',
'client/view/**/*': 'extended',
'server/boot/add-initial-data.js': 'extended',
'server/boot/create-admin.js': 'extended',
'server/boot/__tests__/create-admin.spec.js': 'extended',
'server/initial-data/**/*': 'extended',
'server/models/**/*': 'extended',
'test/client/components/**/*': 'extended',
'test/server/account.spec.js': 'extended',
},
complete(data, {logger}) {
logger.log('To get started:');
logger.log('1. Install dependencies: npm install');
logger.log('2. Build with: npm run build');
},
};