forked from bazel-contrib/rules_nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWORKSPACE
More file actions
54 lines (40 loc) · 1.59 KB
/
WORKSPACE
File metadata and controls
54 lines (40 loc) · 1.59 KB
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
workspace(
name = "from_source",
managed_directories = {"@npm": ["node_modules"]},
)
# In your code, you'd fetch this repository with a `git_repository` call.
# We do this local repository only because this example lives in the same
# repository with the rules_nodejs code and we want to test them together.
local_repository(
name = "build_bazel_rules_nodejs",
path = "../../",
)
# This is hard for users to grab hold of, as long as rules_typescript is a
# nested workspace within rules_nodejs. Until we've fixed that, you can
# replace this local_repository call with this code to fetch it
# https://github.com/bazelbuild/rules_nodejs/blob/2.2.2/package.bzl#L123-L134
local_repository(
name = "build_bazel_rules_typescript",
path = "../../third_party/github.com/bazelbuild/rules_typescript",
)
load("@build_bazel_rules_nodejs//:package.bzl", "rules_nodejs_dev_dependencies")
rules_nodejs_dev_dependencies()
load("@build_bazel_rules_typescript//:package.bzl", "rules_typescript_dev_dependencies")
rules_typescript_dev_dependencies()
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains()
load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories")
stardoc_repositories()
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
node_repositories(
node_version = "12.13.0",
package_json = ["//:package.json"],
yarn_version = "1.19.1",
)
yarn_install(
name = "npm",
package_json = "//:package.json",
strict_visibility = True,
yarn_lock = "//:yarn.lock",
)