From 4c677019bab32075ec90a5315ff3d6425c824639 Mon Sep 17 00:00:00 2001 From: viskin Date: Sat, 30 May 2015 12:33:21 +0300 Subject: [PATCH] renamed dist file to .umd. --- Gruntfile.js | 9 +++++---- README.md | 6 ++++++ dist/jquery.easing.1.3.min.js | 4 ---- dist/jquery.easing.1.3.min.js.map | 1 - dist/{jquery.easing.1.3.js => jquery.easing.1.3.umd.js} | 5 +++-- dist/jquery.easing.1.3.umd.min.js | 4 ++++ dist/jquery.easing.1.3.umd.min.js.map | 1 + package.json | 2 +- 8 files changed, 20 insertions(+), 12 deletions(-) delete mode 100644 dist/jquery.easing.1.3.min.js delete mode 100644 dist/jquery.easing.1.3.min.js.map rename dist/{jquery.easing.1.3.js => jquery.easing.1.3.umd.js} (98%) create mode 100644 dist/jquery.easing.1.3.umd.min.js create mode 100644 dist/jquery.easing.1.3.umd.min.js.map diff --git a/Gruntfile.js b/Gruntfile.js index 7dd3b26..ca1cf37 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -12,12 +12,13 @@ module.exports = function(grunt) { markerAnimate: { options: { src: 'jquery.easing.1.3.js', - dest: 'dist/jquery.easing.1.3.js', + dest: 'dist/jquery.easing.1.3.umd.js', deps: { 'default': ['jQuery'], amd: ['jquery'], cjs: ['jquery'] - } + }, + objectToExport: "jQuery" } } }, @@ -28,8 +29,8 @@ module.exports = function(grunt) { banner: '/* <%= grunt.task.current.target %> v<%= pkg.version %> <%= grunt.template.today("dd-mm-yyyy") %> Node wrapper for jQuery Easing plugin (C) 2015 Terikon Software */\n' }, markerAnimate: { - src: 'dist/jquery.easing.1.3.js', - dest: 'dist/jquery.easing.1.3.min.js' + src: 'dist/jquery.easing.1.3.umd.js', + dest: 'dist/jquery.easing.1.3.umd.min.js' } }, diff --git a/README.md b/README.md index ffa299a..d3b3211 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,10 @@ To install: ``` npm install jquery-easing +``` + +Usage: + +```js +var jQuery = require("jquery-easing"); ``` \ No newline at end of file diff --git a/dist/jquery.easing.1.3.min.js b/dist/jquery.easing.1.3.min.js deleted file mode 100644 index f4f34d6..0000000 --- a/dist/jquery.easing.1.3.min.js +++ /dev/null @@ -1,4 +0,0 @@ -/* markerAnimate v0.0.1 30-05-2015 Node wrapper for jQuery Easing plugin (C) 2015 Terikon Software */ - -!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){a.easing.jswing=a.easing.swing,a.extend(a.easing,{def:"easeOutQuad",swing:function(b,c,d,e,f){return a.easing[a.easing.def](b,c,d,e,f)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),hb?-.5*h*Math.pow(2,10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g)+c:h*Math.pow(2,-10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(b,c,d,e,f){return e-a.easing.easeOutBounce(b,f-c,0,e,f)+d},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?7.5625*d*b*b+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(b,c,d,e,f){return f/2>c?.5*a.easing.easeInBounce(b,2*c,0,e,f)+d:.5*a.easing.easeOutBounce(b,2*c-f,0,e,f)+.5*e+d}})}); -//# sourceMappingURL=jquery.easing.1.3.min.js.map \ No newline at end of file diff --git a/dist/jquery.easing.1.3.min.js.map b/dist/jquery.easing.1.3.min.js.map deleted file mode 100644 index 9478dfe..0000000 --- a/dist/jquery.easing.1.3.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jquery.easing.1.3.min.js","sources":["jquery.easing.1.3.js"],"names":["root","factory","define","amd","a0","exports","module","require","jQuery","this","easing","extend","def","swing","x","t","b","c","d","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","easeInSine","Math","cos","PI","easeOutSine","sin","easeInOutSine","easeInExpo","pow","easeOutExpo","easeInOutExpo","easeInCirc","sqrt","easeOutCirc","easeInOutCirc","easeInElastic","s","p","a","abs","asin","easeOutElastic","easeInOutElastic","easeInBack","undefined","easeOutBack","easeInOutBack","easeInBounce","easeOutBounce","easeInOutBounce"],"mappings":";;CAAC,SAAUA,EAAMC,GACO,kBAAXC,SAAyBA,OAAOC,IAEzCD,QAAQ,UAAW,SAAUE,GAC3B,MAAQH,GAAQG,KAEU,gBAAZC,SAIhBC,OAAOD,QAAUJ,EAAQM,QAAQ,WAEjCN,EAAQO,SAEVC,KAAM,SAAUD,GAwClBA,EAAOE,OAAe,OAAIF,EAAOE,OAAc,MAE/CF,EAAOG,OAAQH,EAAOE,QAErBE,IAAK,cACLC,MAAO,SAAUC,EAAGC,EAAGC,EAAGC,EAAGC,GAE5B,MAAOV,GAAOE,OAAOF,EAAOE,OAAOE,KAAKE,EAAGC,EAAGC,EAAGC,EAAGC,IAErDC,WAAY,SAAUL,EAAGC,EAAGC,EAAGC,EAAGC,GACjC,MAAOD,IAAGF,G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IAAgBA,EAAI,SACjB9B,IAAIF,EAAEA,EAAEG,EAAE,GAAGH,IAAIgC,EAAE,GAAGhC,EAAIgC,GAAK,GAAK/B,GAE5CyC,cAAe,SAAU3C,EAAGC,EAAGC,EAAGC,EAAGC,EAAG6B,GAEvC,MADSQ,SAALR,IAAgBA,EAAI,UACnBhC,GAAGG,EAAE,GAAK,EAAUD,EAAE,EAAGF,EAAEA,KAAKgC,GAAG,OAAS,GAAGhC,EAAIgC,GAAM/B,EACvDC,EAAE,IAAIF,GAAG,GAAGA,KAAKgC,GAAG,OAAS,GAAGhC,EAAIgC,GAAK,GAAK/B,GAEtD0C,aAAc,SAAU5C,EAAGC,EAAGC,EAAGC,EAAGC,GACnC,MAAOD,GAAIT,EAAOE,OAAOiD,cAAe7C,EAAGI,EAAEH,EAAG,EAAGE,EAAGC,GAAKF,GAE5D2C,cAAe,SAAU7C,EAAGC,EAAGC,EAAGC,EAAGC,GACpC,OAAKH,GAAGG,GAAM,EAAE,KACL,OAAHD,EAAUF,EAAEA,EAAKC,EACT,EAAE,KAAPD,EACHE,GAAG,QAAQF,GAAI,IAAI,MAAOA,EAAI,KAAOC,EAC7B,IAAI,KAATD,EACHE,GAAG,QAAQF,GAAI,KAAK,MAAOA,EAAI,OAASC,EAExCC,GAAG,QAAQF,GAAI,MAAM,MAAOA,EAAI,SAAWC,GAGpD4C,gBAAiB,SAAU9C,EAAGC,EAAGC,EAAGC,EAAGC,GACtC,MAAQA,GAAE,EAANH,EAA+D,GAA/CP,EAAOE,OAAOgD,aAAc5C,EAAK,EAAFC,EAAK,EAAGE,EAAGC,GAAUF,EACf,GAAlDR,EAAOE,OAAOiD,cAAe7C,EAAK,EAAFC,EAAIG,EAAG,EAAGD,EAAGC,GAAY,GAAFD,EAAOD"} \ No newline at end of file diff --git a/dist/jquery.easing.1.3.js b/dist/jquery.easing.1.3.umd.js similarity index 98% rename from dist/jquery.easing.1.3.js rename to dist/jquery.easing.1.3.umd.js index 985755d..cb7f510 100644 --- a/dist/jquery.easing.1.3.js +++ b/dist/jquery.easing.1.3.umd.js @@ -2,7 +2,7 @@ if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module unless amdModuleId is set define(["jquery"], function (a0) { - return (factory(a0)); + return (root['jQuery'] = factory(a0)); }); } else if (typeof exports === 'object') { // Node. Does not work with strict CommonJS, but @@ -10,7 +10,7 @@ // like Node. module.exports = factory(require("jquery")); } else { - factory(jQuery); + root['jQuery'] = factory(jQuery); } }(this, function (jQuery) { @@ -219,5 +219,6 @@ jQuery.extend( jQuery.easing, * OF THE POSSIBILITY OF SUCH DAMAGE. * */ +return jQuery; })); diff --git a/dist/jquery.easing.1.3.umd.min.js b/dist/jquery.easing.1.3.umd.min.js new file mode 100644 index 0000000..0e8375d --- /dev/null +++ b/dist/jquery.easing.1.3.umd.min.js @@ -0,0 +1,4 @@ +/* markerAnimate v0.0.1 30-05-2015 Node wrapper for jQuery Easing plugin (C) 2015 Terikon Software */ + +!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return a.jQuery=b(c)}):"object"==typeof exports?module.exports=b(require("jquery")):a.jQuery=b(jQuery)}(this,function(a){return a.easing.jswing=a.easing.swing,a.extend(a.easing,{def:"easeOutQuad",swing:function(b,c,d,e,f){return a.easing[a.easing.def](b,c,d,e,f)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),hb?-.5*h*Math.pow(2,10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g)+c:h*Math.pow(2,-10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(b,c,d,e,f){return e-a.easing.easeOutBounce(b,f-c,0,e,f)+d},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?7.5625*d*b*b+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(b,c,d,e,f){return f/2>c?.5*a.easing.easeInBounce(b,2*c,0,e,f)+d:.5*a.easing.easeOutBounce(b,2*c-f,0,e,f)+.5*e+d}}),a}); +//# sourceMappingURL=jquery.easing.1.3.umd.min.js.map \ No newline at end of file diff --git a/dist/jquery.easing.1.3.umd.min.js.map b/dist/jquery.easing.1.3.umd.min.js.map new file mode 100644 index 0000000..ba9e4c0 --- /dev/null +++ b/dist/jquery.easing.1.3.umd.min.js.map @@ -0,0 +1 @@ +{"version":3,"file":"jquery.easing.1.3.umd.min.js","sources":["jquery.easing.1.3.umd.js"],"names":["root","factory","define","amd","a0","exports","module","require","jQuery","this","easing","extend","def","swing","x","t","b","c","d","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","easeInSine","Math","cos","PI","easeOutSine","sin","easeInOutSine","easeInExpo","pow","easeOutExpo","easeInOutExpo","easeInCirc","sqrt","easeOutCirc","easeInOutCirc","easeInElastic","s","p","a","abs","asin","easeOutElastic","easeInOutElastic","easeInBack","undefined","easeOutBack","easeInOutBack","easeInBounce","easeOutBounce","easeInOutBounce"],"mappings":";;CAAC,SAAUA,EAAMC,GACO,kBAAX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GAAI,KAAK,MAAOA,EAAI,OAASC,EAExCC,GAAG,QAAQF,GAAI,MAAM,MAAOA,EAAI,SAAWC,GAGpD4C,gBAAiB,SAAU9C,EAAGC,EAAGC,EAAGC,EAAGC,GACtC,MAAQA,GAAE,EAANH,EAA+D,GAA/CP,EAAOE,OAAOgD,aAAc5C,EAAK,EAAFC,EAAK,EAAGE,EAAGC,GAAUF,EACf,GAAlDR,EAAOE,OAAOiD,cAAe7C,EAAK,EAAFC,EAAIG,EAAG,EAAGD,EAAGC,GAAY,GAAFD,EAAOD,KAoChER"} \ No newline at end of file diff --git a/package.json b/package.json index 6ff9b92..beb5e3d 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "title": "jquery-easing", "version": "0.0.1", "description": "node wrapper for jQuery Easing plugin by George McGinley Smith", - "main": "dist/jquery.easing.1.3.js", + "main": "dist/jquery.easing.1.3.umd.js", "scripts": { "//": "use '|| true' to prevent warning", "build": "npm install && grunt",