Skip to content

Commit

Permalink
doc and plays/created content update for @latest tag (reactplay#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
koustov committed Dec 2, 2022
1 parent 0af8c2e commit a8a703c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
15 changes: 6 additions & 9 deletions CREATE-PLAY.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ Welcome developers! We are as excited as you are to know that you are going to c
```
You might check the [README](README.md) file for more details.

You might see a prompt like this

```bash
Need to install the following packages:
create-react-play
Ok to proceed? (y)
```
Press `y` and hit `Enter`. This will install `create-react-play` globally. For more info check [`create-react-play readme`](https://github.com/reactplay/create-react-play/blob/main/README.md)

- You should be able to access the application on http:https://localhost:3000
- Click on `Create` button. Note, its a `beta` feature, feel free to [log issue](https://github.com/reactplay/react-play/issues) (if any)
- The application will try to authenticate you
Expand Down Expand Up @@ -55,6 +46,12 @@ Welcome developers! We are as excited as you are to know that you are going to c
```bash
npx create-react-play -c <the_play_id>
```

**Note:** If the play folder `<reactplay_directory>/src/plays/<your_play_name>` remain empty after running above command that means you might be in some older version of the package. Use `@latest` in that case
```bash
npx create-react-play@latest -c <the_play_id>
```

- Start the application
```bash
yarn start
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
"workbox-window": "^6.5.4"
},
"scripts": {
"start": "npx create-react-play -p && react-scripts start",
"build": "npx create-react-play -p && react-scripts build",
"start": "npx --yes create-react-play@latest -p && react-scripts start",
"build": "npx --yes create-react-play@latest -p && react-scripts build",
"snap": "react-snap",
"test": "react-scripts test",
"eject": "react-scripts eject",
Expand Down
5 changes: 5 additions & 0 deletions src/common/playcreated/PlayCreated.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,17 @@ const PlayCreated = () => {
<code className="console-wrapper">
npx create-react-play -c {play.id}
</code>
<strong>Note:</strong>If the play folder <i><b>&lt;reactplay_directory&gt;/src/plays/&lt;your_play_name&gt;</b></i> remain empty after running above command that means you might be in some older version of the package. Use <i><b>@latest</b></i> in that case
<code className="console-wrapper">
npx create-react-play@latest -c {play.id}
</code>
</li>
<li>
Install dependencies
<code className="console-wrapper">
npm install <br /># OR <br /> yarn{" "}
</code>

</li>
<li>
Start application
Expand Down

0 comments on commit a8a703c

Please sign in to comment.