375 Commits

Author SHA1 Message Date
Alan Agius
e31d5d89b7 build: update bazel packages 2019-10-24 12:05:25 -07:00
Alan Agius
70e460d656 refactor: use require.resolve instead of custom resolve (#15906) 2019-10-23 09:59:36 -07:00
Noopur
e7bc27056d docs: corrected spelling of Globally under Installation section (#15905) 2019-10-23 09:58:51 -07:00
Alan Agius
e92c46a3cf refactor(@schematics/angular): remove deprecated spec and styleext options
BREAKING CHANGE:

Deprecated `styleext` and `spec` options have been removed.  Use `style` and `skipTests` options instead.
2019-10-22 13:27:08 -07:00
Judy Bogart
98e0ca4542 docs: include major-verson update advice 2019-10-22 13:25:42 -07:00
Alan Agius
b0dcfd08a0 fix(@angular/cli): logic to determine if the installed CLI is out of date
With this change we now check if the current CLI version is the latest published version. If it is not, we install a temporary version to run the `ng update` with.
2019-10-22 13:13:54 -07:00
Renovate Bot
1c5e3586ca build: update open to version 7.0.0 2019-10-21 13:03:55 -07:00
Tom Sullivan
6c6ae08ec7 fix(@angular/cli): Determine relative paths correctly
As `git status --porcelain` always shows paths relative to the top
level, fetch the top level path in `checkCleanGit` and properly
determine whether any modified files are actually within the
Angular workspace root.
2019-10-17 14:14:07 -07:00
Alan Agius
cf349433ab fix(@angular/cli): ng update log messages printed twice
After the logs are printing to console clean the logs queue.

Fixes #15839
2019-10-15 11:23:16 -07:00
Filipe Silva
65c2a1965f feat(@angular/cli): support using multiple configurations
It's now possible to use multiple configurations by separating them with a comma:
```
ng build --configuration=one,two,three
```

They will be applied from left to right. If `--prod` is also present, it will be considered to be the first configuration and thus able to be overriden.

You can also use it in target strings:
```
        "serve": {
          "builder": "@angular-devkit/build-angular:dev-server",
          "options": {
            "browserTarget": "latest-project:build:one,two"
          },
          "configurations": {
            "production": {
              "browserTarget": "latest-project:build:production,one,two"
            }
          }
```

Fix https://github.com/angular/angular-cli/issues/10612
2019-10-14 13:40:48 -07:00
Alan Agius
d133ba68c0 feat(@angular/cli): add support for ng-add packages that should not be saved as dependencies
With this change the CLI offers a way for a package authors to specify if during `ng add` the package should be saved as a `dependencies`, `devDependencies` or not saved at all.

Such config needs to be specified in `package.json`

Example:
```json
  "ng-add": {
    "save": false
  }
```

Possible values are;
- false - Don't add the package to `package.json`
- true - Add the package to the `dependencies`
- `dependencies` - Add the package to the `dependencies`
- `devDependencies` - Add the package to the `devDependencies`

Closes #12003 , closes #15764 and closes #13237
2019-10-14 13:40:31 -07:00
Charles
33e9039219 build: set minimum Node.js version to 10.13 (#15756)
Version 10.13.0 was the first version of 10.x that was considered LTS.  This also provides an improved performance baseline as well as access to newer Node.js APIs and Javascript language features which the Angular CLI will now be able to leverage.
2019-10-10 12:39:28 -07:00
Alan Agius
c3169ae7d2 New i18n schema (#15760)
* feat(@angular-devkit/core): update schema to support new i18n options

"projects": {
  "my-app": {
    "projectType": "application",
    "schematics": {},
    "root": "",
    "i18n": {
      "sourceLocale": "en-US",
      "locales": {
        "fr": "src/locale/messages.fr.xlf"
      }
    },
    "sourceRoot": "src",
    ...
  }
}

* feat(@angular-devkit/build-angular): add new i18n options to browser and server builders

With this change we add `translateLocales` as new options for i18n in browser and server builders.

We also deprecate the following options;
* i18nLocale
* i18nFormat
* i18nFile

* feat(@angular-devkit/build-angular): deprecate `i18nFormat` and `i18nLocale` options of `extract-i18n` builder

Option `i18nFormat` has been deprecated in favor of `format` and `i18nLocale` option has been deprecated in favor of the `sourceLocale` sub option of the `i18n` project level option.

* feat(@angular/cli): add alias of `i18n-extract` for `x18n` command

* refactor: rename `translateLocales` to `localize`
2019-10-10 12:39:00 -07:00
Keen Yee Liau
825b4bb139 build: update BUILD files for g3 sync
Removing @typings allows us to use a single transform rule: @node_module
2019-10-07 11:27:35 -07:00
Keen Yee Liau
ebc92c2125 refactor(@angular/cli): Simplify retrival of collection name 2019-10-03 14:42:35 -07:00
Keen Yee Liau
7e1e8adf7a feat(@angular/cli): allow subclass to override default collection name
This PR provides a way for subclass that extends `SchematicCommand` to
provide a different default collection name.
This is needed in g3 where the collection name is different from
external.
2019-10-03 14:42:20 -07:00
Keen Yee Liau
0662a8d774 build: g3 sync for packages/schematics and packages/angular
Fix all build errors in g3
2019-10-03 14:29:07 -07:00
Charles Lyding
225ff385ac fix(@angular/cli): do not warn on multiple array option use
Fixes #15630
2019-09-19 14:42:52 -07:00
Charles Lyding
0abeadbc10 refactor(@angular/cli): use canonical npm logic to determine update package version 2019-09-19 14:41:04 -07:00
Charles Lyding
9deaf87754 fix(@angular/cli): add browser builder index option longhand form to schema 2019-09-19 14:39:51 -07:00
Charles
ace02f6c2a feat(@angular/cli): create commits per migration during update (#15611) 2019-09-17 08:35:18 -07:00
Charles
a1487b3e9e feat(@angular/cli): check/prompt for workspace level analytics configuration (#14264) 2019-09-12 11:45:59 -07:00
Charles Lyding
2565077dbe fix(@angular/cli): correctly account for linked packages in update
Fixes #15511
Fixes #15294
2019-09-11 10:10:48 -07:00
noeri
366e51be04 feat(@angular-devkit/build-angular): expose webpack-dev-server's allowedHosts option
Closes #13656
2019-09-09 14:09:58 -07:00
Adam Vigneaux
87b01ffd6a feat(@angular/cli): add support for custom npmrc paths
According to [the npm config
docs](https://docs.npmjs.com/misc/config#npmrc-files), a user can
specify the path to their `npmrc` files using the environment
variables `NPM_CONFIG_USERCONFIG` and `NPM_CONFIG_GLOBALCONFIG`. When
set, these variables should override the default paths.
2019-08-29 23:47:22 +05:30
Alan Agius
26dd51221a style: collapse if statements (#15449) 2019-08-27 10:25:14 -07:00
Charles
5606a4cc0e fix(@angular/cli): handle promise rejection on analytics install prompt (#15455)
A rejection in this case should be ignored to prevent potential installation failure.
2019-08-27 10:24:32 -07:00
Charles
891fe527d7 feat(@angular/cli): update with migrate only creates commit per migration (#15414)
* feat(@angular/cli): update with migrate only creates commit per migration

* refactor(@angular/cli): simplify update command schematic execution
2019-08-26 11:48:43 -07:00
Renovate Bot
215f179da7 build: update inquirer to version 7.0.0 (#15422) 2019-08-23 11:38:32 -07:00
Renovate Bot
bef6e36875 build: update npm-package-arg to version 6.1.1 (#15406) 2019-08-23 10:02:34 -07:00
Judy Bogart
fe3d597c0e Add deploy command doc (#15402)
* docs: add deploy command doc

* docs: fix json example

* docs: add link to cli builder doc

* docs: remove link

* docs: restore link
2019-08-22 10:14:38 -07:00
Judy Bogart
08d7d0298c docs: remove app from app project 2019-08-21 15:21:49 -07:00
Judy Bogart
3c69e34b2f docs: ng add configures project in cwd 2019-08-21 15:21:49 -07:00
Renovate Bot
e84e28a540 build: update pacote to version 9.5.8 2019-08-20 10:14:30 -07:00
Renovate Bot
16a1e4ca51 build: update pacote to version 9.5.6 2019-08-16 09:32:18 -07:00
Charles Lyding
b630317b4b refactor(@angular/cli): convert workspace access to async
This is in preparation for conversion from the experimental workspace API to the stable workspace API.
2019-08-16 09:32:04 -07:00
Renovate Bot
fc772d15b6 build: update pacote to version 9.5.5 (#15306) 2019-08-12 10:28:25 -07:00
Renovate Bot
2182c7ccad build: update inquirer to version 6.5.1 (#15304) 2019-08-12 10:27:54 -07:00
Charles Lyding
5a7b823b28 test: remove use of deprecated synchronous test helper runSchematic 2019-08-08 08:27:31 -07:00
mgechev
5df50bacbe feat(@angular/cli): implement deploy command 2019-07-30 21:07:50 -07:00
vikerman
4287d57a32
fix(@angular/cli): typo in error message
Fixes #15208
2019-07-30 14:34:29 -07:00
Alan
b9598835bb fix(@angular/cli): don't add leftovers when there are none
At the moment we are adding leftover args to `--` even when it's an empty array, this causes schematics without arguments to fail silently, because of 07780b9272/packages/angular/cli/models/schematic-command.ts (L463)

Fixes: #15156
2019-07-29 10:45:45 -07:00
Filipe Silva
e8dff5718f build: update to TS 3.5 2019-07-29 10:15:23 -07:00
Renovate Bot
79f5298391 build: update semver to version 6.3.0 2019-07-24 19:07:57 -07:00
Alan Agius
15ef15e94a style: remove redundant max-line-length disables and fix other lint issues 2019-07-24 19:06:21 -07:00
Alan Agius
f32c9dde1a feat(@angular/cli): add anyComponentStyle budget type 2019-07-24 19:05:00 -07:00
Renovate Bot
214a4189b7 build: update pacote to version 9.5.4 (#15100) 2019-07-17 11:07:37 -07:00
Minko Gechev
d274add7b4
fix(@angular/cli): use correct schematic defaults considering workspace (#15041)
Fix #14986

This PR includes some refactoring to simplify the interaction
of the `NodeWorkflow` and the `BaseWorkflow` with the registry.

We were registering redundant `addPostTransform`s. Some of them in
the constructor of the `BaseWorkflow`, which did not allow us to
intercept `addUndefinedDefaults`.

Additionally, we were setting the `validateOptionsWithSchema` transform
multiple times unnecessarily.

An issue left to fix is support for the `--project` option in
schematic commands. Currently, `getProjectName` does not know about
this option, since `createWorkflow` does not know how to parse the
command line arguments. The parsing logic is implemented partially
by the concrete implementation of the `SchematicCommand` template
method.
2019-07-16 09:58:01 -07:00
Judy Bogart
b5924febb2 Document possible values of analytics command (#15039)
* docs: add possible values to ref doc for analytics command

* docs: add ci value
2019-07-15 16:31:08 -07:00
Renovate Bot
254b02619c build: update pacote to version 9.5.2 (#15070) 2019-07-15 09:49:05 -07:00