3.0.0-beta.0
Pre-releaseThis is the first beta of the 3.0.0 release 🎉
Install with:
npm install -g generator-baumeister@prerelease
We have a few enhancements which might get into the final 3.0.0 release. See micromata/Baumeister#235 for details.
Notable changes
Code Refactoring
- baumeister.json: Rename properties related to vendor files (a594563)
Features
- remove Yarn lockfiles 👋🏻 (b6f1fbf)
- eslint: Simplify setup and include two additional plugins (f039c24)
- Replace Gulp with Webpack (and npm scripts) (c6116ad)
- Upgrade to Bootstrap 4 (c7b4264)
BREAKING CHANGES
-
Gulp and all the tasks are gone. But most of the npm scripts still do what they did before. Here are the main scripts needed for developing and building your project.
Command Description npm start
Builds for development, starts a webserver, watches files for changes, rebuilds incremental and reloads your browser. npm test
Lints your JavaScript files and runs unit test via the Jest CLI. npm run test:watch
Runs unit test with Jests watch option. npm run build
Builds for production to dist
directory.npm run build:check
Starts a static fileserver serving the dist
directory.npm run build:analyze
Starts »Webpack Bundle Analyzer« to visualize size of Webpack output files See package.json scripts section for all available scripts.
-
The polyfills bundle is gone and the references to the bundles in default.hbs respectively the HTML files has changed to:
<!-- Bundled vendor CSS files --> @@vendor.css <!-- Our compiled and merged Sass files --> @@app.css <!-- Vendor JS --> @@vendor.js <!-- Own JS --> @@app.js
-
We switched from using UnCSS to PurifyCSS for remo0ving unused CSS.
Due to the concept of Webpack we only generate one CSS bundle. PurifyCSS is turned off by default.To activate PurifyCSS set the
usePurifyCSS
option in withinbaumeister.json
totrue
.
In addition you can define a PurifyCSSwhitelist
defining an array of selectors that should not be removed. -
eslint: We’v added eslint-plugin-unicorn and eslint-plugin-import which might introduce new linting errors. You might want to turn off rules in
/.eslintrc.json
in case you find them too opinionated. -
baumeister.json: The properties
bundleCSS
andincludeStaticFiles
in baumeister.json are moved tovendor.bundleCSS
andvendor.includeStaticFiles
. You have to adapt these changes in case you have added dependencies via these properties. -
See Bootstrap v4 migration guide to read about the most notable as well as breaking changes.
See all changes since the last release.