mirror of
https://github.com/facebook/sapling.git
synced 2024-09-11 18:47:10 +03:00
Reviewed By: zsol Differential Revision: D50490765 fbshipit-source-id: b11d0c956f4e84badf1d67a09e754a2b850aeac7
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
load("@fbcode_macros//build_defs:native_rules.bzl", "buck_genrule")
|
|
load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")
|
|
load("@fbsource//tools/build_defs:glob_defs.bzl", "glob")
|
|
load("@fbsource//xplat/third-party/yarn:yarn_offline_mirror_helper.bzl", "yarn_offline_mirror_path")
|
|
|
|
oncall("scm_client_infra")
|
|
|
|
python_binary(
|
|
name = "build-tar-script",
|
|
main_function = ".build-tar.main",
|
|
main_src = "build-tar.py",
|
|
)
|
|
|
|
buck_genrule(
|
|
name = "isl-tar",
|
|
# While it may be tedious to maintain the list of srcs by hand, it ensures
|
|
# that changes in the addons/ folder that are not part of ISL do not trigger
|
|
# a rebuild.
|
|
srcs = glob(
|
|
[
|
|
"eslint-rules/**",
|
|
"isl/**",
|
|
"isl-server/**",
|
|
"shared/**",
|
|
],
|
|
exclude = [
|
|
"**/node_modules/**",
|
|
"isl/build/**",
|
|
"isl-server/dist/**",
|
|
],
|
|
) + [
|
|
".eslintrc.js",
|
|
".gitignore",
|
|
".prettierrc",
|
|
"package.json",
|
|
"yarn.lock",
|
|
],
|
|
out = "isl-dist.tar.xz",
|
|
cmd = '$(exe :build-tar-script) --yarn "$(exe fbsource//xplat/third-party/yarn:yarn)" --yarn-offline-mirror "{yarn_offline_mirror}" -o "$OUT" --src "$SRCDIR" --tmp "$TMP"'.format(yarn_offline_mirror = yarn_offline_mirror_path()),
|
|
)
|