Skip to content

Commit 2563473

Browse files
committed
playground/README: Suggest gopherjs serve command.
Now that gopherjs has a capable serve command built in (see gopherjs/gopherjs#121), it's better to suggest using it directly. This way there's no need to download and learn to use a separate command when this functionality is now available upstream in gopherjs itself. /cc @ajhager Also update description of what the update.sh script does. It does not pull the latest version, it simply does `go install ...gopherjs` which installs whatever version you have locally.
1 parent 3dfeff9 commit 2563473

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

playground/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ A secondary motivation is making the playground usable for other projects, such
66

77
## Development
88

9-
To update the entire playground environment, run the `update.sh` script. It will pull the latest gopherjs compiler, rebuild and copy the standard library into the `pkg` directory, and build the playground.
9+
To update the entire playground environment, run the `update.sh` script. It will install your local version of gopherjs compiler, rebuild and copy the standard library into the `pkg` directory, and build the playground.
1010

11-
Working on the application itself is made easier by using the [SRVi](https://github.com/ajhager/srvi) utility to rebuild and serve the playground every time you refresh the browser.
11+
Working on the application itself is made easier by using the `gopherjs serve` command to rebuild and serve the playground every time you refresh the browser.
1212

1313
```bash
14-
go get -u github.com/ajhager/srvi
15-
srvi -index index.html -endpoint playground.js playground.go
14+
gopherjs serve
1615
```
16+
17+
Then open <http://localhost:8080/github.com/gopherjs/gopherjs.github.io/playground>.

0 commit comments

Comments
 (0)