diff --git a/Gulpfile.js b/Gulpfile.js index 01c228ea..e433bf47 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -3,51 +3,58 @@ var uglify = require('gulp-uglify'); var cssmin = require('gulp-cssmin'); var rename = require('gulp-rename'); -gulp.task('js-minify', function () { +gulp.task('js-minify', function (done) { gulp.src('./src/js/jquery.bxslider.js') .pipe(uglify({ preserveComments: 'license' })) .pipe(rename({ suffix: '.min' })) .pipe(gulp.dest('./dist')); + done(); }); -gulp.task('js-copy-src', function () { +gulp.task('js-copy-src', function (done) { gulp.src('./src/js/jquery.bxslider.js') .pipe(gulp.dest('./dist')); + done(); }); -gulp.task('css-minify', function () { +gulp.task('css-minify', function (done) { gulp.src('./src/css/jquery.bxslider.css') .pipe(cssmin()) .pipe(rename({ suffix: '.min' })) .pipe(gulp.dest('./dist')); + done(); }); -gulp.task('css-copy-src', function () { +gulp.task('css-copy-src', function (done) { gulp.src('./src/css/jquery.bxslider.css') .pipe(gulp.dest('./dist')); + done(); }); -gulp.task('vendor-copy-src', function () { +gulp.task('vendor-copy-src', function (done) { gulp.src('./src/vendor/*') .pipe(gulp.dest('./dist/vendor')); + done(); }); -gulp.task('images-copy-src', function () { +gulp.task('images-copy-src', function (done) { gulp.src('./src/images/*') .pipe(gulp.dest('./dist/images')); + done(); }); -gulp.task('docs-copy-src', function () { +gulp.task('docs-copy-src', function (done) { gulp.src([ './readme.md', './LICENSE.md' ]) .pipe(gulp.dest('./dist')); + done(); }); -gulp.task('default', [ +gulp.task('default', gulp.series( 'js-minify', 'js-copy-src', 'css-minify', @@ -55,4 +62,4 @@ gulp.task('default', [ 'vendor-copy-src', 'images-copy-src', 'docs-copy-src' -]); +)); diff --git a/dist/README.md b/dist/README.md index 6df1a3ee..a9ad34eb 100644 --- a/dist/README.md +++ b/dist/README.md @@ -34,6 +34,13 @@ First and most important, the jQuery library needs to be included (no need to do ``` +Or, if you prefer, you can get the bxSlider's resources from the **CDN**: + +```html + + +``` + ### Step 2: Create HTML markup Create a `