frankwallis / gulp-hub

Gulp plugin to run tasks in multiple gulpfiles
MIT License
89 stars 24 forks source link

Passing arguments / sharing variable scope #25

Open rayshan opened 9 years ago

rayshan commented 9 years ago

How would we go about passing arguments to all subtasks in different files using this recommended recipe?

https://github.com/gulpjs/gulp/blob/master/docs/recipes/pass-arguments-from-cli.md

Variable scope in main gulpfile.js doesn't seem to be shared. It'll be nice to avoid duplicating code in all subtask files.