v0.10.0 - pattern lab - node
bmuenzenmeyer
released this
01 Aug 05:30
·
3951 commits
to master
since this release
Pattern Lab Node v0.10.0
A busy time here again - with an uptick in interest in the project and renewed focus from me. Your humble port maintainer wants to get to v1.0.0 like no-other!
CHANGELOG
- ADD: Added support for pattern parameters! Resolves #88
- FIX: Data inheritance is now working as advertised. Resolves #127. This turned out to be a MAJOR thing, as I realized the home-page was not passing down any of its json data to partials.
- CHG: Refactored a lot of code out of patternlab.js and into separate files. Doing so should make everything dryer, more unit testable, and easier to understand I hope.
- ADD: Added proper styling for the homepage-emergency alert that is displayed for demo purposes
- ADD: Added a new comment organism, the sticky comment, to ship an example of pattern parameters
- CHG: Start some JS linting of the project. I don't quite agree with a lot of it, so am trying to set some smart configurations
- CHG: Wrapped some build messages in the patternlab.config.debug flag
- FIX: Allow users to set a base url path. Resolves #125 (testing in the wild requested)
- THX: Thanks @scottnath for the proposed base url solution and @jkbyln for discussion on the topic too!
UPGRADE INSTRUCTIONS
Normally one could be safe following the upgrade instructions, but this time we've changed some source/_patternlab-files/
directory files too. I have opened an issue to make this process smoother in the future. For now, you should be able to upgrade using the follow process:
- Backup your
source/
directory andconfig.json
- Overwrite all of
builder/
andpublic/
as normal - Refer to this pull request if you need help, but you'll essentially need to:
- Add
"baseurl" : ""
toconfig.json
- Overwrite
source/_patternlab-files/pattern-header-footer/footer.html
- Overwrite
source/_patternlab-files/styleguide.mustache
- Overwrite
source/_patternlab-files/viewall.mustache
- Add
Sorry for the inconvenience. I know this isn't ideal, but it's far from impossible. Perhaps if you don't need pattern parameter support or the base url you may choose to postpone an upgrade.
I put a lot of hours into this one - essentially rewriting the entire engine -hope you like what you see!