angular-cn/packages/bazel/src/schematics
Suguru Inatomi b05baa59e0 fix(bazel): Add /bazel-out to .gitignore (#27874)
PR Close #27874
2019-01-10 13:40:28 -08:00
..
bazel-workspace build(bazel): List explicit dependencies in WORKSPACE (#28000) 2019-01-09 11:49:08 -08:00
ng-new fix(bazel): Add /bazel-out to .gitignore (#27874) 2019-01-10 13:40:28 -08:00
BUILD.bazel feat(bazel): ng-new schematics with Bazel (#27277) 2018-12-03 14:38:23 -08:00
README.md feat(bazel): Bazel workspace schematics (#26971) 2018-11-16 12:18:06 -08:00
collection.json feat(bazel): ng-new schematics with Bazel (#27277) 2018-12-03 14:38:23 -08:00

README.md

Schematics for Bazel

Development notes

To test any local changes, run

bazel build //packages/bazel:npm_package

then cd to the npm package in the dist folder and run yarn link. Next run yarn link again in the directory where the ng command is invoked. Make sure the ng command is local, and not the global installation.

Generate .d.ts file from JSON schema

The script to generate .d.ts file is located in the Angular CLI repo. Make sure the CLI repository is checked out on your local machine.

Then, in the CLI repository, run the following command

bazel run //tools:quicktype_runner -- \
  ~/Documents/GitHub/angular/packages/bazel/src/schematics/ng-new/schema.json \
  ~/Documents/GitHub/angular/packages/bazel/src/schematics/ng-new/schema.d.ts

TODOs

  1. Make the ts_json_schema rule re-usable and portable.
  2. Add comments in BUILD files. See discussion here.