Skip to content

Commit 85bcccd

Browse files
committed
feature: disable --mobile
1 parent 36c0ee5 commit 85bcccd

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ You can modify the these scripts in `package.json` to run whatever tool you pref
212212

213213
### Support for offline applications
214214

215-
Angular-CLI includes support for offline applications via the `--mobile` flag on `ng new`. Support is experimental, please see the angular/mobile-toolkit project and https://mobile.angular.io/ for documentation on how to make use of this functionality.
215+
**The `--mobile` flag has been disabled temporarily. Sorry for the inconvenience.**
216+
217+
~~Angular-CLI includes support for offline applications via the `--` flag on `ng new`. Support is experimental, please see the angular/mobile-toolkit project and https://mobile.angular.io/ for documentation on how to make use of this functionality.~~
216218

217219
### Commands autocompletion
218220

addon/ng2/commands/new.ts

+7
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ const NewCommand = Command.extend({
5252
new SilentError(`We currently do not support a name of "${packageName}".`));
5353
}
5454

55+
if (commandOptions.mobile) {
56+
return Promise.reject(new SilentError(
57+
'The --mobile flag has been disabled temporarily while we await an update of ' +
58+
'angular-universal for supporting NgModule. Sorry for the inconvenience.'
59+
));
60+
}
61+
5562
commandOptions.blueprint = normalizeBlueprint(commandOptions.blueprint);
5663

5764
if (!commandOptions.directory) {

0 commit comments

Comments
 (0)