4986 Commits

Author SHA1 Message Date
Filipe Silva
7d3460d115 fix(@angular-devkit/build-angular): roll angular app test back to VE
This should really be using Ivy but was getting the error below on every second build.
`ERROR in Cannot read property 'incrementalState' of null`
2019-10-16 10:00:49 -07:00
Filipe Silva
1f52cda2e5 feat(@angular-devkit/build-angular): update peer dependency support 2019-10-16 10:00:49 -07:00
Filipe Silva
fb05ce4fdf feat(@ngtools/webpack): update peer dependency support 2019-10-16 10:00:49 -07:00
Filipe Silva
fd49f2e2fc test: disable typescript version check 2019-10-16 10:00:49 -07:00
Filipe Silva
7612d3e200 build: use TS 3.6.4 2019-10-16 10:00:49 -07:00
Vikram Subramanian
012929a8ac release: v9.0.0-next.10 v9.0.0-next.10 2019-10-16 07:31:07 -07:00
Alan Agius
90a29255da refactor(@angular-devkit/build-angular): remove branch that checks for ɵmod
Under VE this symbol exists in ngfactories and hence it is not safe to use it to determine if the app is running under ivy
2019-10-16 05:56:23 -07:00
Alan Agius
3380d67a1e test: update nguniversal test for version 9 2019-10-16 05:56:23 -07:00
Alan Agius
f943d3a8dc refactor(@angular-devkit/build-angular): rename ngModuleDef to ɵmod 2019-10-16 05:56:23 -07:00
Alan Agius
6b0aec4cc2 build: update framework packages to 9.0.0-next.11 2019-10-16 05:56:23 -07:00
George Kalpakas
804d60de0c fix(@schematics/angular): rename the ivy-ngcc command to ngcc
With angular/angular#33140, the Angular Compatibility Compiler
executable will be renamed from `ivy-ngcc` to `ngcc`.
2019-10-16 05:56:23 -07:00
Alan Agius
e847ee5c83 fix(@angular-devkit/build-angular): change the ngComponentDef to ɵcmp
Related to 64fd0d6db9
2019-10-16 05:56:23 -07:00
Filipe Silva
940276f554 fix(@schematics/angular): update ngcc postinstall command 2019-10-15 19:19:05 -07:00
Renovate Bot
2b22e73990 build: update ng-packagr to version ~5.7.0 2019-10-15 11:23:32 -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
Renovate Bot
a803dea22a build: update rollup to version 1.24.0 2019-10-15 11:23:04 -07:00
Alan Agius
38947d8643 refactor(@angular-devkit/build-angular): remove differential loading version 1.0 2019-10-15 11:22:34 -07:00
Renovate Bot
c19583057a build: update to version 2019-10-15 11:20:39 -07:00
Renovate Bot
2a78706f1a build: update autoprefixer to version 9.6.5 2019-10-14 16:59:32 -07:00
Renovate Bot
d3518a1abc build: update license-webpack-plugin to version 2.1.3 2019-10-14 16:59:20 -07:00
Renovate Bot
3847001bc1 build: update core-js to version 3.3.2 2019-10-14 16:59:08 -07:00
Renovate Bot
aeab0a0264 build: update webpack to version 4.41.1 2019-10-14 16:58:58 -07:00
Alan Agius
b3086ffd54 fix(@angular-devkit/build-angular): only copy assets outside of webpack when differential loading is needed in build builder
Fixes #15825
2019-10-14 13:42:29 -07:00
Alan Agius
5d9b20b49c refactor(@schematics/angular): remove redundant quotes from protractor options 2019-10-14 13:41:58 -07:00
Alan Agius
a1cf5f5b1e fix(@angular-devkit/build-webpack): proxy config with windows authentication
It seems that this is causing issues with proxy config and IIS with Windows authentication, for now we remove the `ArchitectPlugin` since it's not being used.

Fixes #14595
2019-10-14 13:41:34 -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
Filipe Silva
27c3650d80 feat(@angular-devkit/architect): support multiple configs in WorkspaceNodeModulesArchitectHost
Add support for parsing multiple configurations in a single string using comma as a separator.

This support is only at the host level (`WorkspaceNodeModulesArchitectHost` in this case) and does not change the underlying Architect API.

