gulp-jquery

Gulp plugin for generating custom jQuery builds from source

Showing:

Popularity

Downloads/wk

19

GitHub Stars

6

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

3

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

gulp-jquery

A gulp plugin for creating custom jQuery builds via jquery-custom.

##Installation

NPM: npm install gulp-jquery

##Usage

There are two ways to use gulp-jquery. The first is to source the jQuery src folder from a local jquery install, such as from npm. This will build jQuery using exactly the version you have installed.

var jquery = require('gulp-jquery');
gulp.task('jquery', function () {
    return gulp.src('./node_modules/jquery/src')
        .pipe(jquery({
            flags: ['-deprecated', '-event/alias', '-ajax/script', '-ajax/jsonp', '-exports/global']
        }))
        .pipe(gulp.dest('./public/vendor/'));
    // creates ./public/vendor/jquery.custom.js
});

The second is to use gulp-jquery as a file source itself. jquery-custom includes whatever the latest versions of jQuery 1 and 2 are at the time of install.

var jquery = require('gulp-jquery');
gulp.task('jquery', function () {
    return jquery.src({
        release: 2, //jQuery 2
        flags: ['-deprecated', '-event/alias', '-ajax/script', '-ajax/jsonp', '-exports/global']
    })
    .pipe(gulp.dest('./public/vendor/'));
    // creates ./public/vendor/jquery.custom.js
});

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial