
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
相比于dva-cli, vtx-cli做了如下改动:
Install, create and start.
# Install
$ npm install vtx-cli -g
# Create app
$ vtx new myapp
# Start app
$ cd myapp
$ npm start
We have 3 commands: new, init and generate(alias g).
Create app with new directory.
$ vtx new myapp
$ vtx new myapp --demo
$ vtx new myapp --no-install
--demo -- Generate a dead simple project for quick prototype--no-install -- Disable npm install after files createdCreate app in current directory. It's options is the same as vtx new.
Generate route, model and component.
$ vtx g route product-list
$ vtx g model products
$ vtx g component Editor
$ vtx g component Users/UserModal
$ vtx g component Header --no-css
# 普通打包
$ npm run build
# 无压缩debug模式打包
$ npm run buildD
# 添加版本号打包
$ npm run buildV
.
├── src # Source directory
├── assets # Store images, icons, ...
├── components # UI components
├── index.css # CSS for entry file
├── index.html # HTML for entry file
├── index.js # Enry file
├── models # Dva models
├── router.js # Router configuration
├── routes # Route components
├── services # Used for communicate with server
└── utils # Utils
└── request.js # A util wrapped dva/fetch
├── .editorconfig #
├── .eslintrc # Eslint config
├── .gitignore #
├── .roadhogrc # Roadhog config
└── package.json #
dva-cli use roadhog for build and server, view roadhog#Configuration (中文版) for details.
FAQs
vtx-cli
The npm package vtx-cli receives a total of 3 weekly downloads. As such, vtx-cli popularity was classified as not popular.
We found that vtx-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.