mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
7033f39c61
Users should be able to add Bazel workspace to an existing project. The current approach assumes that the schematics is working on the same tree as that of ng-new, which includes the top-level directory. Instead, the schematic should work on the tree rooted at `appRoot` to enable Bazel files to be added to existing project. This change uses the newly implemented ScopedTree https://github.com/angular/angular-cli/commit/a0ac4b0e3dd60c75e1edafd6bb8cced47d10a8d3 to achieve this. NOTE: The version of `@angular-devkit/schematics` that is installed is used to run the `@angular/bazel` schematic. Even if a different version is used in the schematic itself, it has no effect. Therefore, the *latest* Angular CLI should be used to generate the files. As of this commit, the latest version is @angular/cli@7.3.0-rc.0 PR Close #28349
5.5 KiB
5.5 KiB