gulp

gulp

DevOps / Build, Test, Deploy / JS Build Tools / JS Task Runners
Needs advice
on
gulpgulp
and
ParcelParcel

Hi, I am at a point when I discovered I need starter templates to kick off my web projects quickly and easily. I want to set-up my template code with the best or rather a packaging tool that is fast in compiling my Sass code and JS. Should I use gulp or Parcel or Webpack.

I need help please, A.S.A.P

READ MORE
5 upvotes189.5K views
Replies (1)
Independent Information Technology and Services Professional at DR. YORAM KORNATZKY LTD
Recommends
on
Parcel
Webpack

Gulp is very old. I would not use it.

It all depends on what framework you are using. They usually come with a bundler. And templates often come with a bundler.

Webpack is the standard Webpack solution. But maybe complicated to use if it does not come with your template or framework. So you may wish to try Parcel first.

READ MORE
5 upvotes6.4K views
Needs advice
on
ESLintESLintSass Lint Sass Lint
and
StylelintStylelint

Scenario: I want to integrate Prettier in our code base which is currently using ESLint (for .js and .scss both). The project is using gulp.

It doesn't feel quite right to me to use ESLint, I wonder if it would be better to use Stylelint or Sass Lint instead.

I completed integrating ESLint + Prettier, Planning to do the same with [ Stylelint || Sasslint || EsLint] + Prettier.

And have gulp 'fix' on file save (Watcher).

Any recommendation is appreciated.

READ MORE
7 upvotes456.7K views
Replies (3)
Senior Frontend Developer at Landbot.io
Recommends
on
ESLint

In the case of .js files I would recommend using both Eslint and Prettier.

You can set up Prettier as an Eslint rule using the following plugin:

https://github.com/prettier/eslint-plugin-prettier

And in order to avoid conflicts between Prettier and Eslint, you can use this config:

https://github.com/prettier/eslint-config-prettier

Which turns off all Eslint rules that are unnecessary or might conflict with Prettier.

READ MORE
6 upvotes1 comment167.1K views
Alex Spieslechner
Alex Spieslechner
August 7th 2020 at 7:05PM

prettier officially discourages the use of eslint-plugin-prettier.

https://prettier.io/docs/en/integrating-with-linters.html

Reply
Software Engineer

you don't actually have to choose between these tools as they have vastly different purposes. i think its more a matter of understanding how to use them.

while eslint and stylelint are used to notify you about code quality issues, to guide you to write better code, prettier automatically handles code formatting (without notifying me). nothing else.

prettier and eslint both officially discourage using the eslint-plugin-prettier way, as these tools actually do very different things. autofixing with linters on watch isnt a great idea either. auto-fixing should only be done intentionally. you're not alone though, as a lot of devs set this up wrong.

i encourage you to think about what problem you're trying to solve and configure accordingly.

for my teams i set it up like this: - eslint, stylelint, prettier locally installed for cli use and ide support - eslint config prettier (code formatting rules are not eslints business, so dont warn me about it) - vscode workspace config: format on save - separate npm scripts for linting, and formatting - precommit hooks (husky)

so you can easily integrate with gulp. its just js after all ;)

READ MORE
5 upvotes154.1K views
View all (3)
CEO at Scrayos UG (haftungsbeschr盲nkt)

gulp is used to package our plugins for the WSC (Woltlab Suite Core) in a fast, convenient and code-driven way. We enjoy the comfort it offers with stuff like the gzip-plugin or tar-packing.

READ MORE
1 upvote14.8K views