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
Post a Comment