-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWORKSPACE
42 lines (33 loc) · 1.06 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
# Workspace
# RubyBazel Project for demonstrating how ruby_rules work with internal & extnernal gems.
workspace(name = "bazelruby_ruby_monorepo")
load(
"@bazel_tools//tools/build_defs/repo:git.bzl",
"git_repository",
)
git_repository(
name = "bazelruby_ruby_rules",
branch = "develop",
remote = "https://github.com/bazelruby/rules_ruby.git",
)
load(
"@bazelruby_ruby_rules//ruby:deps.bzl",
"ruby_register_toolchains",
"ruby_rules_dependencies",
)
ruby_rules_dependencies()
ruby_register_toolchains()
load("@bazelruby_ruby_rules//ruby:defs.bzl", "bundle_install")
bundle_install(
name = "bundle.hello-world-gem",
gemfile = "//ruby/gems/hello_world:Gemfile",
gemfile_lock = "//ruby/gems/hello_world:Gemfile.lock",
#gemspec = "//ruby/gems/hello_world:hello_world.gemspec",
visibility = ["//visibility:public"],
)
bundle_install(
name = "bundle.hello-world-web",
gemfile = "//ruby/apps/hello-world-web:Gemfile",
gemfile_lock = "//ruby/apps/hello-world-web:Gemfile.lock",
visibility = ["//visibility:public"],
)