Skip to content

Commit

Permalink
build: add snapshot build support
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed Apr 8, 2020
1 parent afabe89 commit b406166
Show file tree
Hide file tree
Showing 11 changed files with 361 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/create/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@build_bazel_rules_nodejs//:tools/defaults.bzl", "nodejs_test", "pkg_npm")
load("//third_party/github.com/bazelbuild/bazel-skylib:rules/copy_file.bzl", "copy_file")

Expand Down Expand Up @@ -27,6 +28,15 @@ pkg_npm(
],
)

# This artifact is used for snapshot builds
pkg_tar(
name = "archive",
srcs = [":npm_package"],
extension = "tar.gz",
strip_prefix = "./npm_package",
tags = ["manual"],
)

nodejs_test(
name = "test",
data = [
Expand Down
10 changes: 10 additions & 0 deletions packages/hide-bazel-files/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@build_bazel_rules_nodejs//:tools/defaults.bzl", "pkg_npm")

pkg_npm(
Expand All @@ -22,3 +23,12 @@ pkg_npm(
":package.json",
],
)

# This artifact is used for snapshot builds
pkg_tar(
name = "archive",
srcs = [":npm_package"],
extension = "tar.gz",
strip_prefix = "./npm_package",
tags = ["manual"],
)
10 changes: 10 additions & 0 deletions packages/jasmine/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@build_bazel_rules_nodejs//:tools/defaults.bzl", "pkg_npm")
load("//third_party/github.com/bazelbuild/bazel-skylib:rules/copy_file.bzl", "copy_file")

Expand Down Expand Up @@ -55,3 +56,12 @@ pkg_npm(
"//conditions:default": [":generate_README"],
}),
)

# This artifact is used for snapshot builds
pkg_tar(
name = "archive",
srcs = [":npm_package"],
extension = "tar.gz",
strip_prefix = "./npm_package",
tags = ["manual"],
)
10 changes: 10 additions & 0 deletions packages/karma/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@build_bazel_rules_nodejs//:tools/defaults.bzl", "pkg_npm")
load("//third_party/github.com/bazelbuild/bazel-skylib:rules/copy_file.bzl", "copy_file")

Expand Down Expand Up @@ -56,3 +57,12 @@ pkg_npm(
"//conditions:default": [":generate_README"],
}),
)

# This artifact is used for snapshot builds
pkg_tar(
name = "archive",
srcs = [":npm_package"],
extension = "tar.gz",
strip_prefix = "./npm_package",
tags = ["manual"],
)
10 changes: 10 additions & 0 deletions packages/labs/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@build_bazel_rules_nodejs//:tools/defaults.bzl", "codeowners", "pkg_npm")

codeowners(
Expand All @@ -15,3 +16,12 @@ pkg_npm(
"npm_bazel_labs",
],
)

# This artifact is used for snapshot builds
pkg_tar(
name = "archive",
srcs = [":npm_package"],
extension = "tar.gz",
strip_prefix = "./npm_package",
tags = ["manual"],
)
10 changes: 10 additions & 0 deletions packages/protractor/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@build_bazel_rules_nodejs//:tools/defaults.bzl", "pkg_npm")
load("//third_party/github.com/bazelbuild/bazel-skylib:rules/copy_file.bzl", "copy_file")

Expand Down Expand Up @@ -56,3 +57,12 @@ pkg_npm(
"//conditions:default": [":generate_README"],
}),
)

# This artifact is used for snapshot builds
pkg_tar(
name = "archive",
srcs = [":npm_package"],
extension = "tar.gz",
strip_prefix = "./npm_package",
tags = ["manual"],
)
10 changes: 10 additions & 0 deletions packages/rollup/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@build_bazel_rules_nodejs//:tools/defaults.bzl", "codeowners", "pkg_npm")
load("//third_party/github.com/bazelbuild/bazel-skylib:rules/copy_file.bzl", "copy_file")

Expand Down Expand Up @@ -84,3 +85,12 @@ pkg_npm(
":worker.js",
],
)

# This artifact is used for snapshot builds
pkg_tar(
name = "archive",
srcs = [":npm_package"],
extension = "tar.gz",
strip_prefix = "./npm_package",
tags = ["manual"],
)
10 changes: 10 additions & 0 deletions packages/terser/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@build_bazel_rules_nodejs//:tools/defaults.bzl", "pkg_npm")
load("//third_party/github.com/bazelbuild/bazel-skylib:rules/copy_file.bzl", "copy_file")

Expand Down Expand Up @@ -58,3 +59,12 @@ pkg_npm(
"//conditions:default": [":generate_README"],
}),
)

# This artifact is used for snapshot builds
pkg_tar(
name = "archive",
srcs = [":npm_package"],
extension = "tar.gz",
strip_prefix = "./npm_package",
tags = ["manual"],
)
10 changes: 10 additions & 0 deletions packages/typescript/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@build_bazel_rules_nodejs//:tools/defaults.bzl", "pkg_npm")
load("//third_party/github.com/bazelbuild/bazel-skylib:rules/copy_file.bzl", "copy_file")
load(":replacements.bzl", "TYPESCRIPT_REPLACEMENTS")
Expand Down Expand Up @@ -63,3 +64,12 @@ pkg_npm(
"//conditions:default": [":generate_README"],
}),
)

# This artifact is used for snapshot builds
pkg_tar(
name = "archive",
srcs = [":npm_package"],
extension = "tar.gz",
strip_prefix = "./npm_package",
tags = ["manual"],
)
10 changes: 10 additions & 0 deletions packages/worker/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@build_bazel_rules_nodejs//:tools/defaults.bzl", "pkg_npm")
load("//third_party/github.com/bazelbuild/bazel-skylib:rules/copy_file.bzl", "copy_file")

Expand Down Expand Up @@ -73,3 +74,12 @@ pkg_npm(
":npm_version_check",
],
)

# This artifact is used for snapshot builds
pkg_tar(
name = "archive",
srcs = [":npm_package"],
extension = "tar.gz",
strip_prefix = "./npm_package",
tags = ["manual"],
)
Loading

0 comments on commit b406166

Please sign in to comment.