Add index file for npm package

This commit is contained in:
Jakub Juszczak
2016-07-03 12:06:58 +02:00
parent 39de4195f6
commit a428b51741
2 changed files with 18 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
"description": "Vue wrapper for chart.js",
"author": "Jakub Juszczak <jakub@nextindex.de>",
"private": true,
"main": "src/index.js",
"scripts": {
"dev": "node build/dev-server.js",
"build": "node build/build.js",

17
src/index.js Normal file
View File

@@ -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