Skip to content

Commit 5a9941e

Browse files
authored
feature: disable --mobile (#1592)
1 parent 36c0ee5 commit 5a9941e

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ env:
1313
matrix:
1414
- SCRIPT=lint
1515
- SCRIPT=test
16-
- TARGET=mobile SCRIPT=mobile_test
16+
# - TARGET=mobile SCRIPT=mobile_test
1717
matrix:
1818
exclude:
1919
- node_js: "6"
2020
env: SCRIPT=lint
2121
- os: osx
2222
node_js: "5"
2323
env: SCRIPT=lint
24-
- os: osx
25-
env: TARGET=mobile SCRIPT=mobile_test
24+
# - os: osx
25+
# env: TARGET=mobile SCRIPT=mobile_test
2626

2727
before_install:
2828
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi

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)