Answer the question
In order to leave comments, you need to log in
Run commands via gulp or npm?
Now, when I need to build a project, I write in the terminal gulp build
when to create a new BEM block — gulp block -n block-name
. But now I've studied several starter templates ( for example ), everything there is launched via npm, which in turn launches a gallp task. For example, npm run build
.
Which approach is correct, how should it be done and why?
Answer the question
In order to leave comments, you need to log in
True and so and so, but there are nuances.
Suppose there is a project, it has a task for building js (using gulp).
You can run it like this - npm run build-js or gulp build-js.
One day, one of the developers redid the js build task (now it is built using webpack).
npm run build-js still works, but gulp build-js will swear that there is no such task, because now you need to run - webpack build-js
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question