diff --git a/README.md b/README.md index e9ae409..91074b2 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_541 TILs and counting..._ +_542 TILs and counting..._ --- @@ -206,6 +206,7 @@ _541 TILs and counting..._ - [Expand Emojis With The Spread Operator](javascript/expand-emojis-with-the-spread-operator.md) - [Globally Install A Package With Yarn](javascript/globally-install-a-package-with-yarn.md) - [Immutable Remove With The Spread Operator](javascript/immutable-remove-with-the-spread-operator.md) +- [Initialize A New JavaScript Project With Yarn](javascript/initialize-a-new-javascript-project-with-yarn.md) - [Numbers Are Empty](javascript/numbers-are-empty.md) - [Object Initialization With Shorthand Property Names](javascript/object-initialization-with-shorthand-property-names.md) - [Random Cannot Be Seeded](javascript/random-cannot-be-seeded.md) diff --git a/javascript/initialize-a-new-javascript-project-with-yarn.md b/javascript/initialize-a-new-javascript-project-with-yarn.md new file mode 100644 index 0000000..bce056e --- /dev/null +++ b/javascript/initialize-a-new-javascript-project-with-yarn.md @@ -0,0 +1,12 @@ +# Initialize A New JavaScript Project With Yarn + +Yarn, like NPM, has a basic command for initializing a new JavaScript +project. + +``` +$ yarn init +``` + +This will ask you a number of questions about your project like the name and +what kind of license you want to use. In the end, it just creates a +`package.json` file which can be used with `yarn` or `npm`.