mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
22 lines
529 B
Python
22 lines
529 B
Python
"""Helper macros for compiling typescript with consistent config"""
|
|
|
|
load("//tools:defaults2.bzl", _ts_project = "ts_project")
|
|
|
|
def ts_library(name, **kwargs):
|
|
_ts_project(
|
|
name = name,
|
|
tsconfig = "//devtools:tsconfig_build",
|
|
**kwargs
|
|
)
|
|
|
|
def ts_test_library(name, deps = [], **kwargs):
|
|
_ts_project(
|
|
name = name,
|
|
tsconfig = "//devtools:tsconfig_test",
|
|
testonly = 1,
|
|
deps = deps + [
|
|
"//:node_modules/@types/jasmine",
|
|
],
|
|
**kwargs
|
|
)
|