Ant Design Pro is based on umi to frame scaffolding, and we can initialize and start scaffolding with a simple operation.
We provide create umi to quickly initialize scaffolding.
# use by npm npx create-umi myapp # use by yarn yarn create umi myapp
You can also choose whether to get all the chunks.
Select the version of antd, 3 or 4.
A successful scaffold log.
The development can begin after the initialization of the scaffolding is successful, and we have provided some commands to assist in the development.
Running this script starts the service and automatically opens the default browser to show your page. When you re-edit the code, the page will also refresh automatically.
Running this script will compile your project, and you can find the compiled files in the dist directory of the project for deployment.
If you need to deploy, you can review the [deployment]((/docs/deploy).
The analyze script does the same thing as build, but he opens a page showing your dependency information. If you need to optimize performance and package size, you need it.
We offer a range of lint scripts, including TypeScript, less, css, md files. You can use this script to see what problems your code has. In commit we automatically run the related lint.
Same as lint, but the lint error is fixed automatically.
This script will attempt to remove all i18n code from the project, which is not good for complex run-time code and is used with caution.
more cli https://umijs.org/docs/cli