New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-jquery

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-jquery

Gulp plugin for generating custom jQuery builds from source.

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-jquery

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

WARNING: As of jQuery 1.12 and 2.2.0 the jQuery project is now using a completely different build process. As a result, this library no longer works, so I have hard capped the source downloader to jQuery 1.11.3 and 2.1.4, and removed support for jQuery 3.0 alphas until such a time that I can rewrite this builder for the newer versions.

##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
});

Keywords

FAQs

Package last updated on 14 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc