8000 feature: disable --mobile (#1592) · mikebellcoder/angular-cli@5a9941e · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5a9941e

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

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 7 additions & 0 deletions
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)
0