Skip to content

Commit 760c169

Browse files
Rename + new version
1 parent da9afbc commit 760c169

File tree

5 files changed

+18
-13
lines changed

5 files changed

+18
-13
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11

2-
# vue-plotly.js
2+
# vue-plotly-js
33
[![GitHub open issues](https://img.shields.io/github/issues/David-Desmaisons/vue-plotly.js.svg)](https://github.com/David-Desmaisons/vue-plotly.js/issues)
44
[![CircleCI](https://circleci.com/gh/David-Desmaisons/vue-plotly.js.svg?style=shield)](https://circleci.com/gh/David-Desmaisons/vue-plotly.js)
55
[![codecov](https://codecov.io/gh/David-Desmaisons/vue-plotly.js/branch/master/graph/badge.svg)](https://codecov.io/gh/David-Desmaisons/vue-plotly.js)
6-
[![Npm version](https://img.shields.io/npm/v/vue-plotly.js.svg)](https://www.npmjs.com/package/vue-plotly.js)
6+
[![Npm version](https://img.shields.io/npm/v/vue-plotly.svg)](https://www.npmjs.com/package/vue-plotly)
77
[![MIT License](https://img.shields.io/github/license/David-Desmaisons/vue-plotly.js.svg)](https://github.com/David-Desmaisons/vue-plotly.js/blob/master/LICENSE)
88

99
## Usage
1010
```HTML
1111
<Plotly></Plotly>
1212
```
1313
```javascript
14-
import { Plotly } from 'vue-plotly.js'
14+
import { Plotly } from 'vue-plotly'
1515

1616
export default {
1717
components: {
@@ -23,7 +23,7 @@ export default {
2323

2424
## Installation
2525
```
26-
npm install vue-plotly.js
26+
npm install vue-plotly-js
2727
```
2828

2929
## Project setup

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "vue-plotly.js",
3-
"version": "0.2.0",
2+
"name": "vue-plotly",
3+
"version": "0.3.0",
44
"private": false,
55
"scripts": {
66
"serve": "vue-cli-service serve ./example/main.js --open",
7-
"build": "vue-cli-service build --name vue-plotly.js --entry ./src/index.js --target lib",
7+
"build": "vue-cli-service build --name vue-plotly --entry ./src/index.js --target lib",
88
"lint": "vue-cli-service lint",
99
"doc:build": "npx vuedoc.md --section API --output ./README.md ./src/components/Plotly.vue",
1010
"prepublishOnly": "npm run lint && npm run build",
@@ -50,6 +50,6 @@
5050
"component"
5151
],
5252
"license": "MIT",
53-
"main": "dist/vue-plotly.js.umd.js",
54-
"module": "dist/vue-plotly.js.common.min.js"
53+
"main": "dist/vue-plotly.umd.js",
54+
"module": "dist/vue-plotly.common.min.js"
5555
}

public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
77
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8-
<title>vue-plotly.js</title>
8+
<title>vue-plotly</title>
99
</head>
1010
<body>
1111
<noscript>
12-
<strong>We're sorry but vue-plotly.js doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
12+
<strong>We're sorry but vue-plotly doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
1313
</noscript>
1414
<div id="app"></div>
1515
<!-- built files will be auto injected -->

src/components/Plotly.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,12 @@ export default {
104104
}, {});
105105
},
106106
plot() {
107-
return Plotly.plot(this.$el, this.data, this.layout, this.getGraphOptions());
107+
return Plotly.plot(
108+
this.$el,
109+
this.data,
110+
this.layout,
111+
this.getGraphOptions()
112+
);
108113
},
109114
newPlot() {
110115
Plotly.react(this.$el, this.data, this.layout, this.getGraphOptions());

0 commit comments

Comments
 (0)