This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
forked from aspect-build/rules_esbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
78 lines (51 loc) · 2.12 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
# Declare the local Bazel workspace.
workspace(
# see https://docs.bazel.build/versions/main/skylark/deploying.html#workspace
name = "aspect_rules_esbuild",
)
load(":internal_deps.bzl", "rules_esbuild_internal_deps")
# Fetch deps needed only locally for development
rules_esbuild_internal_deps()
load("//esbuild:dependencies.bzl", "rules_esbuild_dependencies")
# Fetch dependencies which users need as well
rules_esbuild_dependencies()
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
rules_js_dependencies()
load("@aspect_bazel_lib//lib:repositories.bzl", "DEFAULT_YQ_VERSION", "aspect_bazel_lib_dependencies", "register_yq_toolchains")
aspect_bazel_lib_dependencies(override_local_config_platform = True)
register_yq_toolchains(
version = DEFAULT_YQ_VERSION,
)
load("@rules_nodejs//nodejs:repositories.bzl", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "node16",
node_version = "16.9.0",
)
load("//esbuild:repositories.bzl", "esbuild_register_toolchains")
esbuild_register_toolchains(
name = "esbuild14",
esbuild_version = "0.17.10",
)
# Install additional packages to test esbuild plugins
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "esbuild_plugins",
pnpm_lock = "//examples/plugins:pnpm-lock.yaml",
)
load("@esbuild_plugins//:repositories.bzl", _esbuild_plugin_repositories = "npm_repositories")
_esbuild_plugin_repositories()
# For running our own unit tests
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
############################################
# Gazelle, for generating bzl_library targets
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.19.3")
gazelle_dependencies()
# Buildifier
load("@buildifier_prebuilt//:deps.bzl", "buildifier_prebuilt_deps")
buildifier_prebuilt_deps()
load("@buildifier_prebuilt//:defs.bzl", "buildifier_prebuilt_register_toolchains")
buildifier_prebuilt_register_toolchains()