@@ -12,53 +12,53 @@ module.exports = Generator.extend({
1212 ) ) ;
1313
1414 var prompts = [ {
15- type : 'input' ,
16- name : 'name' ,
17- message : 'What is your project name?' ,
18- default : path . parse ( process . cwd ( ) ) . name , // Default to current folder name
19- store : true
20- } ,
21- {
22- type : 'input' ,
23- name : 'description' ,
24- message : 'Enter a short project description:' ,
25- default : '' ,
26- store : true
27- } ,
28- {
29- type : 'input' ,
30- name : 'version' ,
31- message : 'What semver version should the project start on?' ,
32- default : '0.0.0' ,
33- store : true
34- } ,
35- {
36- type : 'input' ,
37- name : 'license' ,
38- message : 'What license is the project distributed under?' ,
39- default : 'UNLICENSED' ,
40- store : true
41- } ,
42- {
43- type : 'confirm' ,
44- name : 'isprivate' ,
45- message : 'Is this a private project?' ,
46- default : true ,
47- store : true
48- } ,
49- {
50- type : 'input' ,
51- name : 'author' ,
52- message : 'Who/what is the author of this project?' ,
53- default : '' ,
54- store : true
55- } ,
56- {
57- type : 'input' ,
58- name : 'username' ,
59- message : 'What is your github user/organisation name?' ,
60- store : true
61- } ,
15+ type : 'input' ,
16+ name : 'name' ,
17+ message : 'What is your project name?' ,
18+ default : path . parse ( process . cwd ( ) ) . name , // Default to current folder name
19+ store : true
20+ } ,
21+ {
22+ type : 'input' ,
23+ name : 'description' ,
24+ message : 'Enter a short project description:' ,
25+ default : '' ,
26+ store : true
27+ } ,
28+ {
29+ type : 'input' ,
30+ name : 'version' ,
31+ message : 'What semver version should the project start on?' ,
32+ default : '0.0.0' ,
33+ store : true
34+ } ,
35+ {
36+ type : 'input' ,
37+ name : 'license' ,
38+ message : 'What license is the project distributed under?' ,
39+ default : 'UNLICENSED' ,
40+ store : true
41+ } ,
42+ {
43+ type : 'confirm' ,
44+ name : 'isprivate' ,
45+ message : 'Is this a private project?' ,
46+ default : true ,
47+ store : true
48+ } ,
49+ {
50+ type : 'input' ,
51+ name : 'author' ,
52+ message : 'Who/what is the author of this project?' ,
53+ default : '' ,
54+ store : true
55+ } ,
56+ {
57+ type : 'input' ,
58+ name : 'username' ,
59+ message : 'What is your github user/organisation name?' ,
60+ store : true
61+ } ,
6262 // {
6363 // type: 'confirm',
6464 // name: 'cssprocessor',
@@ -81,23 +81,23 @@ module.exports = Generator.extend({
8181 // return val.toLowerCase();
8282 // }
8383 // },
84- {
85- type : 'confirm' ,
86- name : 'jquery' ,
87- message : 'Would you like to use jquery ?' ,
88- default : true
89- } ,
90- {
91- when : function ( prompts ) {
92- // console .log(prompts);
84+ {
85+ type : 'confirm' ,
86+ name : 'jquery' ,
87+ message : 'Would you like to use jquery ?' ,
88+ default : true
89+ } ,
90+ {
91+ when : function ( prompts ) {
92+ // Console .log(prompts);
9393 prompts . bootstrap = false ;
9494 return prompts . jquery ;
95- } ,
96- type : 'confirm' ,
97- name : 'bootstrap' ,
98- message : 'Would you like to use bootstrap css 3.7 ?' ,
99- default : true
100- }
95+ } ,
96+ type : 'confirm' ,
97+ name : 'bootstrap' ,
98+ message : 'Would you like to use bootstrap css 3.7 ?' ,
99+ default : true
100+ }
101101 ] ;
102102
103103 return this . prompt ( prompts ) . then ( function ( props ) {
@@ -107,8 +107,7 @@ module.exports = Generator.extend({
107107 } ,
108108
109109 writing : function ( ) {
110-
111- // console.log(this.props.cssstyle);
110+ // Console.log(this.props.cssstyle);
112111 // if (this.props.cssstyle === "less") {
113112
114113 // this.props.less = true;
@@ -117,7 +116,7 @@ module.exports = Generator.extend({
117116 // this.props.less = false;
118117 // this.props.scss = true;
119118 // }
120-
119+
121120 // copy sample file
122121 this . fs . copy (
123122 this . templatePath ( '_dummyfile.txt' ) ,
@@ -184,7 +183,7 @@ module.exports = Generator.extend({
184183 this . destinationPath ( 'webpack.config.js' )
185184 ) ;
186185
187- //console .log(this.props);
186+ // Console .log(this.props);
188187 this . fs . copyTpl (
189188 this . templatePath ( '_package.json' ) ,
190189 this . destinationPath ( 'package.json' ) ,
@@ -200,7 +199,7 @@ module.exports = Generator.extend({
200199 this . templatePath ( './src' ) ,
201200 this . destinationPath ( './src' )
202201 ) ;
203- // console .log(this.props);
202+ // Console .log(this.props);
204203 this . fs . copyTpl (
205204 this . templatePath ( './src/app/app.module.ts' ) ,
206205 this . destinationPath ( './src/app/app.module.ts' ) ,
@@ -213,8 +212,7 @@ module.exports = Generator.extend({
213212 this . props
214213 ) ;
215214
216-
217- // if (this.props.cssstyle === "less") {
215+ // If (this.props.cssstyle === "less") {
218216 // console.log("removing sccs file");
219217 // this.fs.delete(this.destinationPath('./src/*.scss'));
220218 // } else {
@@ -224,8 +222,8 @@ module.exports = Generator.extend({
224222 } ,
225223
226224 install : function ( ) {
227- // this .yarnInstall();
228-
225+ // This .yarnInstall();
226+
229227 this . installDependencies ( {
230228 yarn : true ,
231229 npm : false ,
0 commit comments