forked from bazel-contrib/rules_nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
119 lines (111 loc) · 3.97 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Copyright 2017 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@build_bazel_rules_nodejs//:index.bzl", "COMMON_REPLACEMENTS", "pkg_npm")
load("//:tools/defaults.bzl", "codeowners", "pkg_tar")
package(default_visibility = ["//visibility:public"])
exports_files([
".bazelci/presubmit.yml",
".bazelversion",
"common.bazelrc",
"tsconfig.json",
"package.json",
"bootstrap.js",
"LICENSE",
])
exports_files(
[
"providers.bzl",
"index.for_docs.bzl",
],
visibility = ["//docs:__subpackages__"],
)
bzl_library(
name = "bzl",
srcs = [
"index.bzl",
"index.for_docs.bzl",
"providers.bzl",
"version.bzl",
],
visibility = ["//visibility:public"],
deps = [
"//internal/common:bzl",
"//internal/generated_file_test:bzl",
"//internal/js_library:bzl",
"//internal/linker:bzl",
"//internal/pkg_npm:bzl",
"//internal/pkg_web:bzl",
"//internal/providers:bzl",
"//toolchains/node:bzl",
],
)
# BEGIN-INTERNAL
codeowners(
pattern = "*",
teams = [
"@mattem",
"@gregmagolan",
"@soldair",
],
)
pkg_npm(
name = "rules_nodejs_package",
srcs = glob(["*.bzl"]) + [
"BUILD.bazel",
"LICENSE",
],
substitutions = COMMON_REPLACEMENTS,
deps = [
"//internal:package_contents",
"//internal/bazel_integration_test:package_contents",
"//internal/common:package_contents",
"//internal/copy_repository:package_contents",
"//internal/coverage:package_contents",
"//internal/generated_file_test:package_contents",
"//internal/js_library:package_contents",
"//internal/linker:package_contents",
"//internal/node:package_contents",
"//internal/npm_install:package_contents",
"//internal/pkg_npm:package_contents",
"//internal/pkg_web:package_contents",
"//internal/providers:package_contents",
"//internal/runfiles:package_contents",
"//third_party/github.com/bazelbuild/bazel:package_contents",
"//third_party/github.com/bazelbuild/bazel-skylib:package_contents",
"//third_party/github.com/bazelbuild/bazel/tools/bash/runfiles:package_contents",
"//third_party/github.com/buffer-from:package_contents",
"//third_party/github.com/gjtorikian/isBinaryFile:package_contents",
"//third_party/github.com/juanjoDiaz/removeNPMAbsolutePaths:package_contents",
"//third_party/github.com/source-map:package_contents",
"//third_party/github.com/source-map-support:package_contents",
"//third_party/npm/node_modules/@babel/core:package_contents",
"//third_party/npm/node_modules/@babel/plugin-transform-modules-commonjs:package_contents",
"//third_party/npm/node_modules/babelify:package_contents",
"//third_party/npm/node_modules/base64-js:package_contents",
"//third_party/npm/node_modules/browserify:package_contents",
"//third_party/npm/node_modules/ieee754:package_contents",
"//third_party/npm/node_modules/named-amd:package_contents",
"//toolchains/node:package_contents",
],
)
# This artifact is published to GitHub along with each release
pkg_tar(
name = "release",
srcs = [":rules_nodejs_package"],
extension = "tar.gz",
strip_prefix = "./rules_nodejs_package",
tags = ["manual"],
)
# END-INTERNAL