forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
50 lines (44 loc) · 995 Bytes
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright Google Inc. All Rights Reserved.
#
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file at https://angular.dev/license
load("//tools:defaults.bzl", "npm_package", "ts_project")
licenses(["notice"])
RUNTIME_ASSETS = glob(
include = [
"src/*.js",
"src/*.mjs",
],
) + [
"package.json",
]
ts_project(
name = "create",
srcs = glob([
"src/*.ts",
]),
data = RUNTIME_ASSETS,
deps = [
"//:node_modules/@types/node",
"//packages/angular/cli:angular-cli",
],
)
genrule(
name = "license",
srcs = ["//:LICENSE"],
outs = ["LICENSE"],
cmd = "cp $(execpath //:LICENSE) $@",
)
npm_package(
name = "pkg",
pkg_deps = [
"//packages/angular/cli:package.json",
],
tags = ["release-package"],
visibility = ["//visibility:public"],
deps = RUNTIME_ASSETS + [
":README.md",
":create",
":license",
],
)