255 Commits

Author SHA1 Message Date
Keen Yee Liau
d3e1149bdf build: add missing transitive deps for typescript (#12881)
add `strict_checks = False` for building inside Google.
2018-11-06 20:40:03 -08:00
Keen Yee Liau
db78228fc4 build: add external block for tsconfig in test targets (#12879) 2018-11-06 11:12:21 -08:00
Filipe Silva
0909943259 test(@angular-devkit/build-angular): test karma on watch mode 2018-11-01 10:31:50 -07:00
Filipe Silva
e4c0151241 test(@angular-devkit/build-angular): remove unneeded flag from test 2018-11-01 10:31:50 -07:00
Filipe Silva
cd0b01a2f9 feat(@angular-devkit/build-angular): stop karma gracefully
Followup to https://github.com/karma-runner/karma/pull/3153
2018-11-01 10:31:50 -07:00
Alan Agius
eddad5698a fix(@angular-devkit/schematics-cli): dryRun is not set by default when using a local collection
Fixes #12815
2018-11-01 08:33:24 -07:00
Filipe Silva
db784ec1f4 fix(@angular-devkit/build-optimizer): update typescript to 3.1.5
Fix #12773
2018-11-01 07:49:11 -07:00
cexbrayat
8bc8eca027 docs: remove UglifyJS mention
Now that https://github.com/angular/angular-cli/pull/11996 landed, the CLI uses Terser instead of UglifyJS.
2018-10-31 21:06:25 -07:00
Alan Agius
33781e1c19 docs: update descriptions for builders 2018-10-31 21:04:55 -07:00
Alan Agius
6e0b60df32 fix(@angular/cli): errors and warnings are hard to read in windows cmd (#12767)
* fix(@angular-devkit/core): errors and warnings are hard to read in windows cmd

Closes #12755

* fix(@angular/cli): errors and warnings are hard to read in windows cmd

Closes #12755
2018-10-31 21:03:03 -07:00
Teamop
ef6d76e4a9 fix(@angular-devkit/build-angular): improve bundle size value displaying 2018-10-31 21:00:08 -07:00
Keen Yee Liau
a3b05a0283 build: Use fine-grained node_module deps
This commit updates the BUILD files to specify fine-grained node_module deps
by replacing "@typings" comments with actual @npm node module.

Moved tools/bazel.rc -> .bazelrc

Removed "jasmine" typings from base tsconfig.json

Added @bazel/karma to devDependencies, needed for `ts_web_test`
2018-10-31 20:56:27 -07:00
Alan Agius
b38a13dc02 fix(@angular-devkit/schematics): upgrade refactoring with tslint emits too much whitespace
Fixes #12653
2018-10-31 14:57:53 -07:00
Charles Lyding
2c6c398e6c refactor(@angular-devkit/core): allow promises for registry URI handlers 2018-10-31 14:53:56 -07:00
Charles Lyding
9ae9757048 feat(@angular-devkit/build-angular): update webpack dependencies
Webpack@4.22.0
2018-10-23 12:08:31 -07:00
Charles Lyding
9f114aee1e refactor(@angular-devkit/build-angular): cleanup/fix linting of webpack configs 2018-10-23 12:07:09 -07:00
Jeffrey Bosch
d3395bed76 fix(@angular-devkit/build-angular): update license-webpack-plugin
Closes #12649
2018-10-23 12:01:25 -07:00
Alan Agius
22dc791d96 fix(@angular-devkit/build-angular): error when using protocol-relative url
Fixes #12648
2018-10-23 11:58:29 -07:00
Alan Agius
0b4f3c10e8 fix(@angular-devkit/schematics-cli): inconsistency in referencing collection
Fixes #12600
2018-10-23 11:57:22 -07:00
Alan Agius
abf99b5b5e fix(@angular-devkit/build-optimizer): add tslib replacement at top of file
Fixes #12568
2018-10-23 11:52:34 -07:00
Andrey Sitnik
e897b39afc feat(@angular-devkit/build-angular): update Autoprefixer and PostCSS
Closes #9861 and Closes #9829
2018-10-23 11:50:09 -07:00
Alan Agius
f61ea6b69f fix(@ngtools/webpack): report a warning when lazy route discovery is disabled
At the moment this will cause a runtime error instead. With this change a warning will be shown during the build.

Closes #12238 and Closes #12025
2018-10-23 11:47:55 -07:00
Alan Agius
9d69367e97 fix(@angular-devkit/build-angular): update copy-webpack-plugin dependency
This fixes the issue that newly added files are not copied on serve

Fixes #9669
2018-10-23 11:47:15 -07:00
Alan Agius
bb01cce06a feat(@angular-devkit/schematics-cli): add support for camelCase arguments
At the moment, only kebab case args works, and this might be misleading if you come from the Angular CLI. As for instance `--dryRun` will have no effect.

Fixes #12599
2018-10-23 10:23:17 -07:00
Alan Agius
7f0a7ce5df feat(@angular-devkit/build-angular): expose buildWebpackConfig method in KarmaBuilder
Closes #12447
2018-10-23 10:16:12 -07:00
Alan Agius
edb84b340f fix(@ngtools/webpack): emit lazy routes errors on rebuilds (#12418)
* fix(@ngtools/webpack): emit lazy routes errors on rebuilds

At the moment lazy route errors are only emitted in the initial builds because in following builds we are only processed lazy routes that are declared in the changed files.

At the moment, we cannot cache the previously resolved routes as there is no way to track in which file the lazy route was declared so that we can bust the lazy route if it was removed.

Closes #12236

* test: add test for compilation errors in watch mode

Closes #12311
2018-10-23 10:15:35 -07:00
Filipe Silva
a6ffa2b9ab fix(@angular-devkit/build-angular): update copy-webpack-plugin 2018-10-19 14:57:04 -07:00
Hsuan Lee
387d64c317 fix(@angular-devkit/build-webpack): skip transition property optimization
jakubpawlowicz/clean-css#1050 to be fixed before removing this option.

Fix #12408
2018-10-18 07:17:40 -07:00
Alan Agius
8b400f2f74 docs: improve command option descriptions 2018-10-18 07:10:59 -07:00
Alan Agius
915994da69 fix(@angular-devkit/build-optimizer): update to typescript 3.1.3
This fixes issues related to Microsoft/TypeScript#27341
2018-10-16 11:29:19 -07:00
Alan Agius
df172bdc8a fix(@ngtools/webpack): output consistent filename
At the moment when having namedChunks file names are different between JIT and AOT builds .

AOT will will output something like
```
customers-customers-module-ngfactory.9b8b989df2e32e5cadac.js
```
while JIT will output

```
customers-customers-module.js
```

This PR aligns the output file name
2018-10-15 14:32:47 -07:00
clydin
1747845dfa fix(@angular-devkit/core): make JSON schema required work with prompts (#12548) 2018-10-10 13:50:36 -07:00
Filipe Silva
431df79a1b fix(@angular-devkit/build-angular): dont serve files on cwd (#12547) 2018-10-10 12:12:08 -07:00
Filipe Silva
916a616762 fix(@angular-devkit/build-angular): fix extractLicenses default (#12546)
It should be false so that it doesn't affect dev builds. The default production config has it set to true already.

Partially address #12432.
2018-10-10 12:11:46 -07:00
Alan Agius
150dd4755b fix(@schematics/angular): codeCoverage exclude is not being migrated (#12511)
Fixes #10936
2018-10-10 12:09:32 -07:00
Filipe Silva
023a67254e fix(@angular-devkit/build-angular): don't override missing options in protractor (#12507)
Fix #10697
2018-10-10 12:09:02 -07:00
clydin
2bdf99bad3 test: cleanup poll CLI E2E test (#12497)
* test: cleanup poll CLI E2E test

* test(@angular-devkit/build-angular): adjust poll test
2018-10-10 12:07:13 -07:00
Charles Lyding
9ef66e2a3d test(@angular-devkit/build-angular): disable flaky poll test 2018-10-05 15:01:46 -07:00
Charles Lyding
9297eb5bf1 fix(@angular-devkit/core): record host should stat backing host 2018-10-05 15:01:46 -07:00
Hans
4493d885da docs: start rewriting docs 2018-10-05 12:02:45 -07:00
Filipe Silva
5adebf9d06 fix(@angular-devkit/build-angular): workaround karma issue
See https://github.com/karma-runner/karma/issues/3154
2018-10-04 13:33:24 -07:00
Filipe Silva
ea89f758ce test(@angular-devkit/build-angular): add test for type checker replacements 2018-10-04 13:33:24 -07:00
Filipe Silva
61871d37bb feat(@angular-devkit/build-angular): pass logger to ngtools/webpack 2018-10-04 13:33:24 -07:00
Charles Lyding
d9f73d76da fix(@angular-devkit/build-angular): only process index HTML if option is used 2018-10-04 13:32:30 -07:00
Charles Lyding
3bf2bb0774 refactor(@angular-devkit/build-angular): remove unused html webpack plugins 2018-10-04 13:32:30 -07:00
Alan Agius
0cfd5737ac fix(@angular-devkit/build-angular): resolve assets in styles relative to importee
Closes #12430
2018-10-03 17:34:19 -07:00
Alan Agius
3d9f858c31 style: remove unused locals and imports
Closes #12435
2018-10-03 16:33:54 -07:00
Alan Agius
5f8230cca1 fix(@angular-devkit/build-angular): ng test without reporters no longer print error
Closes #12455
2018-10-03 16:32:36 -07:00
Hans
c13cbd467a refactor(@angular-devkit/core): add cache to normalize
And a benchmark to show the curve, more or less.
2018-10-03 16:31:27 -07:00
Filipe Silva
61ce0ce6d5 fix(@angular-devkit/build-angular): don't rerun tests on unchanged compilation
Fix #11880
2018-10-01 08:50:16 -07:00