Jeremy Elbourn
34e355a3b0
build(bazel): ng_package rxjs/operators rollup config ( #22744 )
...
PR Close #22744
2018-03-13 12:12:11 -07:00
Alex Eagle
40315bef3d
fix(compiler-cli): enableResourceInlining handles both styles and styleUrls ( #22688 )
...
When both are present, the inlined styles are appended to the end of the styles
PR Close #22688
2018-03-11 22:14:32 -07:00
Alex Eagle
123efba388
fix(compiler-cli): resolve resource URLs before loading them under enableResourceInlining ( #22688 )
...
Also turn on the feature for Bazel ng_module rules
PR Close #22688
2018-03-11 22:14:31 -07:00
Alex Eagle
1e6cc42a01
test: migrate remaining public-api tests to Bazel ( #22639 )
...
We now create npm packages to cover all the public api assertions in tools/public_api_guard.
We no longer depend on ts-api-guardian from npm - it is now stale since the repository was archived.
There is no longer a gulp task to enforce or accept the public API, this is in CircleCI as part of running all bazel test targets.
PR Close #22639
2018-03-09 09:11:40 -08:00
Alex Eagle
ce649f725f
build: add a ng_package rule for @angular/router ( #22628 )
...
PR Close #22628
2018-03-07 10:56:27 -08:00
Alex Eagle
fcb8c492d6
build: add an npm_package rule for @angular/bazel ( #22628 )
...
PR Close #22628
2018-03-07 10:56:27 -08:00
Alex Eagle
4c40812b71
fix(bazel): fixes for ng_package on Windows ( #22597 )
...
PR Close #22597
2018-03-06 07:52:48 -08:00
Alex Eagle
ba8df8a3f1
build: update to latest bazel rules ( #22558 )
...
PR Close #22558
2018-03-02 13:27:25 -08:00
Rado Kirov
ab790f3c84
build: Add support for bazelOptions.maxCacheSizeMb in ngc-wrapped. ( #22511 )
...
PR Close #22511
2018-03-01 08:41:10 -08:00
Alex Eagle
aabe16c08c
fix(bazel): ng_package includes transitive .d.ts and flatModuleMetadata ( #22499 )
...
Fixes #22419
PR Close #22499
2018-02-28 13:29:56 -08:00
Alex Eagle
b6c941053e
feat(bazel): ng_package adds package.json props ( #22499 )
...
We now add the 'main', 'module', 'es2015', and 'typings' properties,
pointing to where the packaging tool lays them out.
Fixes #22416
PR Close #22499
2018-02-28 13:29:56 -08:00
Alex Eagle
b43b164a61
feat(bazel): add an ng_package rule ( #22221 )
...
This produces a directory following the Angular Package layout spec.
Includes integration test coverage by making a minimal ng_package in integration/bazel.
Unit tests verify the content of the @angular/core and @angular/common packages.
This doesn't totally match our current output, but is good enough to unblock some
early adopters.
It re-uses logic from the rollup_bundle rule in rules_nodejs. It should also
eventually have the .pack and .publish secondary targets like npm_package rule.
PR Close #22221
2018-02-23 11:19:04 -08:00
Martin Probst
ca06af40f4
build: allow passing node options to ngc. ( #22245 )
...
PR Close #22245
2018-02-22 10:20:04 -08:00
Oussama Ben Brahim
f1a063298e
feat(core): set preserveWhitespaces to false by default ( #22046 )
...
Fixes #22027
PR Close #22046
2018-02-16 09:06:14 -08:00
Alex Eagle
029dbf0e18
feat(bazel): ng_module produces bundle index ( #22176 )
...
It creates the bundle index .d.ts and .metadata.json files.
The names are based on the ng_module target.
PR Close #22176
2018-02-15 14:08:53 -08:00
Alex Eagle
a069e08354
refactor(bazel): convert most ts_library to ng_module ( #22176 )
...
This is necessary so we can produce ng metadata for our packages that are published as libraries
PR Close #22176
2018-02-15 14:08:53 -08:00
Chuck Jazdzewski
b333919722
build(bazel): allow ng_modules to elide .ngsummary.closure.js files ( #22107 )
...
PR Close #22107
2018-02-12 15:57:17 -08:00
Misko Hevery
92d7060cb0
Revert "build(bazel): allow ng_modules to elide .ngsummary.closure.js files ( #22107 )"
...
This reverts commit 263a2eca88b77ee92f10e2d6d1d5d5f8df5f2ede.
2018-02-09 20:08:41 -08:00
Alex Eagle
7e9b120452
build: update to latest bazel rules ( #22127 )
...
PR Close #22127
2018-02-09 17:21:54 -08:00
Chuck Jazdzewski
263a2eca88
build(bazel): allow ng_modules to elide .ngsummary.closure.js files ( #22107 )
...
PR Close #22107
2018-02-09 16:07:49 -08:00
Alex Eagle
dcf64a0d01
fix(bazel): improve error message for missing assets ( #22096 )
...
fixes #22095
PR Close #22096
2018-02-08 10:01:27 -08:00
Alex Eagle
16e5b866d2
test(ivy): also track the size of the compressed hello world bundle ( #22056 )
...
PR Close #22056
2018-02-07 16:10:00 -08:00
Chuck Jazdzewski
e442881ead
feat(bazel): allow explicit specification of factories ( #22003 )
...
The `ng_module` rule now has a factories attribute that
allows explicit specification of which files are expected
to generate factories. This allows avoiding generating
empty factory files (such as `.ngfactory.js`) begin
generated which might cause down-stream tools issues if
they have a limit on the number of files that can be
processed in a single bazel action.
PR Close #22003
2018-02-07 12:09:21 -08:00
Alex Eagle
370ab66c4f
build(ivy): create hello world rollup ( #22004 )
...
This is a customization of the rollup_bundle rule from rules_nodejs
which adds the build-optimizer as a plugin.
Add a functional test with fast round-trip that asserts the minified app
still works.
Publish the min.js artifact on circleCI so we can track its size.
PR Close #22004
2018-02-06 08:25:22 -08:00
Alex Eagle
a1cc02f0bd
build: update to latest bazel rules ( #21821 )
...
PR Close #21821
2018-01-27 10:55:44 -08:00
Alex Eagle
95fbb7d675
build: Update to latest rules_typescript. ( #21675 )
...
Fixes #21481
PR Close #21675
2018-01-22 15:32:59 -08:00
Alex Eagle
1104d17252
refactor(bazel): pass around tsconfig as a file, not a path ( #21614 )
...
this unlocks the ability to replay ts compilations with different settings
PR Close #21614
2018-01-19 11:53:59 -08:00
Alex Eagle
a1492a73ce
build: Remove angular_src nested workspace ( #21096 )
...
PR Close #21096
2018-01-19 10:17:37 -08:00
Chuck Jazdzewski
cffa0fe734
feat(bazel): allow ng_module rules to control whether type checking is enabled ( #21460 )
...
Defaults to true which is different than `ngc` which defaults to false.
PR Close #21460
2018-01-12 12:02:48 -08:00
Alex Eagle
9728dce048
fix(bazel): Give correct module names for ES6 output ( #21320 )
...
Fixes #21022
PR Close #21320
2018-01-09 10:30:44 -08:00
Alex Eagle
463e2872a6
build: upgrade Bazel to 0.9.0 ( #21335 )
...
Also install the skylark linter for .bzl files.
PR Close #21335
2018-01-09 10:28:46 -08:00
Alex Eagle
f05937db4d
fix(bazel): don't equate moduleName with fileName ( #20895 )
...
Fixes broken material build.
/cc @jelbourn
PR Close #20895
2017-12-11 11:16:49 -08:00
Alex Eagle
ef534c0cc1
build: upgrade bazel rules to latest ( #20768 )
...
Add enough BUILD files to make it possible to
`bazel build packages/core/test`
Also re-format BUILD.bazel files with Buildifier.
Add a CI lint check that they stay formatted.
PR Close #20768
2017-12-07 11:27:50 -08:00
Victor Berchet
6911a250ef
build: set preserveWhitespaces to false by default on Bazel ( #20783 )
...
`preserveWhitespaces: false` will be the default in Angular 6+
You can opt-out at component or element level.
Docs: https://angular.io/api/core/Component#preserveWhitespaces
PR Close #20783
2017-12-04 16:16:01 -08:00
Alex Eagle
6e83204238
fix(bazel): produce named AMD modules for codegen ( #20547 )
...
fixes #19422
Signed-off-by: Alex Eagle <alexeagle@google.com>
PR Close #20547
2017-11-27 13:44:41 -06:00
Alex Eagle
a9f3e2bd95
build: Upgrade to TypeScript 2.5 ( #20175 )
...
- update to TypeScript 2.5
- point the 2.4 typings test at the previous typescript version, so we
don't break it accidentally
- widen the peerDeps from Angular packages that depend on TypeScript
- update to latest TypeScript 2.5 compatible Bazel rules
- move .bazelrc to tools/bazel.rc per https://docs.bazel.build/versions/master/best-practices.html#bazelrc
PR Close #20175
2017-11-15 18:12:16 -06:00
Alex Eagle
5da96c75a2
fix(bazel): don't console.error from the compile helper ( #19879 )
...
This lets other callers of compile() choose different formatting for the diagnostics
PR Close #19879
2017-10-23 16:56:57 -04:00
Alex Eagle
56774dfb79
fix(compiler-cli): diagnostics file paths relative to cwd, not tsconfig ( #19748 )
...
PR Close #19748
2017-10-18 11:18:17 -07:00
Tobias Bosch
ad130d62d8
fix(compiler): add first bazel test for ng_module ( #19703 )
...
We were missing quite a bit of test coverage,
this is the start of recreating it.
PR Close #19703
2017-10-17 15:18:31 -07:00
Vikram Subramanian
405ccc7195
fix(bazel): fix the output directory for extractor to be genfiles/ instead of bin/ ( #19716 )
...
PR Close #19716
2017-10-13 17:31:10 -07:00
Vikram Subramanian
836c889baa
fix(compiler): prepare for future Bazel semantics of += ( #19717 )
...
This is a local mod that was already applied in G3.
PR Close #19717
2017-10-13 16:29:46 -07:00
Tobias Bosch
653a211743
Revert "Revert "Revert "perf(compiler): skip type check and emit in bazel in some cases. ( #19646 )"""
...
This reverts commit 6b7cead0c526e2ca87b0e90b084da6bb8ae5ac1e.
2017-10-12 16:09:49 -07:00
Chuck Jazdzewski
6b7cead0c5
Revert "Revert "perf(compiler): skip type check and emit in bazel in some cases. ( #19646 )""
...
This reverts commit 94a925a1b029a5f5e3f342583decb55c7a8fe47f.
2017-10-12 10:32:21 -07:00
Chuck Jazdzewski
94a925a1b0
Revert "perf(compiler): skip type check and emit in bazel in some cases. ( #19646 )"
...
This reverts commit a22121d65dbc08ca624c94cde67413f4e1d036f1.
2017-10-12 10:26:53 -07:00
Tobias Bosch
a22121d65d
perf(compiler): skip type check and emit in bazel in some cases. ( #19646 )
...
If no user files changed:
- only type check the changed generated files
Never emit non changed generated files
- we still calculate them, but don’t send them through
TypeScript to emit them but cache the written files instead.
PR Close #19646
2017-10-11 15:54:02 -07:00
Tobias Bosch
81167d9c4a
perf(compiler): speed up loading of summaries for bazel. ( #19581 )
...
For hazel, we have a specific way of writing summaries,
which we can leverage to make the deserialization faster.
PR Close #19581
2017-10-06 14:48:02 -07:00
Tobias Bosch
0b06ea177a
perf(compiler): only type check input files when using bazel ( #19581 )
...
This helps hazel as it does not check libraries (e.g. the default lib) which are
not input files, but still checks `.d.ts` files that are inputs.
PR Close #19581
2017-10-06 14:48:02 -07:00
Tobias Bosch
1058b2a778
fix(compiler): always emit summaries for jit with ng_module bazel rule.
2017-10-03 09:57:12 -07:00
Tobias Bosch
b0868915ae
perf(compiler): don’t emit summaries for jit by default
...
This re-adds the flag `enableSummariesForJit` to the compiler options
that already existed in Angular 4.
2017-10-02 08:24:50 -07:00
Tobias Bosch
627f04883a
fix(compiler): implement i18n with new compiler
...
This commit is from vikerman@
closes #19429
2017-09-27 10:10:49 -07:00