-
Notifications
You must be signed in to change notification settings - Fork 1
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
Passing config to tasks #1
Comments
Hello @Dmitry-N-Medvedev , as I explained in this post on my blog this is something that is still missing out of the box. I am figuring out a way to do it which should be simple to use and flexible. One my current ideas is to modify the initialization function to support a structured object with options as an argument. E.G. var gulp = require('gulp');
var cozy = require('gulp-cozy');
cozy(gulp, {
"build-css" : {"files": [
"./node_modules/bootstrap/dist/css/bootstrap.css",
"./node_modules/some_other_lib/some_other_style.css",
]}
}); The Of course you can add more key/value pairs, one for every "factory function module" that you have in your This might work, but I am not entirely convinced that this is the best option. Ideally I would be able also to use the Any thoughts on this would be really appreciated. Thanks |
@Dmitry-N-Medvedev, I am currently working on a more flexible version (that should be tagged as v1.0.0). They way the module will be used will change a bit. I am going to document all the process. In the meantime if you want already to have a look at how the implementation might look like you may give Branch v1.0.0 a shot 😉 |
Hi, I have a similar project gulp-chef that do config things (for gulp 4.0). Maybe we can work together to make better solutions? |
Hey @amobiz, nice to meet you and thanks for you comment. As you can see from my previous comment, I am currently working on a new version that should make things a little bit more flexible, but I am quite sure we can borrow concepts from each other and maybe come up with a single unified solution. I'll let you know in the upcoming days. Any comment/critique/suggestion is absolutely welcome! 😉 |
Sure! Thank you for reply. I'm very excited. |
Hi,
what is the recommended way to pass settings to a gulp task?
The text was updated successfully, but these errors were encountered: