File tree Expand file tree Collapse file tree 5 files changed +31
-23
lines changed Expand file tree Collapse file tree 5 files changed +31
-23
lines changed Original file line number Diff line number Diff line change
1
+ build
2
+ src
3
+ config
4
+ static
5
+ .babelrc
6
+ .gitignore
7
+ yarn.lock
8
+ test
9
+ index.html
Original file line number Diff line number Diff line change 1
1
# vue-button
2
2
3
- > Button component for Vue.js
3
+ > Button component for Vue.js v2.0.1+.
4
4
5
- ## Install / Usage
6
-
7
- NPM Based WorkFlows
5
+ ## Installation
8
6
7
+ ### NPM (Recommended)
9
8
``` bash
10
9
$ npm install vue-button
11
10
```
12
-
11
+ ### manual
12
+ Just download ` dist/vue-button.js ` and include it in your HTML file:
13
13
``` html
14
- <template >
15
- <div id =" my-app" >
16
- <v-button >
17
- Hello
18
- </v-button >
19
- </div >
20
- </template >
21
-
22
- <script >
14
+ <script src =" path/to/vue-button/dist/vue-button.js" ></script >
15
+ ```
16
+ ## Usage
17
+ ``` html
18
+ <v-button >
19
+ Hello
20
+ </v-button >
21
+ ```
22
+ ## ES Modules with NPM & vue-loader (Recommended)
23
+ ``` js
24
+ import Vue from ' Vue'
23
25
import VueButton from ' vue-button'
24
- export default {
25
- components: {
26
- VueButton
27
- }
28
- }
29
- </script >
26
+
27
+ // register component to use
28
+ Vue .component (' v-button' , VueButton)
30
29
```
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ console.log(
18
18
var spinner = ora ( 'building for production...' )
19
19
spinner . start ( )
20
20
21
- var assetsPath = path . join ( config . build . assetsRoot , config . build . assetsSubDirectory )
21
+ var assetsPath = path . join ( config . build . assetsRoot )
22
22
rm ( '-rf' , assetsPath )
23
23
mkdir ( '-p' , assetsPath )
24
24
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-button" ,
3
- "version" : " 0.0.10 " ,
4
- "description" : " Button component for Vue.js" ,
3
+ "version" : " 0.0.12 " ,
4
+ "description" : " > Button component for Vue.js v2.0.1+. " ,
5
5
"author" : " steven5538 <steven5538@gmail.com>" ,
6
6
"keywords" : [
7
7
" vue" ,
You can’t perform that action at this time.
0 commit comments