Closed john-goldsmith closed 8 years ago
A generator can already produce dotfiles in two ways:
dot
option for gulp.src
:// copy all files (including dotfiles from /generator-path/templates to current working directory:
gulp.src('./templates/**', {cwd: __dirname, dot: true})
.pipe(gulp.dest('./'));
gulp.src
in combination with gulp-rename
, see e.g. slush-angular
's slushfile
It'd be great if dotfiles could be produced by generators. This would be helpful for generating files such as
.gitignore
,.jshintrc
,.drone.yml
, etc. Thanks!