Skip to content

Commit

Permalink
refactor(readme): move upgrade isntructions after install
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll committed May 22, 2019
1 parent 988540f commit cefed57
Showing 1 changed file with 27 additions and 33 deletions.
60 changes: 27 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,34 @@ which includes following breaking changes:
* Added a beforeDateInput slot.
* uses moment.js for translations (**breaking change v2+**) see [momentjs / translations](#momentjs-and-translations)
* dropped internal formatting rules and also used moment.js (**breaking change 2.x+**) see [momentjs / formatting](#momentjs-and-formatting)
To install this fork, use:

## Demo

To view a demo online:
https://codesandbox.io/s/vue-datepicker-demo-82x48

To view demo examples locally clone the repo and run `npm install && npm run serve`

## Install

``` bash
npm install @hokify/vuejs-datepicker
```
npm install --save @hokify/vuejs-datepicker
or
``` bash
yarn add @hokify/vuejs-datepicker
```

``` javascript
import Datepicker from '@hokify/vuejs-datepicker';

export default {
// ...
components: {
Datepicker
}
// ...
}
```

## Upgrade
Expand Down Expand Up @@ -59,37 +84,6 @@ Examples:
| dsu MMM yyyy | Do MMM YYYY | 12th Feb 2016 |
| D dsu MMM yyyy | ddd Do MMM YYYY | Sat 12th Feb 2016 |


## Demo

To view a demo online:
https://codesandbox.io/s/vue-datepicker-demo-82x48

To view demo examples locally clone the repo and run `npm install && npm run serve`

## Install

``` bash
npm install @hokify/vuejs-datepicker
```
or
``` bash
yarn add @hokify/vuejs-datepicker
```

``` javascript
import Datepicker from '@hokify/vuejs-datepicker';

export default {
// ...
components: {
Datepicker
}
// ...
}
```


### regarding CSS
As this bundle is also useable for SSR rendering, you have to take care of css yourself.
(see also https://github.com/vuejs/rollup-plugin-vue/issues/266)
Expand Down

0 comments on commit cefed57

Please sign in to comment.