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

Upgrade guidance from 1.0.1 to 1.1 #341

Open
ragesoss opened this issue Feb 24, 2022 · 1 comment
Open

Upgrade guidance from 1.0.1 to 1.1 #341

ragesoss opened this issue Feb 24, 2022 · 1 comment

Comments

@ragesoss
Copy link

My organization just switched to a new theme based on understrap-child, but the project was started from 1.0.1. I'd like to be able to update it to take advantage of some of the improvements in 1.1, but I'm not sure how to go about it.

An upgrade guide, or any sort of guidance, would be really appreciated!

@bacoords
Copy link
Member

Agreed - more migration guides in the docs would be useful. This is a bigger one because you're essentially going from BS4 to BS5 if you go to 1.1, so any custom HTML will need to be modified based on the migration guide.

Here's the basics off the top of my head, but I'll make a note to dig in deeper:

  • Review functions.php, there's a few new functions in there.
  • Remove package.json and package-lock.json
  • Remove the node_modules folder
  • Copy package.json over from the 1.1+ release
  • Make sure your on node v16 and run npm install
  • Check that you have the BS5 sass files in /src/sass/assets/, see if you need to update any variables or custom SCSS and attempt to compile CSS
  • Make sure you have the correct BS5 JS files in /src/js/ and try to compile JS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants