https://github.com/ncform/ncform-widget-seed
ncform widget seed project
https://github.com/ncform/ncform-widget-seed
Last synced: 4 days ago
JSON representation
ncform widget seed project
- Host: GitHub
- URL: https://github.com/ncform/ncform-widget-seed
- Owner: ncform
- Created: 2019-05-21T09:50:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T22:18:44.000Z (over 3 years ago)
- Last Synced: 2025-02-26T17:47:49.197Z (over 1 year ago)
- Language: JavaScript
- Size: 1.16 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nc-demo
nc-demo widget for [ncform](https://github.com/ncform/ncform)
## Install and basic usage
```
npm i -s nc-demo
```
**Add the widget**
```
import ncDemo from 'nc-demo';
Vue.use(vueNcform, { extComponents: {ncDemo} });
// or vm.$ncformAddWidget({name: 'ncDemo', widget: ncDemo});
```
**Use the widget**
```
{
"type": "object",
"properties": {
"name": {
"type": "string",
"widget": "nc-demo",
"widgetConfig": {
}
}
}
}
```
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
You only need to care about `src/components/index.vue`
### Compiles and minifies for production
```
npm run build
```
### Run your tests
```
npm run test
```
### Lints and fixes files
```
npm run lint
```
### Run your end-to-end tests
```
npm run test:e2e
```
### Run your unit tests
```
npm run test:unit
```