bullet-train-co / bullet_train

The Open Source Ruby on Rails SaaS Template
MIT License
1.64k stars 258 forks source link

Refactor `bin/setup` into a series of independent scripts #1568

Closed jagthedrummer closed 3 months ago

jagthedrummer commented 3 months ago

This makes it easier/possible to run just a portion of the setup process.

This PR also moves a few things out of bin/configure and into bin/setup, which fixes: https://github.com/bullet-train-co/bullet_train/issues/1522

And if we see that yarn isn't installed we include a suggestion to run corepack enable after installing yarn, which fixes: https://github.com/bullet-train-co/bullet_train/issues/1503

To test this you can do this:

git clone --single-branch -b jeremy/refactor-bin-setup git@github.com:bullet-train-co/bullet_train.git bin_setup_test
cd bin_setup_test
./bin/configure
./bin/setup