Different hosts are able to compose target options in different ways.
2019-10-14 13:40:48 -07:00
Alan Agius
a7f977f05d feat(@schematics/angular): remove @angular/pwa from depedencies
`@angular/pwa` is not needed as a dependency. This is because the pwa package is a schematic and is only used once when adding pwa capabilities to your application. After that, this package is not used anymore.

Closes #15764
2019-10-14 13:40:31 -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
Alan Agius
750baf92d6 feat(@schematics/angular): add migration to add new i18n options for Ivy
This migration will update current projects by adding the `i18n` project level option and add `localize` option in the server and browser builder configurations when both `i18nLocale` and `i18nFile` are defined.
2019-10-14 09:55:49 -07:00
Alan Agius
7045a781ea test: fix i18n extraction e2e test
The default `source-language` is `en-US` and not `en`.
2019-10-14 09:50:01 -07:00
Renovate Bot
788875dda5 build: update terser-webpack-plugin to version 2.1.3 2019-10-11 13:54:36 -07:00
Renovate Bot
9c2cf7dea2 build: update rollup to version 1.23.1 2019-10-11 13:54:25 -07:00
Renovate Bot
102ba9a7b7 build: update @babel/core to version 7.6.4 2019-10-11 13:54:14 -07:00
Alan Agius
d9bf2dbbda fix(@angular-devkit/build-angular): avoid attempting to copy directories
Avoid copying directly directories, also which this change we cache `fs.existsSync` to optimize copying when a lot of file are being copied to the same destination.

Closes: #15816
2019-10-11 13:53:48 -07:00
Filipe Silva
5b8b628707 test: additional i18n e2e tests 2019-10-11 13:53:20 -07:00
mgechev
c1051b5205 release: v9.0.0-next.9 v9.0.0-next.9 2019-10-10 19:04:09 -07:00
Renovate Bot
88aa035cc3 build: update @angular/animations to version (#15758) 2019-10-10 17:23:48 -07:00
Filipe Silva
47490527ff feat(@angular-devkit/build-angular): add experimentalRollupPass (#15690)
In applications that make heavy use of lazy routes and ES2015 libraries, this option can improve bundle sizes. It might also break your bundles in ways we don't understand fully, so please test and report any problems you find.

NOTE: the following are known problems with experimentalRollupPass
- vendorChunk, commonChunk, namedChunks: these won't work, because by the time webpack sees the chunks, the context of where they came from is lost.
- webWorkerTsConfig: workers must be imported via a root relative path (e.g.`app/search/search.worker`) instead of a relative path (`/search.worker`) because of the same reason as above.
- loadChildren string syntax: doesn't work because rollup cannot follow the imports.
2019-10-10 12:39:38 -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
Filipe Silva
318396345a feat(@schematics/angular): use ngcc on postinstall (#15801)
* build: use FW 9.0.0-next.10

* feat(@schematics/angular): use ngcc on postinstall

This should improve the time first builds take.

Part of https://github.com/angular/angular/pull/32999

Blocked on an Angular release that includes https://github.com/angular/angular/pull/33049
2019-10-10 12:39:10 -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
Charles
2dc885304b refactor(@angular-devkit/build-angular): reorganize bundle processing for browser builder (#15776) 2019-10-09 11:25:23 -07:00
Leon Radley
c0d42e0c0e feat(@schematics/angular): add type option to component generator (#15754)
the type option allows you to change the default .component.ts suffix to new types.
such as

Route
Dialog
UI
Container
2019-10-09 11:09:12 -07:00
Renovate Bot
970e2055c0 build: update autoprefixer to version 9.6.4 (#15765) 2019-10-09 11:08:01 -07:00
Michael Prentice
964abe3b05 refactor(@schematics/update): missing space in usageMessage output (#15786)
Fixes #15784
2019-10-09 11:07:47 -07:00
Charles
3a44611483 refactor(@angular-devkit/build-angular): initial copy-on-write asset processing support (#15788)
This is currently only supported when performing a differential loading build (no watch mode).  This will eventually be expanded to cover watch mode and non-differential loading builds.
2019-10-09 11:07:31 -07:00
Renovate Bot
665f6e0d86 build: update @babel/core to version 7.6.3 (#15790) 2019-10-09 11:07:15 -07:00
Renovate Bot
10712372df build: update enhanced-resolve to version 4.1.1 (#15791) 2019-10-09 11:06:53 -07:00
Renovate Bot
3e5906baec build: update ng-packagr to version ~5.6.0 (#15793) 2019-10-09 11:06:11 -07:00