Skip to content

Latest commit

 

History

History
127 lines (93 loc) · 10.9 KB

File metadata and controls

127 lines (93 loc) · 10.9 KB

Angular

//angular:providers.bzl

Angular Providers

AngularCompilerInfo

AngularCompilerInfo(bin, cjs_deps, js_deps, ts_deps, js_compiler, resource_compiler, tsc_bin)

Angular compiler

FIELDS

Name Description
bin Executable
cjs_deps CommonJS deps
js_deps JS deps
ts_deps TS deps
js_compiler Executable
resource_compiler Resource compiler
tsc_bin TypeScript compiler

resource_path

resource_path(path)

PARAMETERS

Name Description Default Value
path

-

none

//angular:rules.bzl

angular_compiler

angular_compiler(name, bin, js_compiler, lib, resource_compiler, tsc_bin)

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
bin - Label required
js_compiler - Label required
lib - List of labels required
resource_compiler - Label optional //angular/resource-compiler:bin
tsc_bin - Label required

angular_library

angular_library(name, compiler, config, config_dep, declaration_prefix, deps, extra_deps, js_prefix,
                jsx, resources, root, src_prefix, srcs, strip_prefix)

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
compiler Angular compiler. Label required
config - String optional ""
config_dep Tsconfig. Label optional None
declaration_prefix Prepend path to TypeScript declarations. String optional ""
deps Dependencies. List of labels optional []
extra_deps Extra dependencies. Dictionary: String -> String optional {}
js_prefix Prepend path to JavaScript. String optional ""
jsx How JSX is emitted: react (default) or preserve String optional "react"
resources Style and template files. List of labels optional []
root CommonJS root Label required
src_prefix Prepend path to TypeScript sources and Angular resources. String optional ""
srcs TypeScript sources. List of labels required
strip_prefix Root directory (relative to runfile) String optional ""

configure_angular_compiler

configure_angular_compiler(name, core, compiler_cli, ts, tslib, reflect_metadata, visibility)

PARAMETERS

Name Description Default Value
name

-

none
core

-

none
compiler_cli

-

none
ts

-

none
tslib

-

none
reflect_metadata

-

none
visibility

-

None