mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
Add Create Bootstrapped Apps With Yarn as a javascript til
This commit is contained in:
24
javascript/create-bootstrapped-apps-with-yarn.md
Normal file
24
javascript/create-bootstrapped-apps-with-yarn.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Create Bootstrapped Apps With Yarn
|
||||
|
||||
The [`yarn` cli](https://yarnpkg.com/lang/en/docs/cli/) comes with a
|
||||
[`create`](https://yarnpkg.com/blog/2017/05/12/introducing-yarn/) command
|
||||
that is a convenience command for generating bootstrapped apps that follow
|
||||
the `create-<name>-app` convention.
|
||||
|
||||
Want to create a React.js app using
|
||||
[`create-react-app`](https://github.com/facebookincubator/create-react-app),
|
||||
invoke the following command:
|
||||
|
||||
```
|
||||
$ yarn create react-app my-app
|
||||
```
|
||||
|
||||
Don't already have a particular package globally installed? `yarn create`
|
||||
will install it for you. For instance, the following command with install
|
||||
and use [`create-vue-app`](https://github.com/egoist/create-vue-app):
|
||||
|
||||
```
|
||||
$ yarn create vue-app my-other-app
|
||||
```
|
||||
|
||||
h/t Gabe Reis
|
||||
Reference in New Issue
Block a user