Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

short issue: gulpfile.js should be in .gitignore?

Tags:

gulp

I am newbie at frontend development :) Here is my short question.

I assume that at this point gulp is only for developing, not deploying. And, typically, build folder and node_modules are include in .gitignore. So, is it better to put gulpfile.js to .gitginore?

or is there any other use of gulpfile.js when source code is deployed ?

like image 372
namwoo Avatar asked Sep 12 '25 09:09

namwoo


1 Answers

You should keep in .gitignore files, which you don't want to be stored in your git repo, for example node_modules dir.

gulpfile.js should be inside of your repo, as it required dependency for building your project

like image 113
1ven Avatar answered Sep 15 '25 03:09

1ven