The Gulp wrapper around Pattern Lab Node Core providing tasks to interact with the core library and move supporting frontend assets.
Currently, there's a bug preventing us from using parameter trees (downstream) in our pattern. Github issues:
- Multiple pattern parameters down a render tree cause issues
- Patterns with Pattern Parameters Cannot Be Overwritten Downstream
Until those bugs are fixed, we cannot use the whole magic of the mustache partial parameters in our pattern code.
npm
is a dependency management and package system which can pull in all of the Gulp Edition's dependencies for you. To accomplish this:
-
download or
git clone
this repository to an install location. -
run the following from within the folder (where the
gulpfile.babel.js
is located):npm install
Running npm install
from a directory containing a package.json
file will download all dependencies defined within.
When you are adding, changing, modifying (or whatsoever) CSS code, keep in mind that you do not put vendor prefixes in the code! This will be handled by the PostCSS process (Gulp).
To list all available commands type:
gulp patternlab:help
To generate the front-end for Pattern Lab type:
gulp patternlab:build
To watch for changes, re-generate the front-end, and server it via a BrowserSync server, type:
gulp patternlab:serve
BrowserSync should open http://localhost:3000 in your browser.