0.1.1 • Published 5 years ago
vue-cli-plugin-addnew v0.1.1
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-addnew
Usage
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.js
Todo
- Add the
addNewView
feature - Add functions to generate view and component with
args
to package.json - Write contributing guidelines
- Add support for typescript components
0.1.1
5 years ago