gruntjs - grunt.file write/copy with permissions -
is there way specify permissions of file during grunt.file.copy(...), except using 'fs.chmod' after copy has finished?
i have require whole 'fs' module otherwise, changing permissions. lot of overhead?
grunt.file.copy
not provide option that, unfortunately.
but grunt copy
task (from grunt-contrib-copy
) has option (options.mode
, see https://github.com/gruntjs/grunt-contrib-copy#mode).
Comments
Post a Comment