]> git.r.bdr.sh - rbdr/serpentity/commitdiff
Adds the minifying process back
authorBen Beltran <redacted>
Mon, 28 Mar 2016 05:33:46 +0000 (23:33 -0600)
committerBen Beltran <redacted>
Mon, 28 Mar 2016 05:33:46 +0000 (23:33 -0600)
gulpfile.js
package.json

index edd97d08a2fabe3824dbd5a0b8ed2aeb06f41221..dcb689bf31f06e897f20862c5597e3bba1752355 100644 (file)
@@ -3,6 +3,8 @@
 const Gulp = require('gulp');
 const Babel = require('gulp-babel');
 const Concat = require('gulp-concat');
 const Gulp = require('gulp');
 const Babel = require('gulp-babel');
 const Concat = require('gulp-concat');
+const Rename = require('gulp-rename');
+const Uglify = require('gulp-uglify');
 
 Gulp.task('build', function() {
   Gulp.src([
 
 Gulp.task('build', function() {
   Gulp.src([
@@ -17,5 +19,10 @@ Gulp.task('build', function() {
     presets: ['es2015']
   }))
   .pipe(Concat('serpentity.js'))
     presets: ['es2015']
   }))
   .pipe(Concat('serpentity.js'))
+  .pipe(Gulp.dest('dist'))
+  .pipe(Uglify())
+  .pipe(Rename({
+    suffix: '.min'
+  }))
   .pipe(Gulp.dest('dist'));
 });
   .pipe(Gulp.dest('dist'));
 });
index 1e37373e0237dff862ca1603f933b205761bd4b5..0b50871dc6d1dd646a8bbb74fff017d035e68cad 100644 (file)
@@ -19,7 +19,9 @@
     "babel-preset-es2015": "6.6.x",
     "gulp": "3.9.x",
     "gulp-babel": "6.1.x",
     "babel-preset-es2015": "6.6.x",
     "gulp": "3.9.x",
     "gulp-babel": "6.1.x",
-    "gulp-concat": "2.6.x"
+    "gulp-concat": "2.6.x",
+    "gulp-rename": "1.2.x",
+    "gulp-uglify": "1.5.x"
   },
   "engines": {
     "node": ">= 4.0.0"
   },
   "engines": {
     "node": ">= 4.0.0"