var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var cleanCSS = require('gulp-clean-css');
var uglify = require('gulp-uglify');
var pump = require('pump');
var del = require('del');

var paths = {
    in: {
        js: 'src/js/*.js',
        css: 'src/css/*.css',
        img: 'src/img/**/*',
        example: 'src/example/**/*'
    },
    out: {
        js: 'dist/js',
        css: 'dist/css',
        img: 'dist/img',
        example: 'dist/example'
    }
};

gulp.task('clean', () => {
    return del(['dist']);
});

gulp.task('minify-js', cb => {
    pump([
        gulp.src(paths.in.js),
        sourcemaps.init(),
        uglify(),
        sourcemaps.write(),
        gulp.dest(paths.out.js)
    ], cb);
});

gulp.task('minify-css', cb => {
    pump([
        gulp.src(paths.in.css),
        cleanCSS({compatibility: 'ie8'}),
        gulp.dest(paths.out.css)
    ], cb);
});

gulp.task('copy-images', cb => {
    pump([
        gulp.src(paths.in.img),
        gulp.dest(paths.out.img)
    ], cb);
});

gulp.task('copy-example', cb => {
    pump([
        gulp.src(paths.in.example),
        gulp.dest(paths.out.example)
    ], cb);
})

gulp.task('watch', () => {
    gulp.watch(paths.in.js, ['minify-js']);
    gulp.watch(paths.in.css, ['minify-css']);
    gulp.watch(paths.in.image, ['copy-images']);
    gulp.watch(paths.in.example, ['copy-example']);
})

gulp.task('all', ['minify-js', 'minify-css', 'copy-images', 'copy-example']);
gulp.task('build', ['clean', 'all']);
gulp.task('default', ['watch', 'all']);
@@ -25,53 +25,8 @@
 ');%0A
-var sourcemaps = require('gulp-sourcemaps');%0A
 var 
@@ -96,24 +96,61 @@
 p-uglify');%0A
+var rename = require('gulp-rename');%0A
 var pump = r
@@ -374,16 +374,24 @@
 : 'dist/
+jbility/
 js',%0A   
@@ -406,16 +406,24 @@
 : 'dist/
+jbility/
 css',%0A  
@@ -439,16 +439,24 @@
 : 'dist/
+jbility/
 img',%0A  
@@ -638,24 +638,30 @@
     
-sourcemaps.init(
+gulp.dest(paths.out.js
 ),%0A 
@@ -689,25 +689,31 @@
     
-sourcemaps.write(
+rename(%7Bsuffix: '.min'%7D
 ),%0A 
@@ -831,24 +831,58 @@
 hs.in.css),%0A
+        gulp.dest(paths.out.css),%0A
         clea
@@ -907,24 +907,58 @@
 y: 'ie8'%7D),%0A
+        rename(%7Bsuffix: '.min'%7D),%0A
         gulp
@@ -1575,25 +1575,16 @@
 uild', %5B
-'clean', 
 'all'%5D);

Add the .min suffix