@@ -31,6 +31,24 @@ export class Generator extends Base {
3131 type : String ,
3232 defaults : 'App'
3333 } ) ;
34+
35+ this . option ( 'dev-port' , {
36+ desc : 'Port to use for the development HTTP server' ,
37+ type : String ,
38+ defaults : '9000'
39+ } ) ;
40+
41+ this . option ( 'debug-port' , {
42+ desc : 'Port to use for the server debugger' ,
43+ type : String ,
44+ defaults : '5858'
45+ } ) ;
46+
47+ this . option ( 'prod-port' , {
48+ desc : 'Port to use for the production HTTP Server' ,
49+ type : String ,
50+ defaults : '8080'
51+ } ) ;
3452 }
3553
3654 get initializing ( ) {
@@ -90,9 +108,9 @@ export class Generator extends Base {
90108
91109 this . scriptExt = this . filters . ts ? 'ts' : 'js' ;
92110 this . templateExt = this . filters . jade ? 'jade' : 'html' ;
93- this . styleExt = this . filters . sass ? 'scss' :
94- this . filters . less ? 'less' :
95- this . filters . stylus ? 'styl' :
111+ this . styleExt = this . filters . sass ? 'scss' :
112+ this . filters . less ? 'less' :
113+ this . filters . stylus ? 'styl' :
96114 'css' ;
97115 } else {
98116 insight . track ( 'skipConfig' , 'false' ) ;
@@ -103,6 +121,11 @@ export class Generator extends Base {
103121 }
104122 } ) ;
105123 }
124+ } ,
125+ assignPorts ( ) {
126+ this . devPort = this . options [ 'dev-port' ] ;
127+ this . debugPort = this . options [ 'debug-port' ] ;
128+ this . prodPort = this . options [ 'prod-port' ] ;
106129 }
107130 } ;
108131 }
0 commit comments