-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
64 lines (54 loc) · 1.14 KB
/
config.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
63
64
var path = require("path")
module.exports = function() {
var port = process.env.PORT || 3000,
env = process.env.NODE_ENV || "dev"
var root = "./"
var config = {
env: env,
port: port,
root: root,
appNamePrompt: {
type: "input",
name: "appName",
message: "Please enter your app name: ",
default: path.basename(process.cwd())
},
frameworkPrompt: {
type: "list",
name: "framework",
message: "Which client side framework would you like to use?:",
choices: [{
name: "none",
value: "none"
},
{
name: "aurelia",
value: "aurelia"
},
{
name: "angular",
value: "angular"
}
]
}
}
config.getAureliaOptions = function() {
var options = [{
name: "aurelia",
setup: {
desc: "Uses the Aurelia development setup.",
type: String
}
},
{
name: "angular",
setup: {
desc: "Uses the Angular development setup.",
type: String
}
}
]
return options
}
return config
}