In spring 2020 Retail Zipline upgraded our UI framework to Bootstrap 4. Along the way, we built a variety of tools to help make the process easier. This is a collection of some of those custom tools.
This code is likely won't work as-is because it's specific to our code at the time, but is meant as an aid and reference.
- bs4_migration_check: status checker for how many views remain
- bs4_start: copies files from one directory to another and commits them. Used to copy from
views
toviews_v2
. - bs4_upgrade: upgrades a file or folder from existing classes to Bootstrap 4 classes. Intended to be run after
bs4_start
ControllerViewV2Paths is a controller concern to enable a particular controller or action to render from another view folder. Specifically, when v2_ready :show
is used, the show
action will render from views_v2
instead of views
. When v2_ready
is in the application controller, then all the new views are used.