Alex Eagle 4f60968704 test(bazel): Build and test ts-api-guardian locally (#22544)
Also use it to test the public API for core and common

Once we have an ng_package for every package, we can remove
the npm dependency on ts-api-guardian and the gulp-based
public api check.

PR Close #22544
2018-03-02 15:00:00 -08:00

21 lines
413 B
Markdown

# Typescript API Guardian
Keeps track of public API surface of a typescript library.
# For developers
Build and test this library:
```sh
$ bazel run //:install
$ bazel test //tools/ts-api-guardian:all
```
Publish to NPM:
```sh
$ npm whoami # should be logged in as angular
$ grep version tools/ts-api-guardian/package.json # advance as needed
$ bazel run //tools/ts-api-guardian:ts-api-guardian.publish
```