From 85d54e62d3d9815fac531060543ce3468154c792 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 22 Mar 2016 23:33:40 +0200 Subject: [PATCH] Do not build supporting JS files These files are already included in the bundle --- .gitignore | 2 ++ .../javascripts/{docs.js => app/_Docs.js} | 0 ...cle.Fixed.js => _Engine.Particle.Fixed.js} | 0 ...Engine.Particle.js => _Engine.Particle.js} | 0 ...oint.Puller.js => _Engine.Point.Puller.js} | 0 .../app/{Engine.Point.js => _Engine.Point.js} | 0 ...on.Puller.js => _Engine.Polygon.Puller.js} | 0 .../{Engine.Polygon.js => _Engine.Polygon.js} | 0 ...hape.Puller.js => _Engine.Shape.Puller.js} | 0 .../app/{Engine.Shape.js => _Engine.Shape.js} | 0 ...ne.Typewriter.js => _Engine.Typewriter.js} | 0 .../javascripts/app/{Engine.js => _Engine.js} | 0 .../javascripts/app/{Grid.js => _Grid.js} | 0 .../javascripts/app/{Init.js => _Init.js} | 0 .../javascripts/app/{Logo.js => _Logo.js} | 0 .../javascripts/app/{Puller.js => _Puller.js} | 0 .../app/{Sidebar.js => _Sidebar.js} | 0 .../source/assets/javascripts/application.js | 25 +++++++++++++++++++ .../assets/javascripts/application_2.js | 25 ------------------- .../source/assets/javascripts/html5shiv.js | 8 ------ .../javascripts/lib/{Base.js => _Base.js} | 0 .../lib/{Chainable.js => _Chainable.js} | 0 ...pe.bind.js => _Function.prototype.bind.js} | 0 ...ng.substitute.js => _String.substitute.js} | 0 .../javascripts/lib/{Vector.js => _Vector.js} | 0 .../javascripts/lib/{dbg.js => _dbg.js} | 0 .../source/assets/javascripts/respond.min.js | 6 ----- website/source/layouts/_footer.erb | 2 +- website/source/layouts/_meta.erb | 2 +- 29 files changed, 29 insertions(+), 41 deletions(-) rename website/source/assets/javascripts/{docs.js => app/_Docs.js} (100%) rename website/source/assets/javascripts/app/{Engine.Particle.Fixed.js => _Engine.Particle.Fixed.js} (100%) rename website/source/assets/javascripts/app/{Engine.Particle.js => _Engine.Particle.js} (100%) rename website/source/assets/javascripts/app/{Engine.Point.Puller.js => _Engine.Point.Puller.js} (100%) rename website/source/assets/javascripts/app/{Engine.Point.js => _Engine.Point.js} (100%) rename website/source/assets/javascripts/app/{Engine.Polygon.Puller.js => _Engine.Polygon.Puller.js} (100%) rename website/source/assets/javascripts/app/{Engine.Polygon.js => _Engine.Polygon.js} (100%) rename website/source/assets/javascripts/app/{Engine.Shape.Puller.js => _Engine.Shape.Puller.js} (100%) rename website/source/assets/javascripts/app/{Engine.Shape.js => _Engine.Shape.js} (100%) rename website/source/assets/javascripts/app/{Engine.Typewriter.js => _Engine.Typewriter.js} (100%) rename website/source/assets/javascripts/app/{Engine.js => _Engine.js} (100%) rename website/source/assets/javascripts/app/{Grid.js => _Grid.js} (100%) rename website/source/assets/javascripts/app/{Init.js => _Init.js} (100%) rename website/source/assets/javascripts/app/{Logo.js => _Logo.js} (100%) rename website/source/assets/javascripts/app/{Puller.js => _Puller.js} (100%) rename website/source/assets/javascripts/app/{Sidebar.js => _Sidebar.js} (100%) create mode 100644 website/source/assets/javascripts/application.js delete mode 100644 website/source/assets/javascripts/application_2.js delete mode 100755 website/source/assets/javascripts/html5shiv.js rename website/source/assets/javascripts/lib/{Base.js => _Base.js} (100%) rename website/source/assets/javascripts/lib/{Chainable.js => _Chainable.js} (100%) rename website/source/assets/javascripts/lib/{Function.prototype.bind.js => _Function.prototype.bind.js} (100%) rename website/source/assets/javascripts/lib/{String.substitute.js => _String.substitute.js} (100%) rename website/source/assets/javascripts/lib/{Vector.js => _Vector.js} (100%) rename website/source/assets/javascripts/lib/{dbg.js => _dbg.js} (100%) delete mode 100755 website/source/assets/javascripts/respond.min.js diff --git a/.gitignore b/.gitignore index 911732441..3ad3dd465 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,5 @@ website/node_modules *.iml *.test *.iml + +website/vendor diff --git a/website/source/assets/javascripts/docs.js b/website/source/assets/javascripts/app/_Docs.js similarity index 100% rename from website/source/assets/javascripts/docs.js rename to website/source/assets/javascripts/app/_Docs.js diff --git a/website/source/assets/javascripts/app/Engine.Particle.Fixed.js b/website/source/assets/javascripts/app/_Engine.Particle.Fixed.js similarity index 100% rename from website/source/assets/javascripts/app/Engine.Particle.Fixed.js rename to website/source/assets/javascripts/app/_Engine.Particle.Fixed.js diff --git a/website/source/assets/javascripts/app/Engine.Particle.js b/website/source/assets/javascripts/app/_Engine.Particle.js similarity index 100% rename from website/source/assets/javascripts/app/Engine.Particle.js rename to website/source/assets/javascripts/app/_Engine.Particle.js diff --git a/website/source/assets/javascripts/app/Engine.Point.Puller.js b/website/source/assets/javascripts/app/_Engine.Point.Puller.js similarity index 100% rename from website/source/assets/javascripts/app/Engine.Point.Puller.js rename to website/source/assets/javascripts/app/_Engine.Point.Puller.js diff --git a/website/source/assets/javascripts/app/Engine.Point.js b/website/source/assets/javascripts/app/_Engine.Point.js similarity index 100% rename from website/source/assets/javascripts/app/Engine.Point.js rename to website/source/assets/javascripts/app/_Engine.Point.js diff --git a/website/source/assets/javascripts/app/Engine.Polygon.Puller.js b/website/source/assets/javascripts/app/_Engine.Polygon.Puller.js similarity index 100% rename from website/source/assets/javascripts/app/Engine.Polygon.Puller.js rename to website/source/assets/javascripts/app/_Engine.Polygon.Puller.js diff --git a/website/source/assets/javascripts/app/Engine.Polygon.js b/website/source/assets/javascripts/app/_Engine.Polygon.js similarity index 100% rename from website/source/assets/javascripts/app/Engine.Polygon.js rename to website/source/assets/javascripts/app/_Engine.Polygon.js diff --git a/website/source/assets/javascripts/app/Engine.Shape.Puller.js b/website/source/assets/javascripts/app/_Engine.Shape.Puller.js similarity index 100% rename from website/source/assets/javascripts/app/Engine.Shape.Puller.js rename to website/source/assets/javascripts/app/_Engine.Shape.Puller.js diff --git a/website/source/assets/javascripts/app/Engine.Shape.js b/website/source/assets/javascripts/app/_Engine.Shape.js similarity index 100% rename from website/source/assets/javascripts/app/Engine.Shape.js rename to website/source/assets/javascripts/app/_Engine.Shape.js diff --git a/website/source/assets/javascripts/app/Engine.Typewriter.js b/website/source/assets/javascripts/app/_Engine.Typewriter.js similarity index 100% rename from website/source/assets/javascripts/app/Engine.Typewriter.js rename to website/source/assets/javascripts/app/_Engine.Typewriter.js diff --git a/website/source/assets/javascripts/app/Engine.js b/website/source/assets/javascripts/app/_Engine.js similarity index 100% rename from website/source/assets/javascripts/app/Engine.js rename to website/source/assets/javascripts/app/_Engine.js diff --git a/website/source/assets/javascripts/app/Grid.js b/website/source/assets/javascripts/app/_Grid.js similarity index 100% rename from website/source/assets/javascripts/app/Grid.js rename to website/source/assets/javascripts/app/_Grid.js diff --git a/website/source/assets/javascripts/app/Init.js b/website/source/assets/javascripts/app/_Init.js similarity index 100% rename from website/source/assets/javascripts/app/Init.js rename to website/source/assets/javascripts/app/_Init.js diff --git a/website/source/assets/javascripts/app/Logo.js b/website/source/assets/javascripts/app/_Logo.js similarity index 100% rename from website/source/assets/javascripts/app/Logo.js rename to website/source/assets/javascripts/app/_Logo.js diff --git a/website/source/assets/javascripts/app/Puller.js b/website/source/assets/javascripts/app/_Puller.js similarity index 100% rename from website/source/assets/javascripts/app/Puller.js rename to website/source/assets/javascripts/app/_Puller.js diff --git a/website/source/assets/javascripts/app/Sidebar.js b/website/source/assets/javascripts/app/_Sidebar.js similarity index 100% rename from website/source/assets/javascripts/app/Sidebar.js rename to website/source/assets/javascripts/app/_Sidebar.js diff --git a/website/source/assets/javascripts/application.js b/website/source/assets/javascripts/application.js new file mode 100644 index 000000000..5e308bc94 --- /dev/null +++ b/website/source/assets/javascripts/application.js @@ -0,0 +1,25 @@ +//= require jquery +//= require bootstrap + +//= require lib/_String.substitute +//= require lib/_Vector +//= require lib/_Function.prototype.bind +//= require lib/_Base +//= require lib/_Chainable +//= require lib/_dbg + +//= require app/_Docs +//= require app/_Logo +//= require app/_Grid +//= require app/_Engine +//= require app/_Engine.Particle +//= require app/_Engine.Particle.Fixed +//= require app/_Engine.Point +//= require app/_Engine.Point.Puller +//= require app/_Engine.Polygon +//= require app/_Engine.Polygon.Puller +//= require app/_Engine.Shape +//= require app/_Engine.Shape.Puller +//= require app/_Engine.Typewriter +//= require app/_Sidebar +//= require app/_Init diff --git a/website/source/assets/javascripts/application_2.js b/website/source/assets/javascripts/application_2.js deleted file mode 100644 index 15542d8dc..000000000 --- a/website/source/assets/javascripts/application_2.js +++ /dev/null @@ -1,25 +0,0 @@ -//= require jquery -//= require bootstrap - -//= require lib/String.substitute -//= require lib/Vector -//= require lib/Function.prototype.bind -//= require lib/Base -//= require lib/Chainable -//= require lib/dbg - -//= require docs -//= require app/Logo -//= require app/Grid -//= require app/Engine -//= require app/Engine.Particle -//= require app/Engine.Particle.Fixed -//= require app/Engine.Point -//= require app/Engine.Point.Puller -//= require app/Engine.Polygon -//= require app/Engine.Polygon.Puller -//= require app/Engine.Shape -//= require app/Engine.Shape.Puller -//= require app/Engine.Typewriter -//= require app/Sidebar -//= require app/Init diff --git a/website/source/assets/javascripts/html5shiv.js b/website/source/assets/javascripts/html5shiv.js deleted file mode 100755 index 784f221ca..000000000 --- a/website/source/assets/javascripts/html5shiv.js +++ /dev/null @@ -1,8 +0,0 @@ -/* - HTML5 Shiv v3.6.2pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed -*/ -(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); -a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x"; -c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| -"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",version:"3.6.2pre",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment(); -for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d #mq-test-1 { width: 42px; }',d.insertBefore(f,e),c=42===g.offsetWidth,d.removeChild(f),{matches:c,media:a}}}(document); - -/*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */ -(function(a){"use strict";function x(){u(!0)}var b={};a.respond=b,b.update=function(){},b.mediaQueriesSupported=a.matchMedia&&a.matchMedia("only all").matches,b.mediaQueriesSupported;var q,r,t,c=a.document,d=c.documentElement,e=[],f=[],g=[],h={},i=30,j=c.getElementsByTagName("head")[0]||d,k=c.getElementsByTagName("base")[0],l=j.getElementsByTagName("link"),m=[],n=function(){for(var b=0;l.length>b;b++){var c=l[b],d=c.href,e=c.media,f=c.rel&&"stylesheet"===c.rel.toLowerCase();d&&f&&!h[d]&&(c.styleSheet&&c.styleSheet.rawCssText?(p(c.styleSheet.rawCssText,d,e),h[d]=!0):(!/^([a-zA-Z:]*\/\/)/.test(d)&&!k||d.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&m.push({href:d,media:e}))}o()},o=function(){if(m.length){var a=m.shift();v(a.href,function(b){p(b,a.href,a.media),h[a.href]=!0,setTimeout(function(){o()},0)})}},p=function(a,b,c){var d=a.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),g=d&&d.length||0;b=b.substring(0,b.lastIndexOf("/"));var h=function(a){return a.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+b+"$2$3")},i=!g&&c;b.length&&(b+="/"),i&&(g=1);for(var j=0;g>j;j++){var k,l,m,n;i?(k=c,f.push(h(a))):(k=d[j].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,f.push(RegExp.$2&&h(RegExp.$2))),m=k.split(","),n=m.length;for(var o=0;n>o;o++)l=m[o],e.push({media:l.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:f.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},s=function(){var a,b=c.createElement("div"),e=c.body,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",e||(e=f=c.createElement("body"),e.style.background="none"),e.appendChild(b),d.insertBefore(e,d.firstChild),a=b.offsetWidth,f?d.removeChild(e):e.removeChild(b),a=t=parseFloat(a)},u=function(a){var b="clientWidth",h=d[b],k="CSS1Compat"===c.compatMode&&h||c.body[b]||h,m={},n=l[l.length-1],o=(new Date).getTime();if(a&&q&&i>o-q)return clearTimeout(r),r=setTimeout(u,i),void 0;q=o;for(var p in e)if(e.hasOwnProperty(p)){var v=e[p],w=v.minw,x=v.maxw,y=null===w,z=null===x,A="em";w&&(w=parseFloat(w)*(w.indexOf(A)>-1?t||s():1)),x&&(x=parseFloat(x)*(x.indexOf(A)>-1?t||s():1)),v.hasquery&&(y&&z||!(y||k>=w)||!(z||x>=k))||(m[v.media]||(m[v.media]=[]),m[v.media].push(f[v.rules]))}for(var B in g)g.hasOwnProperty(B)&&g[B]&&g[B].parentNode===j&&j.removeChild(g[B]);for(var C in m)if(m.hasOwnProperty(C)){var D=c.createElement("style"),E=m[C].join("\n");D.type="text/css",D.media=C,j.insertBefore(D,n.nextSibling),D.styleSheet?D.styleSheet.cssText=E:D.appendChild(c.createTextNode(E)),g.push(D)}},v=function(a,b){var c=w();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},w=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}();n(),b.update=n,a.addEventListener?a.addEventListener("resize",x,!1):a.attachEvent&&a.attachEvent("onresize",x)})(this); diff --git a/website/source/layouts/_footer.erb b/website/source/layouts/_footer.erb index 5b6335b59..009489759 100644 --- a/website/source/layouts/_footer.erb +++ b/website/source/layouts/_footer.erb @@ -67,7 +67,7 @@ window.onload = function(){ }()); -<%= javascript_include_tag "application_2" %> +<%= javascript_include_tag "application" %>