gymondo-pattern-lab
v1.2.0
Published
The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
Downloads
66
Maintainers
Readme
Gymondo Pattern Lab (PL)
The Gulp wrapper around Pattern Lab Node Core providing tasks to interact with the core library and move supporting frontend assets.
Known Bugs In Official PL (Node edition)
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.
Installing
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.
Important Note: writing (S)CSS code
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).
List all of the available commands
To list all available commands type:
gulp patternlab:help
Generate Pattern Lab
To generate the front-end for Pattern Lab type:
gulp patternlab:build
Watch for changes and re-generate Pattern Lab
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.