vue-cli-plugin-addnew

0.1.1 • Public • Published

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

  • [x] Add the addNewView feature
  • [ ] Add functions to generate view and component with args to package.json
  • [ ] Write contributing guidelines
  • [ ] Add support for typescript components

Package Sidebar

Install

npm i vue-cli-plugin-addnew

Weekly Downloads

10

Version

0.1.1

License

MIT

Unpacked Size

9.3 kB

Total Files

29

Last publish

Collaborators

  • ashellwig