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
- Host: GitHub
- URL: https://github.com/richplastow/vvpcs-initial-test
- Owner: richplastow
- License: mit
- Created: 2017-10-14T13:21:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-14T14:22:44.000Z (over 7 years ago)
- Last Synced: 2025-01-06T01:10:48.685Z (5 months ago)
- Language: Vue
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
foobarimport 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': FooBarh1, h2
font-weight bold```