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 Jan 15, 2020
1 parent cdc93bd commit 70f3d5b
Show file tree
Hide file tree
Showing 11 changed files with 357 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 All @@ -20,6 +21,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")

# Ugly genrule depending on local linux environment to build the README out of skylark doc generation.
Expand Down Expand Up @@ -46,3 +47,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")

# Ugly genrule depending on local linux environment to build the README out of skylark doc generation.
Expand Down Expand Up @@ -48,3 +49,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", "pkg_npm")

exports_files(["tsconfig.json"])
Expand All @@ -14,3 +15,12 @@ pkg_npm(
"@npm_bazel_labs//webpack:cli_lib",
],
)

# 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")

# Ugly genrule depending on local linux environment to build the README out of skylark doc generation.
Expand Down Expand Up @@ -48,3 +49,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", "pkg_npm")

# Ugly genrule depending on local linux environment to build the README out of skylark doc generation.
Expand Down Expand Up @@ -46,3 +47,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/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")

# Ugly genrule depending on local linux environment to build the README out of skylark doc generation.
Expand Down Expand Up @@ -46,3 +47,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(":replacements.bzl", "TYPESCRIPT_REPLACEMENTS")

Expand Down Expand Up @@ -54,3 +55,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 @@ -63,3 +64,12 @@ pkg_npm(
":copy_worker_proto",
],
)

# 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 70f3d5b

Please sign in to comment.