Swiip / generator-gulp-angular

Yeoman generator for AngularJS with GulpJS [UNMAINTAINED next iteration is FountainJS]
http://fountainjs.io
3.72k stars 665 forks source link

Need to add ".gitattributes" to prevent corruption of images in multi-platform dev teams #799

Open joaocc opened 9 years ago

joaocc commented 9 years ago

I came to this conclusion the hard way, on a team with developers working in Mac, PC and Linux. Can you please add a ".gitattributes" file to the root of the generated project?

#
## These files are binary and should be left untouched
#

# (binary is a macro for -text -diff)
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.mov binary
*.mp4 binary
*.mp3 binary
*.flv binary
*.fla binary
*.swf binary
*.gz binary
*.zip binary
*.7z binary
*.ttf binary
*.eot binary
*.woff binary
*.pyc binary
*.pdf binary
Swiip commented 9 years ago

Sorry for the delay. I'm wondering if this kind of setting is generic or not. Binary files are real for everyone, ok. But is this not a context specific need? You're the first facing this problem.

joaocc commented 9 years ago

Can't speak for other teams, but, we had some serious headaches until we fixed this. Also, other projects seem to be doing the same

Swiip commented 9 years ago

Interesting references thanks!

zckrs commented 9 years ago

For the next major version I imagine compose with generator-node:git https://github.com/yeoman/generator-node/tree/master/generators/git