Pattern Lab Node Core
This is the core API and orchestrator of the Pattern Lab ecosystem.
Pattern Lab Node can be used different ways. Editions are example pairings of Pattern Lab code and do not always have an upgrade path or simple means to run as a dependency within a larger project. Users wishing to be most current and have the greatest flexibility are encouraged to consume
patternlab-node directly. Users wanting to learn more about Pattern Lab and have a tailored default experience are encouraged to start with an Edition. Both methods still expect to interact with other elements of the Pattern Lab Ecosystem.
As of Pattern Lab Node 3.X,
patternlab-node can run standalone, without the need for task runners like gulp or grunt.
npm install @pattern-lab/core
See Usage for more information.
For users wanting a more pre-packaged experience several editions are available.
Pattern Lab/Node: Vanilla Edition contains info how to get started within a pure node environment.
Pattern Lab/Node: Gulp Edition contains info how to get started within a Gulp task running environment.
Core, and Editions, are part of the Pattern Lab Ecosystem. With this architecture, we encourage people to write and maintain their own Editions, Starterkits, and even PatternEngines.
@pattern-lab/core can be required within any Node environment, taking in a configuration file at instantiation.
const config = ;const patternlab = config;// build, optionally watching or choosing incremental buildspatternlab;// or build, watch, and then self-hostpatternlab;
Read more about configuration via
A full-featured command line interface is also available.
Many events are emitted during Pattern Lab operations, originally built to support plugins. Below is a sample, allowing users to be informed of asset or pattern changes.
Development Installation / Workflow
If you are interested in contributing to Pattern Lab, please do take some time to learn how we develop locally within the contribution guidelines.
If you find yourself here and are looking to upgrade, check out how to upgrade from version to version of Pattern Lab Node here: https://github.com/pattern-lab/patternlab-node/wiki/Upgrading
View the latest releases for comprehensive changelogs.
If you'd like to contribute to Pattern Lab Node, please do so! There is always a lot of ground to cover and something for your wheelhouse.
Please read the contribution guidelines.
- @bmuenzenmeyer - Lead Maintainer
- @geoffp - Core Contributor
- @raphaelokon - CLI Contributor
- @tburny - Core Contributor
The Pattern Lab Node team uses our gitter.im channel, pattern-lab/node to keep in sync, share updates, and talk shop. Please stop by to say hello or as a first place to turn if stuck. Other channels in the Pattern Lab organization can be found on gitter too.
Ask or answer Pattern Lab questions on Stack Overflow: http://stackoverflow.com/questions/tagged/patternlab.io