从任何 create-* 初学者工具包创建新项目。
yarn create []
This command is a shorthand that helps you do two things at once:
- 全局安装
create-<starter-kit-package>,或更新包到最新版本(如果已存在) - Run the executable located in the
binfield of the starter kit’spackage.json, forwarding any<args>to it
例如,yarn create react-app my-app等同于:
1. $ yarn global add create-react-app
2. $ create-react-app my-app
For more information, check out the relevant blog entry.
