Skip to content
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

Modularize Gulp file (once Gulp 4 is released?) #162

Open
azasypkin opened this issue May 27, 2016 · 0 comments
Open

Modularize Gulp file (once Gulp 4 is released?) #162

azasypkin opened this issue May 27, 2016 · 0 comments

Comments

@azasypkin
Copy link
Member

azasypkin commented May 27, 2016

Our gulpfile became too big so it would be better to modularize it. On of the approaches is to have something like this:

──root
     │
     ├──tasks
     │    │
     │    └──build.js
     │    │
     │    ├──sw.js
     │    │
     │    └──tests.js
     │    
     └──gulpfile.js
            │
            ├──gulp.task('build', .....)
            │
            ├──gulp.task('test', .....)
            │
            └──gulp.task('default', ....)

We can use gulp-hub or gulp 4 registry API (preferable) [1], [2], [3]. So having that, I think it would be better to wait until Gulp 4 is ready unless it takes too much time for Gulp Team to release it :)

[1] https://github.com/bradcerasani/gulp-4--split-tasks
[2] https://github.com/gulpjs/gulp/blob/4.0/docs/API.md#gulpregistryregistry
[3] https://github.com/gulpjs/undertaker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant