vue-cli-plugin-addnew
v0.1.1
Published
Adds [component || view] to project
Maintainers
Readme
Vue CLI Plugin addnew
Installation
cd ${PROJECT_DIR}
# Invoke manually
yarn add --dev vue-cli-plugin-addnew ; vue invoke vue-cli-plugin-addnew
# Automatically invoke the plugin
vue add vue-cli-plugin-addnewUsage
vue invoke vue-cli-plugin \
--action 'addNew[Component|View]' \
# For components
--componentName '[componentName]' \
--componentFileType '[js | vue]' \ # Filetype of component to add
# For views
--viewName '[viewName]' \
--addViewToRouter [true | false] # Adds view route object and import to
# ./src/router.jsTodo
- [x] Add the
addNewViewfeature - [ ] Add functions to generate view and component with
argsto package.json - [ ] Write contributing guidelines
- [ ] Add support for typescript components
