-
Notifications
You must be signed in to change notification settings - Fork 62
/
meta.js
32 lines (32 loc) · 936 Bytes
/
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
module.exports = {
helpers: {
raw: function(options) {
return options.fn(this)
},
ifBabel: function(options) {
var nodeMajMin = process.version.match(/v(\d*).(\d*)./)
var semMaj = Number(nodeMajMin[1])
var semMin = Number(nodeMajMin[2])
var nodeHasAsync = (semMaj === 7 && semMin >= 6) || semMaj >= 8
return nodeHasAsync ? '' : options.fn(this)
}
},
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'
}
},
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}}'
};