5 ms·
Ask HN: Is anyone still using Gulp?
To me it's something that made most sense out of all build tools, I can easily see the entire pipeline step by step.
So I'm not sure why it seems to me like nobody is using it. I've been using it for years now it works just as good as back then.
So for example take js files
.pipe(transpile).pipe(bundle_split).pipe(sourcemaps).pipe(minify).pipe(hmr).pipe(versioning)...... etc
for css
.pipe(scss_converter).pipe(sourcemaps).pipe(minifier).pipe(hmr).pipe(version)... etc
i've been able to switch different stuff in and out thanks to community always wrapping newer tools as plugin.
like webpack as bundler, typescript/babel transpilers, auto prefixers, etc.
to me this step by step clear build pipeline makes more sense then hardcoded configs.
but gulp seems to be disappearing??
- gitgud 6y agoThe advantage of gulp was a unified plugin interface, composability and cross platform compatibility. Webpack has filled the gap, with it's unified plugin interface and is arguably much simpler and constrained than gulp. Cross-platform is also becoming less important as all popular OS's have implemented native unix shells. Also, one of the main benefit's of gulp is running different build commands, which is only appropriate for a small portion of projects anyway...
- lifeplusplus 6y agomy experience with webpack has been if you want to do exactly what it was designed to do, it's great, but if you want different setup it's best used as just as a bundler instead of as entire build pipeline. not that it's not possible, but it's like pulling a tooth.
- gitgud 6y agoYeah that's true, I mean I use gulp for browser extension builds, as there's a few random tasks (img compression, copying files, babel) that need to be done in order to build cross platform. Would be a pain in webpack. My example: https://github.com/benwinding/newsit/blob/master/gulpfile.js https://github.com/benwinding/newsit/blob/master/gulpfile.js
- csomar 6y agoIt's no longer necessary with tools like create-react-app and next-js. Gulp used to make sense before Webpack and React. You needed to process files, build your project, and have a functioning web server (BrowserSync) that refreshes the browser when you make changes. The reality is that nextjs and create-react-app are way superior, have TypeScript and Webpack configurations out of the box, and they have their own build process. No reason to use Gulp anymore.
- sanmak 6y agoFound one: Minwiz: https://github.com/zeplia/minwiz https://github.com/zeplia/minwiz Not promoting this, but its a good Starter kit for lightweight sites which actually works and it's legit. What i feel, solving a problem is much bigger part of a system then using gulp or webpack or likes.
- probinso 6y agowe used to gulp alongside angular at HappyWhale
- shash7 6y agoFor older projects and wordpress based projects I still use gulp. For newer ones, webpack. The reason why gulp is dissapering is because newwer js frameworks like react and vue need webpack to be effective.
- lifeplusplus 6y agoi use webpack with gulp, webpack helps with bundling, hmr, and code splitting.