This repository was archived by the owner on Jul 21, 2022. It is now read-only.
File tree 2 files changed +9
-7
lines changed
packages/angular-cli/commands
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({
114
114
new SilentError ( 'We currently do not support a name of `' + packageName + '`.' ) ) ;
115
115
}
116
116
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
+
117
124
blueprintOpts . blueprint = normalizeBlueprint ( blueprintOpts . blueprint ) ;
118
125
119
126
return installBlueprint . run ( blueprintOpts )
Original file line number Diff line number Diff line change @@ -117,13 +117,8 @@ describe('Acceptance: ng init', function () {
117
117
] ) . then ( confirmBlueprinted ) ;
118
118
} ) ;
119
119
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 ;
127
122
} ) ;
128
123
129
124
it ( 'ng init can run in created folder' , function ( ) {
You can’t perform that action at this time.
0 commit comments