1.0.4 • Published 3 years ago

zwyv v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

zwyv-cli

This is a simple scaffold based on Vue encapsulation. Its main functions include contracted routing, global components, dynamic state management, and some simple commands to create pages and components.

  npm i -g zwyv

Create Project

 zwyv create xxx

Create Component

  zwyv cc demo

zwyv cc demo For the components created by this command, the default route is 'src/components'. You can also change the path. Just add -d src/xxx after it. Example: zwyv cc ... -d src/...

Create Page

  zwyv cp demo

This command can create pages, automatically generate routing files and CSS files, and dynamically load routes. The default path is 'src/pages'. If you need to change the path, add -d src/pages/list after it, for example: zwyv cp ... -d src/...

Create Store

 zwyv cs global

Create vuex and manage the status without manual import. The created files are imported automatically. The default path is src/store/module. If you need to change the path, add -d src/... after the command,example: zwyv cs ... -d src/...

Other Commands

  zwyv --version
  zwyv --help
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago