Skip to content

Commit

Permalink
gulpfile added
Browse files Browse the repository at this point in the history
  • Loading branch information
cd committed Nov 11, 2015
1 parent 60b8e91 commit b8982a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ gulp.task("doc", function(){
.pipe(rename("README.md"))
.pipe(gulp.dest("api"));
});

gulp.task('compress', function() {
return gulp.src('g2.js')
.pipe(rename({ extname: '.min.js' }))
.pipe(uglify())
.pipe(gulp.dest('/'))
.pipe(gulp.dest(''))
.pipe(gzip())
.pipe(gulp.dest('/'));
.pipe(gulp.dest(''));
});

0 comments on commit b8982a1

Please sign in to comment.