0.10.1 ā¢ Published 5 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 start
Commands
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-install
options
--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
5 years ago
0.10.0
5 years ago
1.0.0-beta.4
6 years ago
1.0.0-beta.3
6 years ago
1.0.0-bea.2
6 years ago
1.0.0-bea.1
6 years ago
0.9.2
6 years ago
0.9.1
6 years ago
0.9.0
6 years ago
0.8.2
7 years ago
0.8.1
7 years ago
0.8.0
7 years ago
0.7.10
7 years ago
0.7.9
7 years ago
0.7.8
7 years ago
0.7.7
7 years ago
0.7.6
7 years ago
0.7.5
7 years ago
0.7.4
7 years ago
0.7.3
7 years ago
0.7.2
7 years ago
0.7.1
7 years ago
0.7.0
7 years ago
0.6.0
8 years ago
0.5.0
8 years ago
0.4.3
8 years ago
0.4.2
8 years ago
0.4.1
8 years ago
0.4.0
8 years ago
0.3.0
8 years ago
0.2.0
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago