forked from formatjs/formatjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
135 lines (110 loc) · 4.85 KB
/
WORKSPACE
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Bazel workspace created by @bazel/create 1.7.0
# Declares that this directory is the root of a Bazel workspace.
# See https://docs.bazel.build/versions/master/build-ref.html#workspace
workspace(
# How this workspace would be referenced with absolute labels from another workspace
name = "formatjs",
# Map the @npm bazel workspace to the node_modules directory.
# This lets Bazel use the same node_modules as other local tooling.
managed_directories = {
"@npm": ["node_modules"],
# "@website_npm": ["website/node_modules"],
},
)
# new_local_repository(
# name="build_bazel_rules_nodejs",
# path = "./third_party/github.com/bazelbuild/rules_nodejs",
# build_file = "//third_party/github.com/bazelbuild/rules_nodejs:BUILD.bazel"
# )
# new_local_repository(
# name = "test262",
# build_file = "BUILD.test262",
# path = "./test262",
# )
# new_local_repository(
# name = "remote-website",
# build_file = "formatjs.github.io.BUILD",
# path = "./formatjs.github.io",
# )
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
# Install the nodejs "bootstrap" package
# This provides the basic tools for running and packaging nodejs programs in Bazel
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "dd4dc46066e2ce034cba0c81aa3e862b27e8e8d95871f567359f7a534cccb666",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.1.0/rules_nodejs-3.1.0.tar.gz"],
)
http_archive(
name = "tzdata",
build_file = "@//:packages/intl-datetimeformat/tzdata.BUILD",
sha256 = "8d813957de363387696f05af8a8889afa282ab5016a764c701a20758d39cbaf3",
urls = ["https://data.iana.org/time-zones/releases/tzdata2020d.tar.gz"],
)
http_archive(
name = "tzcode",
build_file = "@//:packages/intl-datetimeformat/tzcode.BUILD",
sha256 = "6cf050ba28e8053029d3f32d71341d11a794c6b5dd51a77fc769d6dae364fad5",
urls = ["https://data.iana.org/time-zones/releases/tzcode2020d.tar.gz"],
)
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
node_repositories(
node_version = "14.9.0",
package_json = ["//:package.json"],
yarn_version = "1.22.4",
)
# node_repositories(
# node_version = "14.5.0",
# package_json = ["//:package.json"],
# node_repositories = {
# "14.5.0-darwin_amd64": ("node-v14.5.0-darwin-x64.tar.gz", "node-v14.5.0-darwin-x64", "47dfd88abcd4d6d6f7b7516c95645f9760ba9c93d04b51a92895584c945b2953"),
# "14.5.0-linux_amd64": ("node-v14.5.0-linux-x64.tar.xz", "node-v14.5.0-linux-x64", "8b0235c318de87ecf8eec9a39e5c5df80757dbec571addda7123276dfcb34d5b"),
# "14.5.0-windows_amd64": ("node-v14.5.0-win-x64.zip", "node-v14.5.0-win-x64", "ab5728c85ece98210036fc9c38984fa2410a882dd99075b3d5bece58e4cc6ea2"),
# },
# node_urls = ["https://nodejs.org/dist/v{version}/{filename}"],
# )
# The yarn_install rule runs yarn anytime the package.json or yarn.lock file changes.
# It also extracts and installs any Bazel rules distributed in an npm package.
yarn_install(
# Name this npm so that Bazel Label references look like @npm//package
name = "npm",
package_json = "//:package.json",
yarn_lock = "//:yarn.lock",
)
# yarn_install(
# # Name this npm so that Bazel Label references look like @npm//package
# name = "website_npm",
# package_json = "//website:package.json",
# yarn_lock = "//website:yarn.lock",
# )
# Setup skylib
http_archive(
name = "bazel_skylib",
sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
],
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
# multirun is written in Go and hence needs rules_go to be built.
# See https://github.com/bazelbuild/rules_go for the up to date setup instructions.
http_archive(
name = "io_bazel_rules_go",
sha256 = "08c3cd71857d58af3cda759112437d9e63339ac9c6e0042add43f4d94caf632d",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.2/rules_go-v0.24.2.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.24.2/rules_go-v0.24.2.tar.gz",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains()
git_repository(
name = "com_github_atlassian_bazel_tools",
commit = "64cad21247d8039660f90abc02549dd8012ebb5e",
remote = "https://github.com/atlassian/bazel-tools.git",
)
load("@com_github_atlassian_bazel_tools//multirun:deps.bzl", "multirun_dependencies")
multirun_dependencies()