You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

create.md 873 B

3 years ago
123456789101112131415161718192021222324252627
  1. ---
  2. id: docs_cli_create
  3. guide: docs_cli
  4. layout: guide
  5. ---
  6. {% include vars.html %}
  7. <p class="lead">Creates new projects from any <code>create-*</code> starter kits.</p>
  8. ##### `yarn create <starter-kit-package> [<args>]` <a class="toc" id="toc-yarn-create" href="#toc-yarn-create"></a>
  9. This command is a shorthand that helps you do two things at once:
  10. - Install `create-<starter-kit-package>` globally, or update the package to the
  11. latest version if it already exists
  12. - Run the `create-<starter-kit-package>` executable located in the `bin` field of the starter kit’s `package.json`,
  13. forwarding any `<args>` to it
  14. For example, `yarn create react-app my-app` is equivalent to:
  15. ```sh
  16. $ yarn global add create-react-app
  17. $ create-react-app my-app
  18. ```
  19. For more information, check out the [relevant blog entry](https://yarnpkg.com/blog/2017/05/12/introducing-yarn/).

js yarn包管理组件依赖分析

Contributors (1)