-
Notifications
You must be signed in to change notification settings - Fork 1
/
WORKSPACE
37 lines (30 loc) · 996 Bytes
/
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
workspace(
name = "ccm",
managed_directories = {
"@npm": ["node_modules"],
"@test_cra_npm_deps": ["tests/cra/node_modules"],
"@test_rollup_npm_deps": ["tests/rollup/node_modules"],
},
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "0fa2d443571c9e02fcb7363a74ae591bdcce2dd76af8677a95965edf329d778a",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.6.0/rules_nodejs-3.6.0.tar.gz"],
)
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
node_repositories(
node_version = "16.3.0",
yarn_version = "1.22.10",
)
yarn_install(
name = "npm",
environment = {
# Don't need to have a real token when just pulling
"NPM_TOKEN": "",
},
package_json = "//:package.json",
yarn_lock = "//:yarn.lock",
)
load("//tests:repositories.bzl", "test_repositories")
test_repositories()