gulp - Remove build file clutter in git -


i'm trying use combination of .gitignore , git hooks make auto-generated build files invisible me in git (and github desktop) locally merely irrelevant clutter.

some ideas:

  • put development build files .gitignore these never needed production , can regenerated in dev environment running (since in case i'm using gulp) gulp watch.

  • add git pre-commit hook run minification script, e.g. gulp --production.

  • also in pre-commit hook, add generated files, git add -f (needed since these in .gitignore)

the problem seems when add minified files git add -f , seems nullify .ignore , crap don't want shows in dev environment again.

i tried post-commit hook, git rm -r --cached ./public/build, i'm loosing plot bit.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -