Skip to content

Commit

Permalink
Convert to NPM package.
Browse files Browse the repository at this point in the history
  • Loading branch information
martywallace committed Mar 13, 2017
1 parent bdd11ee commit af5d748
Show file tree
Hide file tree
Showing 11 changed files with 86 additions and 438 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Marty Wallace
Copyright (c) 2017 Marty Wallace

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
# vue-keyboard

A simple virtual keyboard for Vue.js.
A virtual keyboard for Vue 2.

## Install:

This component is available through [Bower](https://bower.io/search/?q=vue-keyboard):

$ bower install --save vue-keyboard
$ npm install --save vue-keyboard

## Usage:

Simply add the `keyboard` component to your Vue application:

```
<keyboard layouts="abc123|xyz456|{space:space}"></keyboard>
```
Expand Down Expand Up @@ -64,17 +60,23 @@ Here is an example application containing a `keyboard` component:
JavaScript:

```
var app = new Vue({
el: 'main',
import Vue from 'vue';
import keyboard from 'vue-keyboard';
new Vue({
el: '#app',
components: { keyboard },
data: {
input: '',
},
methods: {
changed: function(value) {
changed(value) {
console.log('Value ' + value);
},
custom: function(keyboard) {
custom(keyboard) {
console.log(keyboard.value);
}
}
Expand Down
15 changes: 0 additions & 15 deletions bower.json

This file was deleted.

24 changes: 0 additions & 24 deletions dist/vue-keyboard.css

This file was deleted.

1 change: 0 additions & 1 deletion dist/vue-keyboard.js

This file was deleted.

26 changes: 0 additions & 26 deletions gulpfile.js

This file was deleted.

Loading

0 comments on commit af5d748

Please sign in to comment.