Skip to content

Commit af5d748

Browse files
committed
Convert to NPM package.
1 parent bdd11ee commit af5d748

File tree

11 files changed

+86
-438
lines changed

11 files changed

+86
-438
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Marty Wallace
3+
Copyright (c) 2017 Marty Wallace
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
# vue-keyboard
22

3-
A simple virtual keyboard for Vue.js.
3+
A virtual keyboard for Vue 2.
44

55
## Install:
66

7-
This component is available through [Bower](https://bower.io/search/?q=vue-keyboard):
8-
9-
$ bower install --save vue-keyboard
7+
$ npm install --save vue-keyboard
108

119
## Usage:
1210

13-
Simply add the `keyboard` component to your Vue application:
14-
1511
```
1612
<keyboard layouts="abc123|xyz456|{space:space}"></keyboard>
1713
```
@@ -64,17 +60,23 @@ Here is an example application containing a `keyboard` component:
6460
JavaScript:
6561

6662
```
67-
var app = new Vue({
68-
el: 'main',
63+
import Vue from 'vue';
64+
import keyboard from 'vue-keyboard';
65+
66+
new Vue({
67+
el: '#app',
68+
components: { keyboard },
69+
6970
data: {
7071
input: '',
7172
},
73+
7274
methods: {
73-
changed: function(value) {
75+
changed(value) {
7476
console.log('Value ' + value);
7577
},
7678
77-
custom: function(keyboard) {
79+
custom(keyboard) {
7880
console.log(keyboard.value);
7981
}
8082
}

bower.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

dist/vue-keyboard.css

Lines changed: 0 additions & 24 deletions
This file was deleted.

dist/vue-keyboard.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

gulpfile.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)