Skip to content

Commit

Permalink
feature: disable --mobile (#1592)
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl authored Aug 8, 2016
1 parent 36c0ee5 commit 5a9941e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ env:
matrix:
- SCRIPT=lint
- SCRIPT=test
- TARGET=mobile SCRIPT=mobile_test
# - TARGET=mobile SCRIPT=mobile_test
matrix:
exclude:
- node_js: "6"
env: SCRIPT=lint
- os: osx
node_js: "5"
env: SCRIPT=lint
- os: osx
env: TARGET=mobile SCRIPT=mobile_test
# - os: osx
# env: TARGET=mobile SCRIPT=mobile_test

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ You can modify the these scripts in `package.json` to run whatever tool you pref

### Support for offline applications

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.
**The `--mobile` flag has been disabled temporarily. Sorry for the inconvenience.**

~~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.~~

### Commands autocompletion

Expand Down
7 changes: 7 additions & 0 deletions addon/ng2/commands/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ const NewCommand = Command.extend({
new SilentError(`We currently do not support a name of "${packageName}".`));
}

if (commandOptions.mobile) {
return Promise.reject(new SilentError(
'The --mobile flag has been disabled temporarily while we await an update of ' +
'angular-universal for supporting NgModule. Sorry for the inconvenience.'
));
}

commandOptions.blueprint = normalizeBlueprint(commandOptions.blueprint);

if (!commandOptions.directory) {
Expand Down

0 comments on commit 5a9941e

Please sign in to comment.