Skip to content

Commit

Permalink
docs: example monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Oct 3, 2022
1 parent e5b130a commit 36a949d
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/nosnap_monorepo/beet-common.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
author: Chad Beeter

# We can't use "data_pack.load" because the "src" path would be
# resolved relative to the "beet-common.yml" file instead of the
# root of each individual subproject. Config options provided
# through "meta" aren't resolved when the config is loaded but by
# plugins directly, which is what we want in this particular case.
pipeline:
- beet.contrib.load

meta:
load:
data_pack: "src"
18 changes: 18 additions & 0 deletions examples/nosnap_monorepo/beet-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
broadcast: "projects/*"
extend: "beet.yml"

# A broadcast config is resolved at the root of each
# individual subproject so we need to go up to output
# all packs in the same location.
output: "../../out"

data_pack:
zipped: true

# Disabling the "meta.autosave.link" option makes it so
# that if we have a "beet link" set up for development
# we won't pollute the "datapacks" directory with the
# release zips.
meta:
autosave:
link: false
2 changes: 2 additions & 0 deletions examples/nosnap_monorepo/beet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
broadcast: "projects/*"
extend: "beet.yml"
3 changes: 3 additions & 0 deletions examples/nosnap_monorepo/projects/bar/beet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version: 1.2.3

extend: "../../beet-common.yml"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
say bar
3 changes: 3 additions & 0 deletions examples/nosnap_monorepo/projects/foo/beet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version: 42.0.1

extend: "../../beet-common.yml"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
say foo

0 comments on commit 36a949d

Please sign in to comment.