diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2659e49 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Ignore modules +/node_modules \ No newline at end of file diff --git a/Cquence.js b/Cquence.js index 9ee1f82..e0e9279 100644 --- a/Cquence.js +++ b/Cquence.js @@ -185,4 +185,3 @@ var renderloop = function(){ // // launch the animation // renderloop(); - diff --git a/Gulpfile.js b/Gulpfile.js new file mode 100644 index 0000000..f5be8ce --- /dev/null +++ b/Gulpfile.js @@ -0,0 +1,7 @@ +var gulp=require("gulp"), +uglify = require("gulp-uglify"); + + +gulp.task("compress", function(){ + gulp.src("Cquence.js").pipe( uglify() ).pipe( gulp.dest("minified") ) +}); \ No newline at end of file diff --git a/cquence.min.js b/cquence.min.js deleted file mode 100644 index 8f7b96d..0000000 --- a/cquence.min.js +++ /dev/null @@ -1 +0,0 @@ -function getInternetExplorerVersion(){var e=-1;if(navigator.appName=="Microsoft Internet Explorer"){var t=navigator.userAgent;var n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(n.exec(t)!=null)e=parseFloat(RegExp.$1)}return e}var raf=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)};var elem=function(e){return document.getElementById(e)};var style=function(e,t,n){if(t==="opacity"){if(IE8){e.style["-ms-filter"]="progid:DXImageTransform.Microsoft.Alpha(Opacity="+Math.floor(n*100)+")";e.style["filter"]="alpha(opacity="+Math.floor(n*100)+")"}else{e.style[t]=n}}else{e.style[t]=n+"px"}};var combine=function(){var e=Array.prototype.slice.call(arguments,0);var t=0;for(var n=0;nt){r.f(t)}else{if(!r.done){r.f(r.d);r.done=true}}}}}};var sequence=function(){var e=Array.prototype.slice.call(arguments,0);var t=0;for(var n=0;nt){n.f(t-r);return}if(!n.done){n.f(n.d);n.done=true}r=r+n.d}}}};var animate=function(e){return function(t,n,r,i){return{d:n,f:function(s){var o=elem(t);for(var u in r){var a=r[u];var f=i[u];var l=f-a;var c=e(Math.max(s/n,0));var h=a+c*l;style(o,u,h)}}}}};var linear=animate(function(e){return e});var easeIn=animate(function(e){return Math.pow(e,5)});var easeOut=animate(function(e){return 1-Math.pow(1-e,5)});var sleep=function(e){return{d:e,f:function(e){}}};var IEVERSION=getInternetExplorerVersion();var IE8=IEVERSION===8;var IEWTF=IEVERSION<8&&IEVERSION>-1;var timeline=[];var start=+(new Date);var second=1e3;var stop=15*second;var render=null;var renderloop=function(){var e=+(new Date)-start;if(en?r.f(n):r.done||(r.f(r.d),r.done=!0)}}}},sequence=function(){for(var e=Array.prototype.slice.call(arguments,0),n=0,t=0;tn)return void t.f(n-r);t.done||(t.f(t.d),t.done=!0),r+=t.d}}}},animate=function(e){return function(n,t,r,o){return{d:t,f:function(a){var i=elem(n);for(var f in r){var u=r[f],l=o[f],s=l-u,c=e(Math.max(a/t,0)),d=u+c*s;style(i,f,d)}}}}},linear=animate(function(e){return e}),easeIn=animate(function(e){return Math.pow(e,5)}),easeOut=animate(function(e){return 1-Math.pow(1-e,5)}),sleep=function(e){return{d:e,f:function(){}}},IEVERSION=getInternetExplorerVersion(),IE8=8===IEVERSION,IEWTF=8>IEVERSION&&IEVERSION>-1,timeline=[],start=+new Date,second=1e3,stop=15*second,render=null,renderloop=function(){var e=+new Date-start;stop>e&&raf(renderloop),render&&render.f(e)}; \ No newline at end of file diff --git a/package.json b/package.json index 504a5c9..fea16de 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,10 @@ { - "name": "Qemulatoriuminator", + "name": "Cquence", + "description": "A very tiny Javascript animation library", + "author": "Ramon Gebben ", "version": "0.1.0", "devDependencies": { - "body-parser": "^1.9.2", - "express": "^4.10.2", - "finalhandler": "^0.3.2", - "grunt": "~0.4.5", - "grunt-browserify": "^3.2.0", - "grunt-contrib-jshint": "~0.10.0", - "grunt-contrib-nodeunit": "~0.4.1", - "grunt-contrib-uglify": "~0.5.0", - "s3": "^4.3.1", - "serve-static": "^1.7.1" - }, - "dependencies": { - "gm": "^1.17.0" + "gulp": "^3.8.10", + "gulp-uglify": "^1.0.2" } }