vue-chart-js
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "vue-chart-js", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Chart.js for VueJs.", | ||
"author": "Kevin Ongko", | ||
"main": "src/vue-chart-js.vue", | ||
"main": "dist/vue-chart-js.min.js", | ||
"scripts": { | ||
"lint": "./node_modules/.bin/eslint --ext .js,.vue src", | ||
"build": "./node_modules/.bin/webpack --hide-modules -p --progress" | ||
}, | ||
"repository": { | ||
@@ -25,3 +29,26 @@ "type": "git", | ||
"chart.js": "^2.6.0" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^6.25.0", | ||
"babel-loader": "^7.1.1", | ||
"babel-preset-latest": "^6.24.1", | ||
"clean-webpack-plugin": "^0.1.16", | ||
"css-loader": "^0.28.4", | ||
"eslint": "4.3.0", | ||
"eslint-plugin-vue": "3.10.0", | ||
"vue-loader": "^13.0.4", | ||
"vue-template-compiler": "^2.4.2", | ||
"webpack": "^3.4.1" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"latest" | ||
] | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:vue/recommended" | ||
] | ||
} | ||
} |
@@ -16,2 +16,34 @@ # vue-chart-js | ||
### Install as Component | ||
```js | ||
import Vue from 'vue' | ||
import VueChart from 'vue-chart-js' | ||
export default { | ||
name: 'App', | ||
components: { | ||
VueChart | ||
} | ||
} | ||
``` | ||
### Install as Plugin | ||
```js | ||
import Vue from 'vue' | ||
import VueChart from 'vue-chart-js' | ||
Vue.use(VueChart) | ||
``` | ||
### Install via CDN | ||
```html | ||
<script src="https://unpkg.com/vue"></script> | ||
<script src="https://unpkg.com/vue-chart-js"></script> | ||
<script> | ||
Vue.use(Vuechart.default) | ||
</script> | ||
``` | ||
## Usage | ||
@@ -18,0 +50,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
540801
9
51
97
0
10