Alex Eagle
4ae0ee86cb
fix(bazel): update peerDep ranges ( #30155 )
...
PR Close #30155
2019-04-26 12:32:35 -07:00
Keen Yee Liau
1f4c380f58
fix(bazel): Exclude common/upgrade* in metadata.tsconfig.json ( #30133 )
...
It has a dependency on @angular/upgrade which is not part of the
dependencies in package.json, so postinstall would fail.
PR Close #30133
2019-04-26 11:07:34 -07:00
Brandon Roberts
6de4cbdd41
fix(common): add upgrade sub-package to ng_package rule for @angular/common ( #30117 )
...
Follow-up to #30055 to include @angular/common/upgrade in the npm package
Closes #30116
PR Close #30117
2019-04-25 15:01:17 -07:00
Greg Magolan
61365a94ed
fix(bazel): transitive npm deps in ng_module ( #30065 )
...
BREAKING CHANGE:
ng_module now depends on a minimum of build_bazel_rules_nodejs 0.27.12
PR Close #30065
2019-04-25 14:42:02 -07:00
Keen Yee Liau
0b5f480eca
fix(bazel): make name param in ng add optional ( #30074 )
...
PR Close #30074
2019-04-24 10:45:42 -07:00
Keen Yee Liau
2905bf5548
fix(bazel): Make sure only single copy of `@angular/bazel` is installed ( #30072 )
...
When `ng add` is invoked independently of `ng new`, a node installation
of `@angular/bazel` is performed by the CLI before invoking the
schematic. This step appends `@angular/bazel` to the `dependencies`
section of `package.json`. The schematics then appends the same package
to `devDependencies`.
This leads to the warning:
```
warning package.json: "dependencies" has dependency "@angular/bazel" with
range "^8.0.0-beta.13" that collides with a dependency in "devDependencies"
of the same name with version "~8.0.0-beta.12"
```
PR Close #30072
2019-04-24 10:44:42 -07:00
Keen Yee Liau
96a828993f
fix(bazel): restore ng build --prod ( #30005 )
...
`ng build` by default builds the prodapp because there is not
a dev build in Bazel. This PR restores the `--prod` to do the
same to prevent achitect from showing missing config error.
PR Close #30005
2019-04-22 08:47:21 -07:00
Alex Rickabaugh
d9ce8a4ab5
feat(ivy): introduce a flag to control template type-checking for Ivy ( #29698 )
...
Template type-checking is enabled by default in the View Engine compiler.
The feature in Ivy is not quite ready for this yet, so this flag will
temporarily control whether templates are type-checked in ngtsc.
The goal is to remove this flag after rolling out template type-checking in
google3 in Ivy mode, and making sure the feature is as compatible with the
View Engine implementation as possible.
Initially, the default value of the flag will leave checking disabled.
PR Close #29698
2019-04-19 11:15:25 -07:00
Paul Gschwendtner
2ba799ddc7
fix(bazel): do not typecheck core schematic files ( #29876 )
...
Currently for Angular Bazel projects, NGC needs to be run in the
"postinstall" NPM script in order to generate required summary files.
We need to update the postinstall `tsconfig` to not check/re-build the
`@angular/core` schematic code which has transitive dependencies
which are only available inside of a CLI project. As this is not guaranteed
to be the case with Angular Bazel projects, we need to make sure that
we don't check/re-build these files.
PR Close #29876
2019-04-18 18:22:09 -07:00
Keen Yee Liau
0629ebd9e9
build(bazel): Bump CLI and @angular-devkit/* to v8 beta 15 ( #29966 )
...
PR Close #29966
2019-04-18 13:53:33 -07:00
Alex Eagle
b9251fd707
build: Remove cc_binary dependency on brotli ( #29912 )
...
Just use the JavaScript port instead. We don't care about speed since we compress once as a build step.
PR Close #29912
2019-04-17 17:20:16 -07:00
Greg Magolan
8a3a556c0c
build(bazel): fix failure in http_server target due to transitive npm deps ( #29799 )
...
PR Close #29799
2019-04-17 13:02:03 -07:00
Greg Magolan
7edfcf948f
build(bazel): update to nodejs rules 0.27.12 and pin versions in @angular/bazel peer deps and for @bazel/schematics ( #29799 )
...
PR Close #29799
2019-04-17 13:02:03 -07:00
Yun Peng
ca755a6b72
build: Fix label name ( #29777 )
...
Fix the following error with future Bazel version:
```
Invalid label: invalid target name 'internal/npm_package:npm_package.bzl': target names may not contain ':'
```
PR Close #29777
2019-04-16 09:50:19 -07:00
Keen Yee Liau
7a7781e925
refactor(bazel): Remove NodeJsSyncHost ( #29796 )
...
`NodeJsSyncHost` is no longer provided by BuilderContext in
architect v2, and its usage caused subtle path resolution issues
in Windows.
This PR cleans up `@angular/bazel` builder to use all native path
and fs methods.
PR Close #29796
2019-04-15 10:52:03 -07:00
Keen Yee Liau
bd2ce9cd56
fix(bazel): Install packages after `ng add` when invoked independently ( #29852 )
...
PR Closes https://github.com/angular/angular/issues/29573
PR Close #29852
2019-04-15 10:50:49 -07:00
Keen Yee Liau
cc2e4b639b
fix(bazel): docs formatting ( #29817 )
...
PR Close #29817
2019-04-11 08:21:38 -07:00
Filipe Silva
ef85336719
build: update to TypeScript 3.4 ( #29372 )
...
PR Close #29372
2019-04-10 12:12:16 -07:00
Greg Magolan
db62ccf9eb
build(bazel): pin versions of nodejs rules in @angular/bazel peer deps and @bazel/schematics ( #29800 )
...
PR Close #29800
2019-04-09 19:33:18 -07:00
Alan Agius
902a53a4f6
feat(bazel): update the build to use the new architect api ( #29720 )
...
With this change the builder has been updated to use the latest architect API and make it compatable with the latest CLI
Fixes https://github.com/angular/angular-cli/issues/14082
PR Close #29720
2019-04-08 09:47:34 -07:00
Rado Kirov
f8cdda63d4
refactor: uniformly access all index sigs with index access. ( #29390 )
...
Follow-up to https://github.com/angular/angular/pull/28937
A build-time check to enforce this is part of tsetse -
https://tsetse.info/property-renaming-safe but I don't know how to turn
it on for this repositories bazel builds.
PR Close #29390
2019-04-05 09:34:26 -07:00
Greg Magolan
9c056b974a
build(bazel): tslib.js still required in ts_devserver & ts_web_test_suite for schematics ( #29694 )
...
PR Close #29694
2019-04-04 14:27:05 -07:00
Greg Magolan
c0ec8425c2
build(bazel): remove unnecessary scripts from ts_devserver & ts_web_test_suite in bazel schematics ( #29694 )
...
PR Close #29694
2019-04-04 14:27:05 -07:00
Greg Magolan
2e66ddfdce
fix(bazel): add configuration_env_vars = ["compile"] to generated @npm//@angular/bazel/bin:ngc-wrapped nodejs_binary ( #29694 )
...
PR Close #29694
2019-04-04 14:27:04 -07:00
Greg Magolan
7fbe138b1f
build(bazel): update to nodejs rules 0.27.10 ( #29694 )
...
PR Close #29694
2019-04-04 14:27:04 -07:00
Keen Yee Liau
2bd9214435
fix(bazel): remove karma-jasmine from ts_web_test_suite ( #29695 )
...
It's not needed.
PR Close #29695
2019-04-04 14:26:11 -07:00
Alan
9810c6c0f9
fix(bazel): support running ng-add on minimal applications ( #29681 )
...
Minimal applications don't have `test` and `e2e` targets but we are not currently checking if they exists.
Fixes #29680
PR Close #29681
2019-04-03 15:30:46 -07:00
Alex Eagle
b14537a004
fix(bazel): use //:tsconfig.json as the default for ng_module ( #29670 )
...
This matches the behavior of ts_library
PR Close #29670
2019-04-02 15:57:11 -07:00
Greg Magolan
7c1f73ac7b
build(bazel): update to nodejs rules 0.27.9 ( #29647 )
...
PR Close #29647
2019-04-02 10:27:14 -07:00
Alex Eagle
aaa8a3a957
build: update bazel to 0.24 ( #29530 )
...
PR Close #29530
2019-03-27 13:45:29 -07:00
Keen Yee Liau
401b8eedd5
fix(bazel): Update schematics to support routing ( #29548 )
...
PR closes https://github.com/angular/angular/issues/29035
PR Close #29548
2019-03-27 12:35:52 -07:00
Greg Magolan
d9162a872d
build(bazel): update to nodejs rules 0.27.8 ( #29508 )
...
* fixes prodmode issue in integration/bazel
BREAKING CHANGE:
@bazel/typescript is now a peerDependency of @angular/bazel so user's of @angular/bazel must add @bazel/typescript to their package.json
PR Close #29508
2019-03-27 09:41:11 -07:00
Marc Laval
c412374854
fix(ivy): DebugNode.query should query nodes in the logical tree ( #29480 )
...
PR Close #29480
2019-03-26 12:48:37 -07:00
Alex Eagle
769d960db1
fix(bazel): workaround problem reading summary files from node_modules ( #29459 )
...
PR Close #29459
2019-03-22 13:17:00 -07:00
Alex Eagle
21be0fb926
fix(bazel): allow ng_module users to set createExternalSymbolFactoryReexports ( #29459 )
...
PR Close #29459
2019-03-22 13:17:00 -07:00
Keen Yee Liau
d6d081e120
feat(bazel): Upgrade rules_nodejs and rules_sass ( #29388 )
...
PR Close #29388
2019-03-20 13:42:03 -04:00
Greg Magolan
b460b26308
build(bazel): update to nodejs rules 0.27.7 ( #29375 )
...
PR Close #29375
2019-03-19 23:39:37 -04:00
Greg Magolan
ea0e832e5f
build(bazel): update to nodejs rules 0.27.6 ( #29375 )
...
PR Close #29375
2019-03-19 23:39:36 -04:00
Alex Eagle
9d090cb3db
fix(bazel): correct regexp test for self-references in metadata ( #29346 )
...
Add a test that catches the mistake, should have had this in the previous change
PR Close #29346
2019-03-18 07:17:19 -07:00
Keen Yee Liau
8ef690c342
fix(bazel): Support new e2e project layout ( #29318 )
...
https://github.com/angular/angular-cli/pull/13780 changes the project
layout for the e2e application. It is no longer a separate project
and the e2e directory is now located alongside the existing project.
This commit updates Bazel scheamtics to support both old and new project
layout.
PR Close #29318
2019-03-15 00:16:01 -04:00
Alex Eagle
3facdebd07
fix(bazel): don't produce self-references in metadata ( #29317 )
...
Fixes #29315
PR Close #29317
2019-03-15 00:15:41 -04:00
Keen Yee Liau
1db8bf312e
fix(bazel): Remove @angular/upgrade from dev dependencies ( #29319 )
...
@angular/upgrade is unnecessary, but it's required by router/upgrade.
PR Close #29319
2019-03-15 00:15:17 -04:00
Matias Niemelä
fc8048ddaf
build: update to nodejs rules 0.27 ( #29210 )
...
PR Close #29210
2019-03-14 19:35:00 -07:00
Matias Niemelä
b2aadffbbc
revert: build: update to nodejs rules 0.27 ( #29210 )
...
This reverts commit 08231f0bfa
.
2019-03-14 17:38:35 -07:00
Alex Eagle
410ccacf38
build: disable tsc_wrapped workers ( #29197 )
...
Angular devs are hitting a bug with typings forcing them to run "bazel shutdown"
PR Close #29197
2019-03-14 13:11:36 -04:00
Greg Magolan
4990b935b4
fix(bazel): turn off pure call tree shaking for ng_package ( #29210 )
...
PR Close #29210
2019-03-14 11:38:12 -04:00
Greg Magolan
08231f0bfa
build: update to nodejs rules 0.27 ( #29210 )
...
PR Close #29210
2019-03-14 11:38:12 -04:00
Greg Magolan
7b20cec986
build(bazel): fix tsconfig extends for //packages/bazel/test/protractor-2:ts_spec ( #29280 )
...
PR Close #29280
2019-03-13 10:39:21 -07:00
Igor Minar
75748d6044
feat: add support for TypeScript 3.3 (and drop older versions) ( #29004 )
...
https://blogs.msdn.microsoft.com/typescript/2019/01/31/announcing-typescript-3-3/
BREAKING CHANGE: TypeScript 3.1 and 3.2 are no longer supported.
Please update your TypeScript version to 3.3
PR Close #29004
2019-03-13 10:38:37 -07:00
Greg Magolan
9a7f5601fa
fix(bazel): fix strict null checks compile error in packages/bazel/src/schematics/ng-add/index.ts ( #29282 )
...
PR Close #29282
2019-03-13 10:38:13 -07:00