Skip to content

Commit a6de13c

Browse files
committed
ci: add BUILD files to all packages
1 parent 6dbfc4d commit a6de13c

File tree

3 files changed

+99
-0
lines changed

3 files changed

+99
-0
lines changed

packages/angular/pwa/BUILD

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright Google Inc. All Rights Reserved.
2+
#
3+
# Use of this source code is governed by an MIT-style license that can be
4+
# found in the LICENSE file at https://angular.io/license
5+
6+
licenses(["notice"]) # MIT
7+
8+
load("//tools:defaults.bzl", "ts_library")
9+
10+
package(default_visibility = ["//visibility:public"])
11+
12+
ts_library(
13+
name = "pwa",
14+
srcs = glob(
15+
["**/*.ts"],
16+
# Currently, this library is used only with the rollup plugin.
17+
# To make it simpler for downstream repositories to compile this, we
18+
# neither provide compile-time deps as an `npm_install` rule, nor do we
19+
# expect the downstream repository to install @types/webpack[-*]
20+
# So we exclude files that depend on webpack typings.
21+
exclude = [
22+
"pwa/files/**/*",
23+
"**/*_spec.ts",
24+
"**/*_spec_large.ts",
25+
],
26+
),
27+
deps = [
28+
"//packages/angular_devkit/core",
29+
"//packages/angular_devkit/schematics",
30+
],
31+
tsconfig = "//:tsconfig.json",
32+
# Borrow the compile-time deps of the typescript compiler
33+
# Just to avoid an extra npm install action.
34+
node_modules = "@build_bazel_rules_typescript_tsc_wrapped_deps//:node_modules",
35+
)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright Google Inc. All Rights Reserved.
2+
#
3+
# Use of this source code is governed by an MIT-style license that can be
4+
# found in the LICENSE file at https://angular.io/license
5+
6+
licenses(["notice"]) # MIT
7+
8+
load("//tools:defaults.bzl", "ts_library")
9+
10+
package(default_visibility = ["//visibility:public"])
11+
12+
ts_library(
13+
name = "architect",
14+
srcs = glob(
15+
["src/**/*.ts"],
16+
# Currently, this library is used only with the rollup plugin.
17+
# To make it simpler for downstream repositories to compile this, we
18+
# neither provide compile-time deps as an `npm_install` rule, nor do we
19+
# expect the downstream repository to install @types/webpack[-*]
20+
# So we exclude files that depend on webpack typings.
21+
exclude = [
22+
"**/*_spec.ts",
23+
"**/*_spec_large.ts",
24+
],
25+
),
26+
deps = [
27+
"//packages/angular_devkit/core",
28+
"//packages/angular_devkit/core:node",
29+
"@rxjs",
30+
"@rxjs//operators",
31+
],
32+
tsconfig = "//:tsconfig.json",
33+
module_name = "@angular-devkit/architect",
34+
module_root = "src",
35+
# Borrow the compile-time deps of the typescript compiler
36+
# Just to avoid an extra npm install action.
37+
node_modules = "@build_bazel_rules_typescript_tsc_wrapped_deps//:node_modules",
38+
)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright Google Inc. All Rights Reserved.
2+
#
3+
# Use of this source code is governed by an MIT-style license that can be
4+
# found in the LICENSE file at https://angular.io/license
5+
package(default_visibility = ["//visibility:public"])
6+
7+
load("//tools:defaults.bzl", "ts_library")
8+
9+
licenses(["notice"]) # MIT
10+
11+
ts_library(
12+
name = "architect-cli",
13+
srcs = [
14+
"bin/architect.ts",
15+
],
16+
deps = [
17+
"//packages/angular_devkit/architect",
18+
"//packages/angular_devkit/core",
19+
"//packages/angular_devkit/core:node",
20+
"@rxjs",
21+
"@rxjs//operators",
22+
],
23+
tsconfig = "//:tsconfig.json",
24+
module_name = "@angular-devkit/architect-cli",
25+
module_root = "bin",
26+
)

0 commit comments

Comments
 (0)