From ad1e9921bb3557b2d76f3dfd3a1a3cd1e57677f8 Mon Sep 17 00:00:00 2001 From: Chris Trevino Date: Wed, 22 Feb 2017 10:05:04 -0800 Subject: [PATCH] Update walkthrough code to use yarn instead of npm (#671) --- docs/00 Quick Start/Testing.md | 2 +- examples/README.md | 2 +- site/README.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/00 Quick Start/Testing.md b/docs/00 Quick Start/Testing.md index 6094d8ce8d..56ea741389 100644 --- a/docs/00 Quick Start/Testing.md +++ b/docs/00 Quick Start/Testing.md @@ -7,7 +7,7 @@ React DnD is test-friendly. The whole drag and drop interaction, including the r There are several different approaches to testing React components. React DnD is not opinionated and lets you use either of them. **Neither of those approaches require the browser event system to be available.** -A few test examples are included with the React DnD inside its `examples` folder. Run `npm install` and `npm test` inside the `react-dnd` root folder to start them. +A few test examples are included with the React DnD inside its `examples` folder. Run `yarn install` and `yarn test` inside the `react-dnd` root folder to start them. ### Testing the Components in Isolation diff --git a/examples/README.md b/examples/README.md index 9e74409c66..423c7d2416 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,3 +1,3 @@ The examples are written using [ES7](http://react-dnd.github.io/react-dnd/docs-faq.html#what-is-the-syntax-i-see-in-the-es7-code-examples-) and use [decorators](https://github.com/wycats/javascript-decorators). You don't have to use the decorators for React DnD, they are completely optional. [The tutorial](http://react-dnd.github.io/react-dnd/docs-tutorial.html) should give you a good idea about using React DnD in ES5, ES6, or ES7. -Check out the [hosted versions of this examples](http://react-dnd.github.io/react-dnd/examples-chessboard-tutorial-app.html). To run them locally, clone the repo, and run `npm install && npm start`. It will take a while to start, but after the site is built, you can access the examples by opening [http://localhost:8080/](http://localhost:8080/) and clicking “Examples” in the navigation bar. +Check out the [hosted versions of this examples](http://react-dnd.github.io/react-dnd/examples-chessboard-tutorial-app.html). To run them locally, clone the repo, and run `yarn install && yarn start`. It will take a while to start, but after the site is built, you can access the examples by opening [http://localhost:8080/](http://localhost:8080/) and clicking “Examples” in the navigation bar. diff --git a/site/README.md b/site/README.md index c069d2b566..91697375d4 100644 --- a/site/README.md +++ b/site/README.md @@ -5,8 +5,8 @@ View it on the web: http://react-dnd.github.io/react-dnd Run it locally: ``` -npm install -npm start +yarn install +yarn start ``` After it builds the static site (might take about half a minute), open http://localhost:8080/.