From a428b517416d5f9e5e97c02d9e51e03cbcc7c369 Mon Sep 17 00:00:00 2001 From: Jakub Juszczak Date: Sun, 3 Jul 2016 12:06:58 +0200 Subject: [PATCH] Add index file for npm package --- package.json | 1 + src/index.js | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/index.js 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