From c8aca382335acb47d0c108f710ec454624a00c75 Mon Sep 17 00:00:00 2001 From: Solomon Hawk Date: Tue, 10 Mar 2015 23:06:49 -0600 Subject: [PATCH 1/3] [add] *.map and node_modules to .gitignore --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 75ca02b..42c20b9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ +*.map + example/example.build.js example/example.build.js.map + +node_modules From abaf8fd71c00e98f6e48ea45965cd85922d7a0e4 Mon Sep 17 00:00:00 2001 From: Solomon Hawk Date: Tue, 10 Mar 2015 23:09:44 -0600 Subject: [PATCH 2/3] [update] package.json dependencies - update to react 0.13 - update 6to5 to babel --- package.json | 23 +++++++++++------------ webpack.config.js | 7 ++++--- webpack.example.config.js | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index fc198c6..12f590a 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "material design" ], "jest": { - "scriptPreprocessor": "/node_modules/6to5-jest", + "scriptPreprocessor": "/node_modules/babel-jest", "unmockedModulePathPatterns": [ "/node_modules/react" ], @@ -28,19 +28,18 @@ "author": "Nate Hunzaker", "license": "MIT", "devDependencies": { - "6to5": "^3.1.1", - "6to5-jest": "^3.0.0", - "6to5-loader": "^3.0.0", - "6to5-runtime": "^3.1.1", - "envify": "^3.2.0", - "jest-cli": "^0.1.18", - "react": "^0.12.2", - "react-tools": "^0.12.2", + "babel-core": "^4.7.8", + "babel-jest": "^4.0.0", + "babel-loader": "^4.1.0", + "envify": "^3.3.0", + "jest-cli": "^0.4.0", + "react": "^0.13.0", + "react-tools": "^0.13.0", "transform-loader": "^0.2.1", - "webpack": "^1.4.13", - "webpack-dev-server": "^1.6.6" + "webpack": "^1.7.2", + "webpack-dev-server": "^1.7.0" }, "peerDependencies": { - "react": ">= 0.12.x" + "react": ">= 0.13.x" } } diff --git a/webpack.config.js b/webpack.config.js index 667b195..1530be2 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -22,15 +22,16 @@ module.exports = { module: { preLoaders: [ { - test : /\.jsx*$/, - loader : 'transform?envify' + test : /\.jsx*$/, + loader : 'transform?envify' } ], + loaders: [ { test : /\.jsx*$/, exclude : /node_modules/, - loader : '6to5?experimental' + loader : 'babel-loader?experimental' }, { test : /\.json$/, diff --git a/webpack.example.config.js b/webpack.example.config.js index a80e919..38db76e 100644 --- a/webpack.example.config.js +++ b/webpack.example.config.js @@ -21,7 +21,7 @@ module.exports = { { test : /\.jsx*$/, exclude : /node_modules/, - loader : '6to5?experimental' + loader : 'babel-loader?experimental' }, { test : /\.json$/, From 6139627020db762ac6550e1eec44c027ba38579c Mon Sep 17 00:00:00 2001 From: Solomon Hawk Date: Tue, 10 Mar 2015 23:13:08 -0600 Subject: [PATCH 3/3] [update] dist --- dist/ink.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/ink.js b/dist/ink.js index fe00419..5df822e 100644 --- a/dist/ink.js +++ b/dist/ink.js @@ -1 +1 @@ -module.exports=function(t){function e(n){if(o[n])return o[n].exports;var i=o[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){"use strict";var n=Object.assign||function(t){for(var e=1;e0?Date.now()-t.mouseUp:0}function r(t){var e=t.duration,o=t.radius,r=.85*s(n(t),0,o,e),a=.15*s(i(t),0,o,e),h=.02*o*u(Date.now()/e);return c(0,r+a+h)}var s=o(3),a=Math.sqrt(2),u=Math.cos,c=Math.max,h=Math.min;t.exports={getMaxRadius:function(t,e,o){return h(.5*c(t,e),o)},getBlotOpacity:function(t,e){return s(i(t),e,-e,t.duration)},getBlotOuterOpacity:function(t,e){return h(this.getBlotOpacity(t,e),s(n(t),0,.3,3*t.duration))},getBlotShiftX:function(t,e,o){return h(1,r(t)/e*2/a)*(o/2-t.x)},getBlotShiftY:function(t,e,o){return h(1,r(t)/e*2/a)*(o/2-t.y)},getBlotScale:function(t){return r(t)/t.radius}}},function(t){"use strict";t.exports={borderRadius:"inherit",height:"100%",left:0,position:"absolute",top:0,width:"100%"}},function(t){"use strict";t.exports=function(t,e,o,n){return o*((t=t/n-1)*t*t*t*t+1)+e}},function(t){"use strict";var e=!1;"undefined"!=typeof window&&(e="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch),t.exports=e},function(t){"use strict";t.exports=function(t){var e=window.devicePixelRatio||1,o=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return e/o}},function(t){"use strict";function e(t,e){for(var o in t)if(this.props[o]!==t[o])return!0;for(var n in e)if(this.state[n]!==e[n])return!0;return!1}t.exports=e},function(t,e,o){"use strict";var n=o(1),i=function(t){var e=t.mouseUp,o=t.duration;return!e||Date.now()-en;n++)t.call(o,e[n])},play:function(){o||(o=!0,s.update())},stop:function(){o=!1,cancelAnimationFrame(r)},getTotalOpacity:function(t){for(var o=0,i=0,r=e.length;r>i;i++)o+=n.getBlotOuterOpacity(e[i],t);return o},update:function(){e=e.filter(i),e.length?(r=requestAnimationFrame(s.update),t()):s.stop()},add:function(t){e.push(t),s.play()},release:function(t){for(var o=e.length-1;o>=0;o--)if(!e[o].mouseUp)return e[o].mouseUp=t}};return s}},function(t){t.exports=require("react")}]); \ No newline at end of file +module.exports=function(t){function e(n){if(o[n])return o[n].exports;var i=o[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){"use strict";var n=Object.assign||function(t){for(var e=1;e0?Date.now()-t.mouseUp:0}function r(t){var e=t.duration,o=t.radius,r=.85*a(n(t),0,o,e),s=.15*a(i(t),0,o,e),l=.02*o*u(Date.now()/e);return c(0,r+s+l)}var a=o(3),s=Math.sqrt(2),u=Math.cos,c=Math.max,l=Math.min;t.exports={getMaxRadius:function(t,e,o){return l(.5*c(t,e),o)},getBlotOpacity:function(t,e){return a(i(t),e,-e,t.duration)},getBlotOuterOpacity:function(t,e){return l(this.getBlotOpacity(t,e),a(n(t),0,.3,3*t.duration))},getBlotShiftX:function(t,e,o){return l(1,r(t)/e*2/s)*(o/2-t.x)},getBlotShiftY:function(t,e,o){return l(1,r(t)/e*2/s)*(o/2-t.y)},getBlotScale:function(t){return r(t)/t.radius}}},function(t){"use strict";t.exports={borderRadius:"inherit",height:"100%",left:0,position:"absolute",top:0,width:"100%"}},function(t){"use strict";t.exports=function(t,e,o,n){return o*((t=t/n-1)*t*t*t*t+1)+e}},function(t){"use strict";var e=!1;"undefined"!=typeof window&&(e="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch),t.exports=e},function(t){"use strict";t.exports=function(t){var e=window.devicePixelRatio||1,o=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return e/o}},function(t){"use strict";function e(t,e){for(var o in t)if(this.props[o]!==t[o])return!0;for(var n in e)if(this.state[n]!==e[n])return!0;return!1}t.exports=e},function(t,e,o){"use strict";var n=o(1),i=function(t){var e=t.mouseUp,o=t.duration;return!e||Date.now()-en;n++)t.call(o,e[n])},play:function(){o||(o=!0,a.update())},stop:function(){o=!1,cancelAnimationFrame(r)},getTotalOpacity:function(t){for(var o=0,i=0,r=e.length;r>i;i++)o+=n.getBlotOuterOpacity(e[i],t);return o},update:function(){e=e.filter(i),e.length?(r=requestAnimationFrame(a.update),t()):a.stop()},add:function(t){e.push(t),a.play()},release:function(t){for(var o=e.length-1;o>=0;o--)if(!e[o].mouseUp)return e[o].mouseUp=t}};return a}},function(t){t.exports=require("react")}]); \ No newline at end of file