TypeScript compilation
tsc_wrapped_tsconfig
tsc_wrapped_tsconfig(ctx, files, srcs, devmode_manifest, jsx_factory, **kwargs)
Produce a tsconfig.json that sets options required under Bazel.
Attributes
ctx |
|
files |
|
srcs |
|
devmode_manifest |
|
jsx_factory |
|
**kwargs |
|
ts_library_macro
ts_library_macro(tsconfig, **kwargs)
Wraps ts_library
to set the default for the tsconfig
attribute.
This must be a macro so that the string is converted to a label in the context of the
workspace that declares the ts_library
target, rather than the workspace that defines
ts_library
, or the workspace where the build is taking place.
This macro is re-exported as ts_library
in the public API.
Attributes
tsconfig |
the label pointing to a tsconfig.json file |
**kwargs |
remaining args to pass to the ts_library rule |
ts_library
ts_library(name, deps, srcs, compiler, internal_testing_type_check_dependencies, node_modules, supports_workers, tsconfig, tsickle_typed)
ts_library
type-checks and compiles a set of TypeScript sources to JavaScript.
It produces declarations files (.d.ts
) which are used for compiling downstream
TypeScript targets and JavaScript for the browser and Closure compiler.
Attributes
name |
A unique name for this rule. |
deps |
|
srcs |
The TypeScript source files to compile. |
compiler |
Sets a different TypeScript compiler binary to use for this library.
For example, we use the vanilla TypeScript tsc.js for bootstrapping,
and Angular compilations can replace this with
|
internal_testing_type_check_dependencies |
Testing only, whether to type check inputs that aren't srcs. |
node_modules |
The npm packages which should be available during the compile.
|
supports_workers |
Intended for internal use only. Allows you to disable the Bazel Worker strategy for this library. Typically used together with the "compiler" setting when using a non-worker aware compiler binary. |
tsconfig |
A tsconfig.json file containing settings for TypeScript compilation.
Note that some properties in the tsconfig are governed by Bazel and will be
overridden, such as
|
tsickle_typed |
|