19 Commits

Author SHA1 Message Date
Alex Eagle
532c1cb485 build: update to Bazel 0.26.1 ()
PR Close 
2019-06-11 00:03:11 +00:00
Greg Magolan
ba83d33dd0 build(bazel): update to nodejs rules 0.30.1 & bazel 0.26.0 ()
nodejs rules 0.30.1 has new feature to symlink node_modules with yarn_install and bazel 0.26.0 includes new managed_directories feature which enables this

PR Close 
2019-06-11 00:03:11 +00:00
Keen Yee Liau
0629ebd9e9 build(bazel): Bump CLI and @angular-devkit/* to v8 beta 15 ()
PR Close 
2019-04-18 13:53:33 -07:00
Keen Yee Liau
401b8eedd5 fix(bazel): Update schematics to support routing ()
PR closes https://github.com/angular/angular/issues/29035

PR Close 
2019-03-27 12:35:52 -07:00
Keen Yee Liau
d6d081e120 feat(bazel): Upgrade rules_nodejs and rules_sass ()
PR Close 
2019-03-20 13:42:03 -04:00
Keen Yee Liau
f4f20daee3 refactor(bazel): Remove bazel-workspace schematics ()
`bazel-workspace` schematics is no longer needed now that the Bazel
files are injected into the project by the Bazel builder.

PR Close 
2019-03-07 13:04:09 -08:00
Keen Yee Liau
7060d9038b feat(bazel): Hide Bazel files in Bazel builder ()
This commit modifies the Bazel builder to copy the Bazel WORKSPACE and
BUILD.bazel files to the project root directory before invoking Bazel.

This hides the Bazel files from users.

PR Close 
2019-03-06 17:35:06 -08:00
Alex Eagle
ba602dbaec build: update Bazel to 0.23 ()
PR Close 
2019-03-01 15:24:05 -08:00
Greg Magolan
9fe522f3e2 build: yarn.lock updates ()
PR Close 
2019-02-28 12:06:36 -08:00
Greg Magolan
3cc9ba24c6 build: fix integration/bazel on OSX and update integration yarn.lock files ()
PR Close 
2019-02-21 17:49:17 -08:00
Keen Yee Liau
b9eb662c4a test(bazel): Upgrade CLI dependencies for schematics test ()
This commit makes the integration test for bazel-schematics more robust
by removing package.json.replace. Instead of replacing the file, the
test script now just overrides Angular packages with the local ones.

This commit also fixes running the test locally by providing default
argument for CI_CHROMEDRIVER_VERSION_ARG.

PR Close 
2019-02-20 10:55:29 -08:00
Keen Yee Liau
e5e4e63e71 refactor(bazel): Schematics should fetch angular from distro ()
PR Close 
2019-02-20 09:01:44 -08:00
Greg Magolan
7a6237bc50 build: update lock files ()
PR Close 
2019-02-05 16:55:43 -05:00
Keen Yee Liau
4a92fa9471 refactor(bazel): Create ng-add schematic for Bazel ()
The logic to create additional files needed for Bazel are currently
hosted in `ng new`. Such files include the main.*.ts files needed
for AOT and a different angular.json to use Bazel builder, among others.

This commit refactors the logic into `ng add` so that it can be used to
perform the same modifications in an existing project. Users could do so
by running `ng add @angular/bazel`.

With this change, `ng new` effectively becomes an orchestrator that runs
the original `ng new` followed by `ng add @angular/bazel`.

PR Close 
2019-02-05 14:40:46 -05:00
Keen Yee Liau
36902e2f0e fix(bazel): Bazel builder resolves with require.resolve() ()
This commit fixes a bug in the Bazel builder in which the path to Bazel
executable is constructed using the project path. For non-default
project, the node_modules directory is actually one level above the
project path.

This PR fixes the bug by resolving node_modules with require.resolve().
It requires @bazel/bazel v0.22.1 because previous versions do not have
index.js or main field in package.json and would cause node module
resolution to fail.

This has been tested with both bazel and ibazel.

PR Close 
2019-02-01 13:56:53 -05:00
Keen Yee Liau
2a02f4beb2 test(bazel): Cleanup bazel-schematics integration test ()
PR Close 
2019-01-25 12:47:25 -08:00
Keen Yee Liau
a570fdf0f0 fix(bazel): Fix integration test after v8 bump ()
The integration test for bazel-schematics installs Angular in
two different locations:

1. Bazel workspace
2. package.json -> fetched from npm

Pull request  changes the test to always install (1) from
source. This breaks when there's a major version bump since the
versions locally and the version in package.json no longer match.

This change updates package.json to fetch @angular/* packages
locally as well.

PR Close 
2019-01-16 16:09:58 -08:00
Keen Yee Liau
2afbcafab7 test(bazel): Use local_repository to load Angular ()
The current integration test for Bazel schematics downloads a
published version of Angular as required by the http_archive
rule in the CLI created WORKSPACE.
However, this makes the test less useful because it does not
actually test any changes to the Angular repo at source.
This PR replaces the http_archive method in the WORSPACE
with local_repository so that any local changes to the Angular
repo are tested accordingly.

With Typescript 3.2, the file e2e/src/app.po.ts generated by CLI
no longer compiles under Bazel due to missing type annotations.
A temporary file is placed in the integration/bazel-schematics
directory while the change is pending in CLI repo.
https://github.com/angular/angular-cli/pull/13406

PR Close 
2019-01-11 16:19:59 -08:00
Keen Yee Liau
3680aef801 test(bazel): integration test for ng new with Bazel ()
integration test for bazel build and bazel test

PR Close 
2018-12-14 10:19:22 -08:00