263 Commits

Author SHA1 Message Date
Alan
901042d95b fix(@angular-devkit/build-angular): fix check for absolute paths in windows in server config
This changes fixes `Error: You must pass in a NgModule or NgModuleFactory to be bootstrapped`.

At the moment the check for absolute path is not correct for windows.

Fixes #13865 and fixes https://github.com/angular/universal/issues/1139
2019-03-11 13:40:38 -07:00
Renovate Bot
29b1533fa9 build: update webpack-dev-middleware to version 3.6.1 (#13843) 2019-03-07 16:02:08 -08:00
Alan
309b4838c3 fix(@angular-devkit/build-angular): don't bundle linked modules when bundleDependencies in none in server builder
Fixes #13817
2019-03-06 11:29:51 -08:00
Filipe Silva
643e83d054 feat(@schematics/angular): use esnext as the default TS module format 2019-03-06 11:29:34 -08:00
Alan Agius
320273af5a feat(@angular-devkit/build-angular): add support for tslint 5.13+
Tslint 5.13+ introduced an addition parameter for the format method, mainly used for check-style formatter.

During runtime users using an older version of tslint that doesn't expose this it is not a problem as this parameter will be ignored.

See: 9000479b69
2019-03-06 11:28:37 -08:00
Hans Larsen
61adf9ae35 refactor(@angular-devkit/build-angular): remove useless variable rename 2019-03-06 10:05:31 -08:00
Renovate Bot
392f52580d build: update autoprefixer to version 9.4.10 2019-03-05 15:44:54 -08:00
Charles Lyding
28b3042dc5 style: fix lint errors 2019-03-05 14:53:33 -08:00
Hans Larsen
eca5dc322f test(@angular-devkit/build-angular): move ALL Browser Builder tests
To the new Architect API.
2019-03-05 11:14:59 -08:00
Hans Larsen
e8dab635ff feat(@angular-devkit/build-angular): add Browser Builder v2
It exposes a lot of functions that can be reused to run webpack with
different config, so third party builders can reuse those.
2019-03-05 11:14:59 -08:00
Mathias Raacke
dfb08b95b7 feat(@ngtools/webpack): allow .svg files as templates
With directTemplateLoading enabled, components
can now use .svg files as templates. For AOT builds,
the Angular compiler host now reads .svg files
directly when reading component templates.
For JIT builds, replaceResources creates a require call
that directly uses raw-loader instead of using the
loader provided by the current webpack configuration.

Closes #10567
2019-03-05 10:16:41 -08:00
Alan Agius
d1a0697102 test: fix new tslint architect test large on windows 2019-03-04 10:25:32 -08:00
Charles Lyding
2f4602db08 feat(@angular-devkit/build-angular): change es5BrowserSupport output filename to polyfills.es5.js
Closes #13808
2019-03-04 09:36:00 -08:00
Renovate Bot
b80a281342 build: update ajv to version 6.10.0 2019-03-04 09:35:46 -08:00
Renovate Bot
ef523d0d41 build: update webpack to version 4.29.6 2019-03-04 09:34:41 -08:00
Renovate Bot
0be006ce00 build: update autoprefixer to version 9.4.9 2019-02-27 10:11:06 -08:00
Alan Agius
70b28193c9 fix(@angular-devkit/build-angular): sourceMap option not working in tests
Fixes #13766
2019-02-26 08:37:49 -08:00
Renovate Bot
15b208fa95 build: update license-webpack-plugin to version 2.1.1 2019-02-26 08:34:27 -08:00
Renovate Bot
4dfa5036cb build: update terser-webpack-plugin to version 1.2.3 2019-02-26 08:34:16 -08:00
Renovate Bot
f282797197 build: update webpack-dev-server to version 3.2.1 2019-02-26 08:34:04 -08:00
Alan Agius
ae13974f1d build: update to rxjs 6.4 2019-02-26 08:33:48 -08:00
Renovate Bot
86dbf22225 build: update ajv to version 6.9.2 2019-02-26 08:33:15 -08:00
Rares Matei
f03c44c841 fix(@angular-devkit/build-angular): add promise polyfill to --es5BrowserSupport provided polyfills
Since Angular uses Promises, we need to provide a polyfill for it to support ES5 only browsers.
2019-02-22 15:52:20 -08:00
Hans Larsen
78f5c287d8 refactor(@angular-devkit/build-angular): clean up some interfaces and schemas
Remove the manually maintained schema.d.ts from the browser builder, and use
the Schema JSON file to generate it. This had a lot of repercussions around
the whole build-angular code base and the different interfaces that were
manually kept.
2019-02-21 16:20:54 -08:00
Renovate Bot
4a5084f3a3 build: update copy-webpack-plugin to version 5.0.0 2019-02-21 10:14:49 -08:00
Renovate Bot
bd6fe982de build: update webpack-dev-middleware to version 3.6.0 2019-02-20 09:02:18 -08:00
Renovate Bot
2241e07c22 build: update autoprefixer to version 9.4.8 2019-02-20 09:02:06 -08:00
Charles Lyding
4751fc02d4 fix(@angular-devkit/build-angular): improve webpack loader resolution
Previously, all loaders either needed to be in the workspace's node modules directory or a node modules directory directly within the build angular package.  A package manager can potentially hoist a loader to a node modules location inbetween the two and causing loader resolution to fail.  This change causes webpack to check all intermediate node modules directories in addition to the initial two locations.
2019-02-19 13:56:35 -08:00
hrocha16
05e2a0eafe fix(@angular-devkit/build-angular): minimum threshold 2019-02-19 13:56:07 -08:00
Renovate Bot
9efa933937 build: update webpack to version 4.29.5 2019-02-19 13:51:53 -08:00
Hans Larsen
df1b56c251 feat(@angular-devkit/build-angular): move tslint to new API
It is only new files and the old builder is still available. The new
one can only be used by the new Architect API.
2019-02-19 13:51:29 -08:00
Charles Lyding
94b087c9e1 fix(@angular-devkit/build-angular): disable by default stylesheet root relative URL rebasing
BREAKING CHANGE:
Root relative URLs are a standardized method to reference a resource path from the root of a host.  The previous behavior of the Angular CLI prevented this from occuring and resulted in an inability to reference stylesheet assets in this manner.  The initial reason for this behavior is no longer present in the internal implementation of the Angular CLI.  Therefore, this now unnecessary and non-standard behavior is being phased out.  If an application currently relies on this behavior, a compatibility option `rebaseRootRelativeCssUrls` has been provided for the 8.x release cycle to facilitate transition away from this non-standard and limiting behavior.  The recommended method to transition is to use relative paths within the source stylesheet.  This allows the build system to process and generate a full URL for the asset.
2019-02-19 10:14:46 -08:00
Renovate Bot
1bba17fa0d build: update webpack to version 4.29.4 2019-02-17 11:29:17 -08:00
Charles Lyding
5016843c39 style(@angular-devkit/build-angular): remove comment reference to eject 2019-02-15 15:09:11 -08:00
Alan
daab547731 docs: remove analyse link from statsJson description
https://webpack.github.io/analyse has been broken for over a year and it seems that it is no longer maintained.

See  https://github.com/webpack/analyse/issues/30

Closes #10589
2019-02-13 15:26:12 -08:00
Renovate Bot
17388866a5 build: update ajv to version 6.9.1 2019-02-13 15:22:06 -08:00
hrocha16
b611e7fc58 fix(@angular-devkit/build-angular): added warning for ES2017 2019-02-13 15:20:41 -08:00
Charles Lyding
af88936ef5 fix(@angular-devkit/build-angular): remove unneeded script element type 2019-02-13 15:20:15 -08:00
Alan
1efc9d29af fix(@angular-devkit/build-angular): throw error when multiple bundles have been name the same
Naming more than 1 bundle with the same name might cause undefined behavior.

Fixes #13568
2019-02-13 15:19:01 -08:00
Alan
5415bcc6f8 refactor: deprecate protractor baseUrl option from builder
Users should use baseUrl property in the Protractor config file
2019-02-08 16:09:30 -08:00
Alan
8252f20615 fix(@angular-devkit/build-angular): error when both baseUrl and devServerTarget are used in protractor
Users cannot use both baseUrl and devServerTarget, and the later superseeds the baseUrl.

Fixes #13611
2019-02-08 16:09:30 -08:00
Alan
7bc2e396d3 refactor: change error message to use option name instead of args 2019-02-08 16:09:30 -08:00
Alan
e0e129c22a build: update angular packages to version 8 2019-02-08 16:06:37 -08:00
Renovate Bot
87fd5d1f3e build: update karma-source-map-support to version 1.4.0 2019-02-08 16:05:45 -08:00
Renovate Bot
b5a5e99baf build: update webpack-dev-middleware to version 3.5.2 (#13609) 2019-02-07 08:32:49 -08:00
Renovate Bot
4ecd232733 build: update webpack to version 4.29.3 (#13608) 2019-02-07 08:24:43 -08:00
Renovate Bot
37b4714b97 build: update webpack to version 4.29.1 2019-02-05 21:28:52 -08:00
Filipe Silva
87caf2118b fix(@angular/cli): update terser-webpack-plugin (#13589)
Fix #13582
2019-02-05 21:16:05 -08:00
Filipe Silva
e6f96fb744 fix(@angular-devkit/build-angular): use sourcemap object in karma plugin (#13584)
Followup to https://github.com/angular/angular-cli/pull/13062

Fix https://github.com/angular/angular-cli/issues/13580
2019-02-05 21:15:49 -08:00
Renovate Bot
0496b514ad build: update ajv to version 6.8.1 (#13583) 2019-02-05 21:15:36 -08:00