An open API service indexing awesome lists of open source software.

https://github.com/richplastow/vvpcs-initial-test

Test whether a Vue component makes a good node_module
https://github.com/richplastow/vvpcs-initial-test

Last synced: 3 months ago
JSON representation

Test whether a Vue component makes a good node_module

Awesome Lists containing this project

README

        

# vvpcs-initial-test

Test whether a Vue component makes a good node_module.

# Usage

In `vue-veux-pug-coffee-stylus/src/components/Dev.vue`:

```

div#dev
h1 Dev
h1 Count: {{ state.count }}
button(@click="incrCount") Increment
initial-test
foobar

import store from './Store'
import InitialTest from 'vvpcs-initial-test' # defined by `main` in package.json
import FooBar from 'vvpcs-initial-test/FooBar'
export default
name: 'Dev'
data: () ->
state: store.state
methods:
incrCount: ->
store.commit 'increment'
components:
'initial-test': InitialTest
'foobar': FooBar

h1, h2
font-weight bold

```