File tree Expand file tree Collapse file tree 1 file changed +34
-8
lines changed Expand file tree Collapse file tree 1 file changed +34
-8
lines changed Original file line number Diff line number Diff line change 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```
534yarn 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/ ) .
You can’t perform that action at this time.
0 commit comments