Skip to content

Commit

Permalink
build: add missing npm_package_archive targets
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Apr 27, 2020
1 parent 8f72222 commit c83a90f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/angular/cli/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

licenses(["notice"]) # MIT

load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@npm_bazel_typescript//:index.bzl", "ts_library")
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm")
load("//tools:ts_json_schema.bzl", "ts_json_schema")

package(default_visibility = ["//visibility:public"])
Expand Down Expand Up @@ -250,3 +252,18 @@ jasmine_node_test(
name = "angular-cli_test",
srcs = [":angular-cli_test_lib"],
)

pkg_npm(
name = "npm_package",
deps = [
":angular-cli",
],
)

pkg_tar(
name = "npm_package_archive",
srcs = [":npm_package"],
extension = "tar.gz",
strip_prefix = "./npm_package",
tags = ["manual"],
)
17 changes: 17 additions & 0 deletions packages/schematics/angular/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

licenses(["notice"]) # MIT

load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
load("@npm_bazel_typescript//:index.bzl", "ts_library")
load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm")
load("//tools:ts_json_schema.bzl", "ts_json_schema")

package(default_visibility = ["//visibility:public"])
Expand Down Expand Up @@ -118,3 +120,18 @@ jasmine_node_test(
"@npm//source-map",
],
)

pkg_npm(
name = "npm_package",
deps = [
":angular",
],
)

pkg_tar(
name = "npm_package_archive",
srcs = [":npm_package"],
extension = "tar.gz",
strip_prefix = "./npm_package",
tags = ["manual"],
)
17 changes: 17 additions & 0 deletions packages/schematics/update/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

licenses(["notice"]) # MIT

load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
load("@npm_bazel_typescript//:index.bzl", "ts_library")
load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm")
load("//tools:ts_json_schema.bzl", "ts_json_schema")

package(default_visibility = ["//visibility:public"])
Expand Down Expand Up @@ -92,3 +94,18 @@ jasmine_node_test(
"@npm//source-map",
],
)

pkg_npm(
name = "npm_package",
deps = [
":update",
],
)

pkg_tar(
name = "npm_package_archive",
srcs = [":npm_package"],
extension = "tar.gz",
strip_prefix = "./npm_package",
tags = ["manual"],
)

0 comments on commit c83a90f

Please sign in to comment.