diff --git a/package.json b/package.json index 8560484a..ff047c7c 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Vue wrapper for chart.js", "author": "Jakub Juszczak ", "private": true, + "main": "src/index.js", "scripts": { "dev": "node build/dev-server.js", "build": "node build/build.js", diff --git a/src/index.js b/src/index.js new file mode 100644 index 00000000..edf86a93 --- /dev/null +++ b/src/index.js @@ -0,0 +1,17 @@ +import Bar from './BaseCharts/Bar' +import Doughnut from './BaseCharts/Doughnut' +import Line from './BaseCharts/Line' +import Pie from './BaseCharts/Pie' +import PolarArea from './BaseCharts/PolarArea' +import Radar from './BaseCharts/Radar' + +const VueCharts = { + Bar, + Doughnut, + Line, + Pie, + PolarArea, + Radar +} + +module.exports = VueCharts