0.10.1 ⢠Published 7 years ago
dva-cli v0.10.1
dva-cli
CLI for dva .
š¢ dva-cli is deprecated, please use create-umi instead, checkout Create a Project with create-umi for detail.
Getting Started
Install, create and start.
# Install
$ npm install dva-cli -g
# Create app
$ dva new myapp
# Start app
$ cd myapp
$ npm startCommands
We have 2 commands: new, init.
dva new options
Create app with new directory.
Usage Examples
$ dva new myapp
$ dva new myapp --demo
$ dva new myapp --no-installoptions
--demo-- Generate a dead simple project for quick prototype--no-install-- Disable npm install after files created
dva init options
Create app in current directory. It's options is the same as dva new.
Generated File Tree
.
āāā 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 #Configuration
dva-cli use roadhog for build and server, view roadhog#Configuration (äøęē) for details.
License
0.10.1
7 years ago
0.10.0
7 years ago
1.0.0-beta.4
8 years ago
1.0.0-beta.3
8 years ago
1.0.0-bea.2
8 years ago
1.0.0-bea.1
8 years ago
0.9.2
8 years ago
0.9.1
8 years ago
0.9.0
8 years ago
0.8.2
9 years ago
0.8.1
9 years ago
0.8.0
9 years ago
0.7.10
9 years ago
0.7.9
9 years ago
0.7.8
9 years ago
0.7.7
9 years ago
0.7.6
9 years ago
0.7.5
9 years ago
0.7.4
9 years ago
0.7.3
9 years ago
0.7.2
9 years ago
0.7.1
9 years ago
0.7.0
9 years ago
0.6.0
9 years ago
0.5.0
9 years ago
0.4.3
10 years ago
0.4.2
10 years ago
0.4.1
10 years ago
0.4.0
10 years ago
0.3.0
10 years ago
0.2.0
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago