question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove Gulp as a dependency

See original GitHub issue

I’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 builds
  • postcss & postcss-cli: this means faster CSS builds, and the ability to completely abstract away PostCSS configuration
  • imagemin & 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:open
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
chrisdmacraecommented, Feb 27, 2018

@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.

1reaction
ncphillipscommented, Feb 27, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found