From 38342706065534f6babc8de222f770a77527006f Mon Sep 17 00:00:00 2001 From: JJ Naughton Date: Tue, 12 Jul 2016 14:46:09 -0700 Subject: [PATCH] fixed build/dist process to avoid uglify issues (#1) * fixed build/dist process to avoid uglify issues * Updating tests, adding git commit hook --- CHANGELOG.md | 3 + CONTRIBUTING.md | 4 +- demo/dist/main.js | 12 +- index.js | 4 +- lib/dist/ArcPath.js | 205 +++++++++++++ lib/dist/Arcs.js | 219 ++++++++++++++ lib/dist/DonutChart.js | 282 ++++++++++++++++++ lib/dist/DonutInnerText.js | 125 ++++++++ lib/dist/Legend.js | 190 ++++++++++++ lib/dist/LegendItem.js | 156 ++++++++++ lib/{ArcPath.jsx => src/ArcPath.js} | 0 lib/{Arcs.jsx => src/Arcs.js} | 2 +- lib/{DonutChart.jsx => src/DonutChart.js} | 6 +- .../DonutInnerText.js} | 0 lib/{Legend.jsx => src/Legend.js} | 2 +- lib/{LegendItem.jsx => src/LegendItem.js} | 0 package.json | 10 +- tests/ArcPath.spec.js | 2 +- tests/Arcs.spec.js | 2 +- tests/DonutChart.spec.js | 2 +- tests/DonutInnerText.spec.js | 2 +- tests/Legend.spec.js | 2 +- tests/LegendItem.spec.js | 2 +- 23 files changed, 1207 insertions(+), 25 deletions(-) create mode 100644 lib/dist/ArcPath.js create mode 100644 lib/dist/Arcs.js create mode 100644 lib/dist/DonutChart.js create mode 100644 lib/dist/DonutInnerText.js create mode 100644 lib/dist/Legend.js create mode 100644 lib/dist/LegendItem.js rename lib/{ArcPath.jsx => src/ArcPath.js} (100%) rename lib/{Arcs.jsx => src/Arcs.js} (99%) rename lib/{DonutChart.jsx => src/DonutChart.js} (98%) rename lib/{DonutInnerText.jsx => src/DonutInnerText.js} (100%) rename lib/{Legend.jsx => src/Legend.js} (98%) rename lib/{LegendItem.jsx => src/LegendItem.js} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82b9281..8ea0d74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,3 +2,6 @@ ## 1.0.0: * Initial release with demo + +## 1.0.1: +* Adding lib dist build process to fix importing/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1cf6ca4..cea699c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -47,7 +47,9 @@ $ npm run lint ## NPM commands * `npm start` starts the webpack dev server for the demo -* `npm run build` builds the `demo/dist` with webpack +* `npm run build:lib` builds the `lib/dist` with webpack +* `npm run build:demo` builds the `demo/dist` with webpack +* `npm run build` builds both * `npm run lint` runs ESLint checks against the source * `npm run test` runs Tape test suite * `npm run publish` publishes to GH Pages diff --git a/demo/dist/main.js b/demo/dist/main.js index bebdb93..2347dfc 100644 --- a/demo/dist/main.js +++ b/demo/dist/main.js @@ -1,6 +1,6 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}([function(e,t,n){e.exports=n(131)},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,u){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,u],c=0;s=new Error(t.replace(/%s/g,function(){return l[c++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}e.exports=r},function(e,t){"use strict";function n(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r1){for(var v=Array(m),g=0;g1){for(var b=Array(y),C=0;C]/;e.exports=r},function(e,t,n){"use strict";var r,o=n(6),i=n(66),a=/^[ \r\n\t\f]/,u=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(76),l=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild.childNodes,o=0;o";for(t.style.display="none",n(155).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("