Earlier today @_beneverard tweeted about a common problem with managing style guides. He said:
For those who have created extensive pattern libraries, how do you go about using that CSS in a project? Manually copy it across?
I started thinking about how we could encourage this in Pattern Lab. A lot of my recent work on PL has revolved around creating packages for Composer and it seemed like this was a similar problem. After playing around I'm curious if folks would think the following process was an onerous workflow. Let's say we're going to track our styles and grunt/gulp uses public/styles/
as a target directory:
- Delete all files under
public/styles
- Commit the deletion
- Add
public/styles
to.gitignore
- Create a new repo just for your production styles