- The file structure as well as the build scripts are taken over from Bootstrap so the update process is straightforward
- Do not modify contents of the bootstrap folder with exception of updating the source files to new version
- Havit.Bootstrap overrides are done in scss folder
- NodeJS resp. NPM or YARN are needed to compile the CSS
- Havit.Bootstrap has its own .editorconfig with different settings than HAVIT standards to comply with Bootstrap stylelint settings
- Download new sources from https://getbootstrap.com/docs/5.0/getting-started/download/
- Replace content of folder bootstrap with downloaded source files
- Compare package.json and postcss.config.json with new sources and update dependencies and build scripts accordingly
- Make sure that the build process is working by running the build script
There are several build scripts that take care of compiling, vendor prefixning and minifiing the Bootstrap CSS with HAVIT overrides.
- Run yarn command to install the dependencies
- Build script css takes care of CSS compiliation, vendor prefixing and minification and runs only once
- Build script watch acts as file-watcher and runs compilation scripts after saving changes and
- Build script publish-to-blazor moves files from dist folder to Havit.Blazor.Components.Web.Bootstrap/wwwroot