Skip to content

Commit

Permalink
🚚rename plugin name
Browse files Browse the repository at this point in the history
  • Loading branch information
宋慧武 committed Apr 7, 2019
1 parent 1c1b054 commit 2f3ccae
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# vue-track
# v-track

## Project setup
```
Expand Down
4 changes: 2 additions & 2 deletions build/rollup.config.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { uglify } from "rollup-plugin-uglify";

const config = Object.assign({}, base, {
output: {
name: "vue-track",
file: "dist/vue-track.min.js",
name: "v-track",
file: "dist/v-track.min.js",
format: "umd"
}
});
Expand Down
4 changes: 2 additions & 2 deletions build/rollup.config.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import base from "./rollup.config.base";

const config = Object.assign({}, base, {
output: {
name: "vue-track",
file: "dist/vue-track.esm.js",
name: "v-track",
file: "dist/v-track.esm.js",
format: "es"
}
});
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "vue-track",
"name": "v-track",
"version": "0.1.0",
"description": "一个基于Vue指令的埋点插件",
"main": "dist/vue-track.min.js",
"module": "dist/vue-track.esm.js",
"main": "dist/v-track.min.js",
"module": "dist/v-track.esm.js",
"scripts": {
"serve": "vue-cli-service serve",
"build": "npm run build:es && npm run build:browser",
"build:es": "rollup --config build/rollup.config.es.js",
"build:browser": "rollup --config build/rollup.config.browser.js && npm run size",
"prepublishOnly": "npm run build",
"size": "gzip-size dist/vue-track.min.js",
"size": "gzip-size dist/v-track.min.js",
"lint": "vue-cli-service lint",
"test:unit": "vue-cli-service test:unit"
},
"repository": {
"type": "git",
"url": "https://github.com/l-hammer/vue-track.git"
"url": "https://github.com/l-hammer/v-track.git"
},
"keywords": [
"vue",
Expand Down
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>vue-track</title>
<title>v-track</title>
</head>
<body>
<noscript>
<strong>We're sorry but vue-track doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong>We're sorry but v-track doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: 宋慧武
* @Date: 2019-03-06 17:49:29
* @Last Modified by: 宋慧武
* @Last Modified time: 2019-04-07 12:52:04
* @Last Modified time: 2019-04-07 22:12:07
*/
import VisMonitor from "./utils/vis-monitor";

Expand Down Expand Up @@ -315,7 +315,7 @@ function unbind(el) {
el.$visMonitor && el.$visMonitor.destroy();
}

export default class VueTrack {
export default class VTrack {
constructor() {
this.installed = false;
}
Expand Down

0 comments on commit 2f3ccae

Please sign in to comment.