diff --git a/package.json b/package.json index d13cf87b..491364fa 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,9 @@ "test": "grunt test", "ci": "grunt ci" }, + "dependencies": { + "jquery": "3.0.0" + }, "devDependencies": { "chalk": "1.1.3", "commitplease": "2.3.1", diff --git a/src/intro.js b/src/intro.js index da0f8831..9c9d5c6e 100644 --- a/src/intro.js +++ b/src/intro.js @@ -1,2 +1,14 @@ -(function( jQuery, window ) { +;(function( factory ) { + /* jshint browserify:true */ + if ( typeof define === "function" && define.amd ) { + // AMD. Register as an anonymous module. + define( [ "jquery" ], window, factory ); + } else if ( typeof module === "object" && module.exports ) { + // Node/CommonJS + module.exports = factory( require( "jquery" ), window ); + } else { + // Browser globals + factory( jQuery, window ); + } +}(function( jQuery, window ) { "use strict"; diff --git a/src/outro.js b/src/outro.js index ff660771..d792ffb5 100644 --- a/src/outro.js +++ b/src/outro.js @@ -1,2 +1,2 @@ - -})( jQuery, window ); +return jQuery; +}));