ryan
02/22/2023, 7:39 PMsknowlton
02/22/2023, 7:48 PMbox.json
and then as part of your build process, you run box install
and it just zaps all the modules and coldbox into place.
We do not do this for a variety of little reasons:
1. You can't make a change to any of your modules (unless you fork it and store it on Forgebox such that you can box install
your custom version - we have very few of these nowadays but it still happens that we need 'some module plus our changes'
2. It adds the dependency of Forgebox to your build process (not a big deal, it's pretty reliable)
3. It adds time to your build process while it installs everything, whether or not anything changed.
So our modules and our coldbox dir are part of our repo. If we had a lot of little apps rather than one or two big ones we might do it differently. We might do it differently anyway down the road. But this works for us.ryan
02/22/2023, 8:01 PMDaniel Mejia
02/22/2023, 8:05 PMsknowlton
02/22/2023, 8:06 PMbox install
will do nesting dependencies in what looks like a weird way but probably makes sense to people who aren't me, e.g. I get multiple copies of the same versions of the same modules, just nested under different module parents.
The way we do it, we can blow away duplicate str
or qb
libraires and just have one of everything we needryan
02/22/2023, 8:07 PMsknowlton
02/22/2023, 8:09 PMbox.json
version and the module's box.json
version aren't exactly alike - even if you have what might, right now, be a good version, if I change my app's box.json, the module still needs the older version and I just broke it because I was making the module use my version and not its own version. This never happens to us in practice so we opt for manually handling the dependencies once a quarter or so when we review all this stuff.ryan
02/22/2023, 8:11 PMsknowlton
02/22/2023, 8:12 PMbox install
. If you're keeping it all in a repo, the only time it happens is when you install a new module from commandboxryan
02/22/2023, 8:12 PMryan
02/22/2023, 8:12 PMryan
02/22/2023, 8:13 PMsknowlton
02/22/2023, 8:15 PMryan
02/22/2023, 8:16 PMryan
02/22/2023, 8:18 PMryan
02/22/2023, 8:20 PMmike42780
02/22/2023, 8:47 PMsknowlton
02/22/2023, 8:54 PMmike42780
02/22/2023, 8:56 PMsknowlton
02/22/2023, 8:57 PMmike42780
02/22/2023, 9:00 PMryan
02/22/2023, 9:01 PMsknowlton
02/22/2023, 9:01 PMryan
02/22/2023, 9:01 PMmike42780
02/22/2023, 9:05 PMsknowlton
02/22/2023, 9:05 PMsknowlton
02/22/2023, 9:05 PMmike42780
02/22/2023, 9:07 PMmike42780
02/22/2023, 9:08 PMmike42780
02/22/2023, 9:08 PMdougcain
02/23/2023, 9:22 AMsknowlton
02/23/2023, 1:45 PM