2018-01-09 18:24:00 -05:00
|
|
|
"""Re-export of some bazel rules with repository-wide defaults."""
|
|
|
|
load("@build_bazel_rules_typescript//:defs.bzl", _ts_library = "ts_library")
|
2018-02-13 11:19:33 -05:00
|
|
|
load("//packages/bazel:index.bzl", _ng_module = "ng_module")
|
2018-01-09 18:24:00 -05:00
|
|
|
|
|
|
|
DEFAULT_TSCONFIG = "//packages:tsconfig-build.json"
|
|
|
|
|
|
|
|
def ts_library(tsconfig = None, **kwargs):
|
|
|
|
if not tsconfig:
|
|
|
|
tsconfig = DEFAULT_TSCONFIG
|
|
|
|
_ts_library(tsconfig = tsconfig, **kwargs)
|
|
|
|
|
2018-02-13 11:19:33 -05:00
|
|
|
def ng_module(name, tsconfig = None, **kwargs):
|
2018-01-09 18:24:00 -05:00
|
|
|
if not tsconfig:
|
|
|
|
tsconfig = DEFAULT_TSCONFIG
|
2018-02-13 11:19:33 -05:00
|
|
|
_ng_module(name = name, tsconfig = tsconfig, **kwargs)
|