summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Dave Hello <hsu@peterdavehello.org>2015-06-23 11:06:52 +0800
committerPeter Dave Hello <hsu@peterdavehello.org>2015-06-23 11:06:52 +0800
commit6e9eb2f8c81a6deb69df6ff34468d02da8e6d34f (patch)
tree61f95a840fddbe45ed4210e817cd85150f8be897
parenta3b1ce67188a7a6d58b12cc38479a9c880b554ad (diff)
downloadsvg.js-6e9eb2f8c81a6deb69df6ff34468d02da8e6d34f.tar.gz
svg.js-6e9eb2f8c81a6deb69df6ff34468d02da8e6d34f.zip
use gulp-chmod to set correct file permission
-rw-r--r--gulpfile.js3
1 files changed, 3 insertions, 0 deletions
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' }))
})