Remove Gulp as a dependency
See original GitHub issueI’m proposing we remove Gulp as a dependency, based on the following thought process:
Gulp should only be used for running highly specific tasks (e.g, I wanna find files that match this pattern and create new files or apply very creative transformations on them that entail multiple steps). Gulp is overkill for general asset pipelines.
In this scenario, the raw processors can likely do the job just as well (if not better), plus using them directly will:
- Eliminate abstractions (like
gulp-postcss
) - Allow us to more quickly update dependencies (like
webpack@4.0
) - Not use gulp’s crappy watch functionality
I’ll create a branch called remove-gulp
, wherein I will remove gulp, leaving:
webpack@4.0
&webpack-cli
: this means faster, leaner, smaller buildspostcss
&postcss-cli
: this means faster CSS builds, and the ability to completely abstract away PostCSS configurationimagemin
&imagemin-cli
: we don’t need no gulp.svgo
: we don’t need no gulp.
Is there any defaults to webpack
, postcss
, or imagemin
that they’d like to share. Calling all static site power rangers. @budparr @ncphillips @scottgallant @jamespohalloran
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Uninstalling packages and dependencies - npm Docs
To remove a package from your node_modules directory, on the command line, use the uninstall command. Include the scope if the package is...
Read more >Uninstalling Gulp globally (but not locally) - Stack Overflow
To remove a local package and remove it from the package.json devDependencies property ... Using the below command will look for the gulp...
Read more >Remove Gulp as a dependency · Issue #989 - GitHub
To remove Gulp, we'd need to: Create node scripts for each Gulp task, and ensure feature parity.
Read more >npm Uninstall – How to Remove a Package - freeCodeCamp
To remove a dev dependency, you need to attach the -D or --save-dev flag to the npm uninstall, and then specify the name...
Read more >gulp-remove-code | Yarn - Package Manager
gulp -remove-code. JavaScript Style Guide npm version Build status Dependency Status. A Gulp plugin to remove sections of code from files based on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@budparr My thought is to expose the PostCSS config both ways, in Webpack and as its own pipeline, so that you can use either workflow.
My reasoning is that a lot of static site devs aren’t JS gurus, and are more used to gulp/sass approach. Being forced to require your CSS, and having no control over the output files can be very frustrating.
When Webpack@4.x releases the first party support for CSS as a valid entry point, I’ll probably remove PostCSS CLI.
Thanks @chrisdmacrae really looking forward to seeing how this turns out. @zivbk1 may be interested in contributing as well. I will be busy over the next few days, but I will keep an eye on the discussion and code pushes.