From: Peter Dave Hello Date: Tue, 23 Jun 2015 03:06:52 +0000 (+0800) Subject: use gulp-chmod to set correct file permission X-Git-Tag: 2.0.3~2^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F356%2Fhead;p=svg.js.git use gulp-chmod to set correct file permission --- diff --git a/gulpfile.js b/gulpfile.js index fe8b0b3..37b7803 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,5 +1,6 @@ var del = require('del') , gulp = require('gulp') + , chmod = require('gulp-chmod') , concat = require('gulp-concat') , header = require('gulp-header') , jasmine = require('gulp-jasmine') @@ -100,6 +101,7 @@ gulp.task('unify', ['clean'], function() { exports: 'SVG' })) .pipe(header(headerLong, { pkg: pkg })) + .pipe(chmod(644)) .pipe(gulp.dest('dist')) .pipe(size({ showFiles: true, title: 'Full' })) }) @@ -115,6 +117,7 @@ gulp.task('minify', ['unify'], function() { .pipe(rename({ suffix:'.min' })) .pipe(size({ showFiles: true, title: 'Minified' })) .pipe(header(headerShort, { pkg: pkg })) + .pipe(chmod(644)) .pipe(gulp.dest('dist')) .pipe(size({ showFiles: true, gzip: true, title: 'Gzipped' })) })