Skip to content

Commit

Permalink
Replaces Grunt with Gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwanderski committed Feb 14, 2017
1 parent da8738a commit 8be4640
Show file tree
Hide file tree
Showing 14 changed files with 89 additions and 672 deletions.
326 changes: 0 additions & 326 deletions Gruntfile.js

This file was deleted.

58 changes: 58 additions & 0 deletions Gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
var gulp = require('gulp')
var uglify = require('gulp-uglify');
var cssmin = require('gulp-cssmin');
var rename = require('gulp-rename');

gulp.task('js-minify', function () {
gulp.src('./src/js/jquery.bxslider.js')
.pipe(uglify({
preserveComments: 'license'
}))
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest('./dist'));
});

gulp.task('js-copy-src', function () {
gulp.src('./src/js/jquery.bxslider.js')
.pipe(gulp.dest('./dist'));
});

gulp.task('css-minify', function () {
gulp.src('./src/css/jquery.bxslider.css')
.pipe(cssmin())
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest('./dist'));
});

gulp.task('css-copy-src', function () {
gulp.src('./src/css/jquery.bxslider.css')
.pipe(gulp.dest('./dist'));
});

gulp.task('vendor-copy-src', function () {
gulp.src('./src/vendor/*')
.pipe(gulp.dest('./dist/vendor'));
});

gulp.task('images-copy-src', function () {
gulp.src('./src/images/*')
.pipe(gulp.dest('./dist/images'));
});

gulp.task('docs-copy-src', function () {
gulp.src([
'./readme.md',
'./LICENSE.md'
])
.pipe(gulp.dest('./dist'));
});

gulp.task('default', [
'js-minify',
'js-copy-src',
'css-minify',
'css-copy-src',
'vendor-copy-src',
'images-copy-src',
'docs-copy-src'
]);
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bxslider-4",
"version": "4.2.5",
"version": "4.2.6",
"homepage": "http://bxslider.com",
"license": "MIT",
"main": [
Expand Down
Loading

0 comments on commit 8be4640

Please sign in to comment.