Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from bootstrap 4 to bootstrap 5 #258

Closed
morgoth opened this issue May 17, 2021 · 3 comments · Fixed by #260
Closed

Update from bootstrap 4 to bootstrap 5 #258

morgoth opened this issue May 17, 2021 · 3 comments · Fixed by #260
Labels
dependencies Pull requests that update a dependency file

Comments

@morgoth
Copy link
Collaborator

morgoth commented May 17, 2021

The bootstrap 5 i out and this project uses version 4.

BTW what is the motivation to use https://github.com/bensheldon/good_job/blob/main/engine/app/assets/vendor/bootstrap/bootstrap-native.js ? Is it to not use jQuery? In bootstarp 5 there is no jQuery any more so maybe it can be dropped to simplify setup and reduce dependencies?

@bensheldon
Copy link
Owner

Thanks! It looks like Bootstrap 5 should have a fairly simple upgrade path.

Yes, bootstrap-native.js was to avoid adding jquery. Which isn't really a big deal, but was one less thing to add.

FYI, GoodJob's frontend asset dependencies are kind've weird in how they're loaded. I didn't believe I could assume that the end-user using sprocket-based asset pipeline. But unless I'm overlooking something obvious, I don't think it's worth the trouble to make any big changes to how the assets are served.

@bensheldon bensheldon added the dependencies Pull requests that update a dependency file label May 17, 2021
@bensheldon bensheldon changed the title Update bootstrap Update from bootstrap 4 to bootstrap 5 May 17, 2021
@morgoth
Copy link
Collaborator Author

morgoth commented May 17, 2021

It looks like Bootstrap 5 should have a fairly simple upgrade path.

Yes, I actually wanted to do that, but wasn't sure about this bootstrap-native js.

I didn't believe I could assume that the end-user using sprocket-based asset pipeline

Correct. In one of our project we don't have sprockets at all. It's fully managed by webpacker.

I don't think it's worth the trouble to make any big changes to how the assets are served.

Sure, I guess even easier would be to directly link to CDN hosted files, but it's not a big difference.

I'll try to upgrade it tomorrow.

@bensheldon
Copy link
Owner

Sure, I guess even easier would be to directly link to CDN hosted files, but it's not a big difference.

It would be easier, but it's possible someone is using GoodJob in a controlled environment, which is why everything is self-hosted.

I'll try to upgrade it tomorrow.

🤩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants