Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giuliano1993/make-vue-component
https://github.com/giuliano1993/make-vue-component
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/giuliano1993/make-vue-component
- Owner: Giuliano1993
- Created: 2023-10-15T07:49:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-08T18:57:26.000Z (about 1 year ago)
- Last Synced: 2024-10-19T07:02:48.200Z (27 days ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Make-vue-component
This is a small package born to not always have to write from scratch or copy paste new vue components.
To run it, in your root just run```bash
npx make-vue-component componentName
```and you will have a brand new vue component in you `src/components` foleder.
## Options
### Component Name `required`
The component name is the name of the file and of the component.
You can also create it into nested folder, you just need to write the path from the components, for example```bash
npx make-vue-component admin/componentName
```will create the new component in the `src/components/admin` folder
### API
The created components use by default the options API; if you wish to use the composition API you just need to add the `-c` flag
i.e.
```bash
npx make-vue-component -c componentName
```