File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
packages/angular-cli/commands Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,13 @@ const InitCommand: any = Command.extend({
114114 new SilentError ( 'We currently do not support a name of `' + packageName + '`.' ) ) ;
115115 }
116116
117+ if ( commandOptions . mobile ) {
118+ return Promise . reject ( new SilentError (
119+ 'The --mobile flag has been disabled temporarily while we await an update of ' +
120+ 'angular-universal for supporting NgModule. Sorry for the inconvenience.'
121+ ) ) ;
122+ }
123+
117124 blueprintOpts . blueprint = normalizeBlueprint ( blueprintOpts . blueprint ) ;
118125
119126 return installBlueprint . run ( blueprintOpts )
Original file line number Diff line number Diff line change @@ -117,13 +117,8 @@ describe('Acceptance: ng init', function () {
117117 ] ) . then ( confirmBlueprinted ) ;
118118 } ) ;
119119
120- it ( 'ng init --mobile' , ( ) => {
121- return ng ( [
122- 'init' ,
123- '--skip-npm' ,
124- '--skip-bower' ,
125- '--mobile'
126- ] ) . then ( ( ) => confirmBlueprinted ( true ) ) ;
120+ it ( 'ng init with mobile flag does throw exception' , function ( ) {
121+ expect ( ng ( [ 'init' , '--mobile' ] ) ) . to . throw ;
127122 } ) ;
128123
129124 it ( 'ng init can run in created folder' , function ( ) {
You can’t perform that action at this time.
0 commit comments