Skip to content

Commit 1da6dbd

Browse files
committed
docs: update readme
1 parent a9b2015 commit 1da6dbd

File tree

1 file changed

+34
-8
lines changed

1 file changed

+34
-8
lines changed

README.md

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,55 @@
1+
12
# vue-live
23

3-
## Project setup
4+
A lightweight playground for live editing VueJs code in the browser
5+
6+
[![Build Status](https://travis-ci.com/vue-styleguidist/vue-live.svg?branch=master)](https://travis-ci.com/vue-styleguidist/vue-live)
7+
[![NPM Version](https://img.shields.io/npm/v/vue-live.svg)](https://www.npmjs.com/package/vue-live) [![NPM Downloads](https://img.shields.io/npm/dm/vue-live.svg)](https://www.npmjs.com/package/vue-live)
8+
9+
----
10+
11+
## Usage
12+
13+
The simplest way to render components is as a VueJs template:
14+
15+
``` vue
16+
<template>
17+
<VueLive :code="`<date-picker />`" :components="{ DatePicker }">
18+
</template>
19+
20+
<script>
21+
import VueLive from "vue-live";
22+
import DatePicker from "vuejs-datepicker"
23+
24+
export default {
25+
components: { VueLive }
26+
}
27+
</script>
28+
```
29+
30+
Check out the demo for alernative syntaxes to write your showcases.
31+
32+
## How to contribute
433
```
534
yarn install
635
```
736

837
### Compiles and hot-reloads for development
938
```
10-
yarn run serve
39+
yarn serve
1140
```
1241

1342
### Compiles and minifies for production
1443
```
15-
yarn run build
44+
yarn build
1645
```
1746

1847
### Run your tests
1948
```
20-
yarn run test
49+
yarn test:unit
2150
```
2251

2352
### Lints and fixes files
2453
```
25-
yarn run lint
54+
yarn lint
2655
```
27-
28-
### Customize configuration
29-
See [Configuration Reference](https://cli.vuejs.org/config/).

0 commit comments

Comments
 (0)