Downstream projects can now require grunt and gulp tasks, no need to copy them anymore.#244
Downstream projects can now require grunt and gulp tasks, no need to copy them anymore.#244tbouron wants to merge 3 commits intopattern-lab:masterfrom
Conversation
…copy them anymore.
|
If people are going to Additionally, it may be advantageous to break this up into core and extras; it'd be great to get just the pattern lab related tasks. |
|
@EvanLovely I Agree. What about prefix the tasks by To break even more, I propose to replace the
The WDYT? |
|
Love it all! 👍🏼🍻😀 |
|
Cool, I'll do the changes. |
|
So because of how
Any preference? Also, do you want me to squash the commits once I'm finished? I didn't find information about within the |
…hrough npm directly
|
@EvanLovely @bmuenzenmeyer Done! I also updated the PR's description with |
|
wow @tbouron thanks so much for all of this. I've been silent the past few days and am busy the remainder of the week - but generally love the proposed improvements to the grunt/gulp harness. 👍 to the direct nodeunit usage - I hadnt thought through that! Also thank you for updating the README I need to review this more thoroughly, but for starters can you please:
|
|
@bmuenzenmeyer You're welcome, To answer to you points:
|
This is a follow up of #221.
One thing important to notice: as patternlab can now be entirely
required, bothgulpandgrunt(dev) dependencies need to pulled.Here is how a downstream project can use patternlab:
npm install patternlab-node --save-devconfig.jsonfile:cp node_modules/patternlab-node/config.json patternlab-config.jsonHere is an example that uses patternlab files for the styleguide but my project's patterns, data, image, etc:{ "paths" : { "source" : { "root": "./source/", "patterns" : "./source/_patterns/", "data" : "./source/_data/", "styleguide" : "./node_modules/patternlab-node/core/styleguide/", "patternlabFiles" : "./node_modules/patternlab-node/source/_patternlab-files/", "js" : "./source/js", "images" : "./source/images", "fonts" : "./source/fonts", "css" : "./source/css/" }, "public" : { "root" : "./public/", "patterns" : "./public/patterns/", "data" : "./public/data/", "styleguide" : "./public/styleguide/", "js" : "./public/js", "images" : "./public/images", "fonts" : "./public/fonts", "css" : "./public/css" } }, ... }gulpfile.js:grunt, here is the content of theGruntfile.js: