29 Commits

Author SHA1 Message Date
Pete Bacon Darwin
976389836e build: update node type version ()
PR Close 
2018-09-18 13:06:28 -07:00
Greg Magolan
b99d7ed5bf build(bazel): update to rules_typescript 0.17.0 & rules_nodejs 0.13.4 ()
PR Close 
2018-09-18 13:05:38 -07:00
Alex Eagle
22e7f7e99f build(bazel): update to rules_typescript 0.16.1 ()
PR Close 
2018-08-23 15:26:21 -04:00
Greg Magolan
9605456b66 build: refactor ambient node & jasmine types so they are only included where needed ()
PR Close 
2018-08-16 13:46:43 -07:00
Victor Berchet
1f1103913a refactor(ivy): cleanup the public API for core/testing ()
PR Close 
2018-08-15 09:53:17 -07:00
Alex Eagle
328b48b697 test: integration tests now against bazel built packages ()
PR Close 
2018-04-13 16:30:50 -07:00
Alex Eagle
2e270bb96a build: include tslib in umd bundles ()
Fixes 

PR Close 
2018-04-13 00:13:54 -07:00
Alex Eagle
5a298b1c5e fix(common): workaround UMD/webpack limitation ()
Fixes 

PR Close 
2018-04-09 15:16:12 -07:00
Alex Eagle
3e8eef6015 fix(bazel): set rollup output.name and amd.id ()
These are based on the name of the package as declared in the module_name attribute on ng_module

Fixes 

PR Close 
2018-04-09 15:15:44 -07:00
Igor Minar
da58a55ece fix(bazel): don't produce ngfactory files for ng_packages ()
PR Close 
2018-04-06 16:26:31 -07:00
Jeremy Elbourn
ae8a0092bd build(bazel): use ng_package entry_point_name for umd bundles ()
This change also requires updating the package gold test to work with
multiple test packages.

PR Close 
2018-04-05 14:51:31 -07:00
Alex Eagle
46eadb5cfb build: fix common locales in npm package ()
PR Close 
2018-04-04 08:23:07 -07:00
Alan Agius
1678423619 test(bazel): fix test for @angular/common ng_package ()
PR Close 
2018-04-04 08:23:07 -07:00
Alan Agius
7ca772060b fix(common): locales are not being shipped ()
Closes: , 

PR Close 
2018-04-03 10:47:51 -07:00
Alex Eagle
481b22ecb0 fix(bazel): downlevel decorators in fesm5 files ()
Needed so that our bundles appear side-effect-free to tools like webpack

PR Close 
2018-03-29 18:53:49 -07:00
Alex Eagle
45e090b614 fix(bazel): pass --global option to rollup ()
This fixes the UMD bundles which otherwise don't contain the right global symbols

PR Close 
2018-03-29 17:44:43 -07:00
Alex Eagle
0d9140cdce fix(bazel): ng_package should include private exports in fesms ()
PR Close 
2018-03-29 14:11:12 -07:00
Alex Eagle
00497437a6 fix(bazel): don't inline tslib into fesms ()
PR Close 
2018-03-28 10:19:14 -07:00
Jeremy Elbourn
2aabbc51fa fix(bazel): ng_package packages attr not forwarded to npm_package ()
PR Close 
2018-03-26 22:32:09 -04:00
Jeremy Elbourn
d9a0a8ff3e build(bazel): add data attr to ng_package ()
PR Close 
2018-03-23 13:16:07 -04:00
Victor Berchet
32105c8012 test: temporarily disable ng_package test ()
PR Close 
2018-03-22 15:27:28 -04:00
Victor Berchet
4a075e885f test: display a diff when example_apckage.spec.ts fails to ease debugging ()
PR Close 
2018-03-22 15:27:28 -04:00
Alex Eagle
64efcf103c build: add the FESM files back to ng_package ()
PR Close 
2018-03-21 13:19:19 -07:00
Alex Eagle
689f351092 build: expose flatModuleOutFile option on ng_module ()
This lets projects like Material change ng_package "bundle index" files to non-conflicting paths

Currently packages like @angular/core ship with the generated metadata
in a path like 'core.js' which overwrites one of the inputs.

Angular material puts the generated file in a path like 'index.js'

Either way these files generated by ng_module rules have the potential
to collide with inputs given by the user, which results in an error.

Instead, give users the freedom to choose a different non-conflicting name.

Also this refactors the ng_package rule, removing the redundant
secondary_entry_points attribute.

Instead, we assume that any ng_module in the deps with a module_name
attribute is a secondary entry point.

PR Close 
2018-03-20 13:28:57 -07:00
Alex Eagle
f9247e4b2e build: enable importHelpers in tsconfig ()
This is the primary tsconfig file used for Bazel builds.
Previously, we enabled this option only for releases.

PR Close 
2018-03-15 21:16:03 -07:00
Alex Eagle
88b3198c80 feat(bazel): change ng_package rule to APF v6 ()
Angular Package Format v6 stops bundling files in the esm5 and esm2015
directories, now that Webpack 4 can tree-shake per-file.

Adds some missing files like package.json to make packages closer to
what we publish today.

Refactor ng_package to be a type of npm_package and re-use the packaging
action from that rule.

PR Close 
2018-03-15 11:38:31 -07:00
Alex Eagle
aabe16c08c fix(bazel): ng_package includes transitive .d.ts and flatModuleMetadata ()
Fixes 

PR Close 
2018-02-28 13:29:56 -08:00
Alex Eagle
b6c941053e feat(bazel): ng_package adds package.json props ()
We now add the 'main', 'module', 'es2015', and 'typings' properties,
pointing to where the packaging tool lays them out.

Fixes 

PR Close 
2018-02-28 13:29:56 -08:00
Alex Eagle
b43b164a61 feat(bazel): add an ng_package rule ()
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 
2018-02-23 11:19:04 -08:00