@@ -18,28 +18,28 @@ module.exports = class extends Generator {
18
18
type : "input" ,
19
19
name : "projectName" ,
20
20
message : "(1/10) What will be your project name?" ,
21
- required : "false"
21
+ required : "false" ,
22
22
} ,
23
23
{
24
24
// Prompts the user for the URL of the project"s GitHub repo.
25
25
type : "input" ,
26
26
name : "githubUrl" ,
27
27
message : "(2/10) What is the GitHub repository URL?" ,
28
- required : "false"
28
+ required : "false" ,
29
29
} ,
30
30
{
31
31
// Prompts the user for his GitHub username.
32
32
type : "input" ,
33
33
name : "githubUsername" ,
34
34
message : "(3/10) What is your GitHub username?" ,
35
- required : "false"
35
+ required : "false" ,
36
36
} ,
37
37
{
38
38
// Prompts the user for his GitHub username.
39
39
type : "input" ,
40
40
name : "projectDescription" ,
41
41
message : "(4/10) What is your project description?" ,
42
- required : "false"
42
+ required : "false" ,
43
43
} ,
44
44
{
45
45
// Prompts the user to pick a templating engine.
@@ -50,14 +50,14 @@ module.exports = class extends Generator {
50
50
{
51
51
name : " HTML" ,
52
52
value : "html" ,
53
- checked : true
53
+ checked : true ,
54
54
} ,
55
55
{
56
56
name : " Pug (Jade) [just for the _includes directory]" ,
57
57
value : "pug" ,
58
- checked : false
59
- }
60
- ]
58
+ checked : false ,
59
+ } ,
60
+ ] ,
61
61
} ,
62
62
{
63
63
// Prompts the user to choose stylesheets.
@@ -68,43 +68,43 @@ module.exports = class extends Generator {
68
68
{
69
69
name : " CSS" ,
70
70
value : "stylesheets" ,
71
- checked : false
71
+ checked : false ,
72
72
} ,
73
73
{
74
74
name : " SASS" ,
75
75
value : "sass" ,
76
- checked : false
76
+ checked : false ,
77
77
} ,
78
78
{
79
79
name : " SCSS" ,
80
80
value : "scss" ,
81
- checked : false
82
- }
83
- ]
81
+ checked : false ,
82
+ } ,
83
+ ] ,
84
84
} ,
85
85
{
86
86
// Prompts the user to decide if he want ES2015 support.
87
87
type : "confirm" ,
88
88
name : "es" ,
89
89
message :
90
90
"(7/10) Would you like to write ES2015? (ES2015 will be support using Babel and will automatically transpiled to ES5 for wide browser support)." ,
91
- default : true
91
+ default : true ,
92
92
} ,
93
93
{
94
94
// Prompts the user to decide if he want offline support.
95
95
type : "confirm" ,
96
96
name : "sw" ,
97
97
message :
98
98
"(8/10) Would you like to enable Service Worker for offline use?" ,
99
- default : true
99
+ default : true ,
100
100
} ,
101
101
{
102
102
// Prompts the user to decide if he want to validate his build.
103
103
type : "confirm" ,
104
104
name : "travis" ,
105
105
message :
106
106
"(9/10) Would you like to enable HTMLProofer to validate your Jekyll output on Travis-CI?" ,
107
- default : true
107
+ default : true ,
108
108
} ,
109
109
{
110
110
// Prompts the user to choose deploy method.
@@ -115,18 +115,18 @@ module.exports = class extends Generator {
115
115
{
116
116
name : " GitHub pages" ,
117
117
value : "github" ,
118
- checked : false
118
+ checked : false ,
119
119
} ,
120
120
{
121
121
name : " Firebase" ,
122
122
value : "firebase" ,
123
- checked : false
124
- }
125
- ]
126
- }
123
+ checked : false ,
124
+ } ,
125
+ ] ,
126
+ } ,
127
127
] ;
128
128
129
- return this . prompt ( prompts ) . then ( props => {
129
+ return this . prompt ( prompts ) . then ( ( props ) => {
130
130
// To access props later use this.props.someAnswer;
131
131
this . projectName = props . projectName ;
132
132
this . githubUsername = props . githubUsername ;
@@ -191,7 +191,7 @@ module.exports = class extends Generator {
191
191
githubUsername : this . githubUsername ,
192
192
projectDescription : this . projectDescription ,
193
193
includeGithub : this . includeGithub ,
194
- includeFirebase : this . includeFirebase
194
+ includeFirebase : this . includeFirebase ,
195
195
}
196
196
) ;
197
197
@@ -212,7 +212,7 @@ module.exports = class extends Generator {
212
212
this . templatePath ( "my-awesome-site/.babelrc" ) ,
213
213
this . destinationPath ( ".babelrc" ) ,
214
214
{
215
- includeES : ! this . includeES
215
+ includeES : ! this . includeES ,
216
216
}
217
217
) ;
218
218
@@ -222,7 +222,7 @@ module.exports = class extends Generator {
222
222
this . destinationPath ( ".gitignore" ) ,
223
223
{
224
224
includeSass : this . includeSass ,
225
- includeScss : this . includeScss
225
+ includeScss : this . includeScss ,
226
226
}
227
227
) ;
228
228
@@ -235,7 +235,7 @@ module.exports = class extends Generator {
235
235
githubUsername : this . githubUsername ,
236
236
projectDescription : this . projectDescription ,
237
237
includeTravis : this . includeTravis ,
238
- includeFirebase : this . includeFirebase
238
+ includeFirebase : this . includeFirebase ,
239
239
}
240
240
) ;
241
241
@@ -268,7 +268,7 @@ module.exports = class extends Generator {
268
268
includeSW : this . includeSW ,
269
269
includeGithub : this . includeGithub ,
270
270
includeFirebase : this . includeFirebase ,
271
- includeTravis : this . includeTravis
271
+ includeTravis : this . includeTravis ,
272
272
}
273
273
) ;
274
274
@@ -277,7 +277,7 @@ module.exports = class extends Generator {
277
277
this . templatePath ( "my-awesome-site/manifest.json" ) ,
278
278
this . destinationPath ( "manifest.json" ) ,
279
279
{
280
- projectName : this . projectName
280
+ projectName : this . projectName ,
281
281
}
282
282
) ;
283
283
@@ -287,7 +287,7 @@ module.exports = class extends Generator {
287
287
this . destinationPath ( "manifest.webapp" ) ,
288
288
{
289
289
projectName : this . projectName ,
290
- projectDescription : this . projectDescription
290
+ projectDescription : this . projectDescription ,
291
291
}
292
292
) ;
293
293
@@ -296,7 +296,7 @@ module.exports = class extends Generator {
296
296
this . templatePath ( "my-awesome-site/LICENSE" ) ,
297
297
this . destinationPath ( "LICENSE" ) ,
298
298
{
299
- githubUsername : this . githubUsername
299
+ githubUsername : this . githubUsername ,
300
300
}
301
301
) ;
302
302
@@ -323,7 +323,7 @@ module.exports = class extends Generator {
323
323
this . templatePath ( "my-awesome-site/index.html" ) ,
324
324
this . destinationPath ( "index.html" ) ,
325
325
{
326
- includePug : this . includePug
326
+ includePug : this . includePug ,
327
327
}
328
328
) ;
329
329
@@ -377,7 +377,7 @@ module.exports = class extends Generator {
377
377
includeES : this . includeES ,
378
378
includeGithub : this . includeGithub ,
379
379
includeFirebase : this . includeFirebase ,
380
- includeSW : this . includeSW
380
+ includeSW : this . includeSW ,
381
381
}
382
382
) ;
383
383
@@ -400,7 +400,7 @@ module.exports = class extends Generator {
400
400
this . templatePath ( "my-awesome-site/humans.txt" ) ,
401
401
this . destinationPath ( "humans.txt" ) ,
402
402
{
403
- githubUsername : this . githubUsername
403
+ githubUsername : this . githubUsername ,
404
404
}
405
405
) ;
406
406
@@ -411,7 +411,7 @@ module.exports = class extends Generator {
411
411
{
412
412
includeGithub : this . includeGithub ,
413
413
includeFirebase : this . includeFirebase ,
414
- includeSW : this . includeSW
414
+ includeSW : this . includeSW ,
415
415
}
416
416
) ;
417
417
@@ -421,7 +421,7 @@ module.exports = class extends Generator {
421
421
this . destinationPath ( "_includes/head.html" ) ,
422
422
{
423
423
includeGithub : this . includeGithub ,
424
- includeFirebase : this . includeFirebase
424
+ includeFirebase : this . includeFirebase ,
425
425
}
426
426
) ;
427
427
}
@@ -451,7 +451,7 @@ module.exports = class extends Generator {
451
451
) ;
452
452
453
453
this . installDependencies ( {
454
- bower : false
454
+ bower : false ,
455
455
} ) ;
456
456
}
457
457
} ;
0 commit comments