
Security News
/Company News
Socket Is Sponsoring Composer and Packagist
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.
相比于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 28 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.

Security News
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.

Research
/Security News
Benign-looking npm packages split malicious functionality across a dependency chain that deploys a cross-platform RAT targeting Alibaba developers.

Research
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.