-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could toolkit scripts be easier to create? #54
Comments
Regarding sandbox/demo page scripts, I'm wondering if webpack should even be used. It's purpose is to resolve modules and bundle them together...so it seems like adding more entries for individual pages is the wrong solution for simply making those scripts available. What about figuring out some way to use the |
Good point @erikjung. Seems worth considering for sure. |
Yeah, that's probably a better idea. I don't even know if we'd need to do anything. I'm pretty sure as long as the path is |
What about using a custom toolkit setup different from Drizzle, is that possible? With my own browser-sync, watch, sass and webpack gulp tasks? I saw you have a drizzle-builder package, would that be the way to go? Really looking forward to using Drizzle, this looks like the tool we've been searching for for our pattern library! |
@guilambert
Yes, you could in theory use a clone of this repo (or your own starting point) and simply include the We plan to rewrite the builder to be a bit more flexible in general (for example, allowing more template options other than Handlebars). |
@erikjung Thank you! I will give it a try and let you know. |
So basically just have a copy of the content |
Update, added
And I get this stack error when running
Thought the Thank you |
@guilambert
In addition to including that helpers package, you'll also need to pass the helpers along to the The assignment is done in the Drizzle Gulpfile like this: const drizzle = require('drizzle-builder');
const helpers = require('@cloudfour/hbs-helpers');
const config = require('./config');
Object.assign(config.drizzle, { helpers }); (https://github.com/cloudfour/drizzle/blob/master/gulpfile.js#L11-L12) |
Funny I just saw that while looking at the gulpfile just at this very moment 😉 I will take another shot at it, thanks again! |
Great the drizzle builder works now with that place. Now I'm struggling with paths being outputted. My drizzle instance is located in
I tried setting the Thanks! |
@guilambert Could you provide an example repo or a A few things to try:
|
Thanks @erikjung, will test that out and let you know. Appreciate the help, and hopefully I'll be able to give back soon to the project as I have ideas/suggestions for the project 😉 |
Related: cloudfour/core-gulp-tasks#55 |
Currently, creating new toolkit scripts requires you to create a new file, then add a somewhat redundant item to
config.js
:It seems like this could be simplified, at least so that the
toolkit/scripts
directory doesn't need a new entry for every single root JS package. But I might be missing something.The text was updated successfully, but these errors were encountered: