Permalink
Browse files

uglify into gh-pages

  • Loading branch information...
1 parent f874527 commit 8d37d3a3d2b4119eb081ea72a1eeb6232af783b7 @brandly committed Feb 24, 2014
Showing with 13 additions and 3 deletions.
  1. +10 −2 gulpfile.js
  2. +3 −1 package.json
View
@@ -2,11 +2,19 @@ var
gulp = require('gulp'),
gutil = require('gulp-util'),
path = require('path'),
-express = require('express');
+express = require('express'),
+uglify = require('gulp-uglify'),
+concat = require('gulp-concat');
gulp.task('gh', function () {
+ var dest = 'gh-pages/';
gulp.src('src/*')
- .pipe(gulp.dest('gh-pages/'));
+ .pipe(gulp.dest(dest));
+
+ gulp.src('src/snapchat.js')
+ .pipe(uglify())
+ .pipe(concat('snapchat.min.js'))
+ .pipe(gulp.dest(dest));
});
gulp.task('default', function () {
View
@@ -8,6 +8,8 @@
"gulp": "~3.5.1",
"gulp-util": "~2.2.14",
"path": "~0.4.9",
- "express": "~3.4.8"
+ "express": "~3.4.8",
+ "gulp-uglify": "^0.2.1",
+ "gulp-concat": "^2.1.7"
}
}

0 comments on commit 8d37d3a

Please sign in to comment.