zwyv v1.0.4
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