Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

uglify into gh-pages

  • Loading branch information...
commit 8d37d3a3d2b4119eb081ea72a1eeb6232af783b7 1 parent f874527
@brandly authored
Showing with 13 additions and 3 deletions.
  1. +10 −2 gulpfile.js
  2. +3 −1 package.json
View
12 gulpfile.js
@@ -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
4 package.json
@@ -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"
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.