A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/dvajs/dva-cli below:

dvajs/dva-cli: The dva command line utility.

CLI for dva .

πŸ“’ dva-cli is deprecated, please use create-umi instead, checkout Create a Project with create-umi for detail.

Install, create and start.

# Install
$ npm install dva-cli -g

# Create app
$ dva new myapp

# Start app
$ cd myapp
$ npm start

We have 2 commands: new, init.

Create app with new directory.

$ dva new myapp
$ dva new myapp --demo
$ dva new myapp --no-install

Create app in current directory. It's options is the same as dva new.

.
β”œβ”€β”€ 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.

MIT


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4