]> source.dussan.org Git - svg.js.git/commitdiff
use gulp-chmod to set correct file permission 356/head
authorPeter Dave Hello <hsu@peterdavehello.org>
Tue, 23 Jun 2015 03:06:52 +0000 (11:06 +0800)
committerPeter Dave Hello <hsu@peterdavehello.org>
Tue, 23 Jun 2015 03:06:52 +0000 (11:06 +0800)
gulpfile.js

index fe8b0b3d78e8bb734786e37202e71f0a8b3eb029..37b7803d06ff8983d6ac52e890423df37687345b 100644 (file)
@@ -1,5 +1,6 @@
 var del     = require('del')\r
   , gulp    = require('gulp')\r
+  , chmod   = require('gulp-chmod')\r
   , concat  = require('gulp-concat')\r
   , header  = require('gulp-header')\r
   , jasmine = require('gulp-jasmine')\r
@@ -100,6 +101,7 @@ gulp.task('unify', ['clean'], function() {
           exports: 'SVG'\r
       }))\r
     .pipe(header(headerLong, { pkg: pkg }))\r
+    .pipe(chmod(644))\r
     .pipe(gulp.dest('dist'))\r
     .pipe(size({ showFiles: true, title: 'Full' }))\r
 })\r
@@ -115,6 +117,7 @@ gulp.task('minify', ['unify'], function() {
     .pipe(rename({ suffix:'.min' }))\r
     .pipe(size({ showFiles: true, title: 'Minified' }))\r
     .pipe(header(headerShort, { pkg: pkg }))\r
+    .pipe(chmod(644))\r
     .pipe(gulp.dest('dist'))\r
     .pipe(size({ showFiles: true, gzip: true, title: 'Gzipped' }))\r
 })\r