12 Commits

Author SHA1 Message Date
Paul Gschwendtner
0e1cceed50 build: add option to disable ts-api-guardian default angular tag rules ()
Since the API guardian can be also used by other projects, we should not set up the default Angular project tag rules unless specified explicitly through a given command option (`useAngularTagRules`)

PR Close 
2018-10-30 13:45:58 -04:00
Greg Magolan
15c2467dbd build: review comments addressed ()
PR Close 
2018-10-19 20:59:29 -07:00
Alan Agius
aac08e0438 build: pass stripExportPattern as an array of RegExp ()
This is a workaround for https://github.com/bazelbuild/rules_nodejs/issues/317

PR Close 
2018-09-27 12:07:03 -07:00
Alan Agius
21e566d9bc build: use nodejs public api ()
`nodejs_binary` and `nodejs_test` from `@build_bazel_rules_nodejs//:defs.bzl` and `@build_bazel_rules_nodejs//internal/node:node.bzl` are different as the first one uses a macro https://github.com/bazelbuild/rules_nodejs/blob/master/internal/node/node.bzl#L229 to wrap the `nodejs_binary` and `nodejs_test` as an `.exe` for Windows.

PR Close 
2018-09-17 12:52:39 -07:00
Alan Agius
2a21ca09d2 feat(bazel): add additional parameters to ts_api_guardian_test def ()
Added `strip_export_pattern` and `allow_module_identifiers` so that these can be passed from downstream

PR Close 
2018-09-07 14:24:31 -07:00
Alan Agius
ddc13352e9 fix(bazel): specify the package and lock files using the workspace ()
PR Close 
2018-09-07 14:24:31 -07: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
Alex Eagle
a3f1e2cb42 style: format .bzl files with buildifier ()
PR Close 
2018-08-08 13:12:07 -07:00
Greg Magolan
1e74ea9e60 build(bazel): update to rule_nodejs 0.10.0 ()
PR Close 
2018-07-06 10:17:36 -07:00
Pete Bacon Darwin
ac316be79b build: remove unnecessary stability check ()
Previously, it was necessary to attach on of the three "stability"
jsdoc tags (`@stable`, `@deprecated` or `@experimental`) to each
public API export.

To ensure that the public API was correctly tagged, the `ts-api-guardian`
would check that one of these tags appeared on every public export.

Now the doc-gen is able to compute that a code item is stable if
it does not contain the `@experimental` nor `@deprecated` tags.

Therefore there is no need to provide the `@stable` tag any more; and
this tag has now been marked as deprecated - i.e. it should not be used.

The ts-api-guardian has been modified in this commit so that it no longer
warns/fails if the `@stable` is missing.

PR Close 
2018-04-05 10:03:39 -07:00
Alex Eagle
34981063ec build: ts-api-guardian reuses root node_modules ()
This avoids the need to run bazel run :install instead of yarn install.
We merge the devDependencies of ts-api-guardian into the root package.json file.

PR Close 
2018-03-22 19:23:33 -04:00
Alex Eagle
4f60968704 test(bazel): Build and test ts-api-guardian locally ()
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 
2018-03-02 15:00:00 -08:00