-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeta.js
63 lines (62 loc) · 1.6 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module.exports = {
helpers: {
escape: function(value) {
return value.replace(/'/g, ''');
}
},
prompts: {
name: {
'type': 'string',
'required': true,
'message': 'Project name'
},
description: {
'type': 'string',
'required': false,
'message': 'Project description',
'default': 'Nuxt.js project'
},
author: {
'type': 'string',
'message': 'Author'
},
i18n: {
'type': 'confirm',
'message': 'Use i18n?'
},
auth: {
'type': 'confirm',
'message': 'Use auth?'
},
ansible: {
'type': 'confirm',
'message': 'With ansible?'
},
travis: {
'when': "process.env.TRAVIS === 'true'",
'type': 'confirm',
'message': 'With travis?'
}
},
filters: {
'locales/**/*': 'i18n',
'middleware/i18n.js': 'i18n',
'pages/_locale/index.vue': 'i18n',
'pages/index.js': 'i18n',
'pages/index.vue': '!i18n',
'plugins/VueI18n.js': 'i18n',
'middleware/i18n.js': 'i18n',
'middleware/auth.js': 'auth',
'middleware/check-auth.js': 'auth',
'middleware/guest.js': 'auth',
'mixins/auth.js': 'auth',
'pages/_locale/auth/**/*': 'i18n && auth',
'pages/auth/**/*': '!i18n && auth',
'plugins/Axios.js': 'auth',
'store/auth.js': 'auth',
'ansible-nuxt.yml': 'ansible',
'bitbucket-pipelines.yml': 'ansible',
'deploy': 'ansible'
},
completeMessage: '{{#inPlace}}To get started:\n\n npm install # Or yarn\n npm run dev{{else}}To get started:\n\n cd {{destDirName}}\n npm install # Or yarn\n npm run dev{{/inPlace}}'
};