Skip to content

Commit dea4050

Browse files
committed
Regenerate site.
go generate ./...
1 parent 699155b commit dea4050

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

index.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,15 @@ Get or update GopherJS and dependencies with:
2222
go get -u github.com/gopherjs/gopherjs
2323
```
2424

25-
Now you can use `gopherjs build [files]` or `gopherjs install [package]` which behave similar to the `go` tool. For `main` packages, these commands create a `.js` file and `.js.map` source map in the current directory or in `$GOPATH/bin`. The generated JavaScript file can be used as usual in a website. Use `gopherjs help [command]` to get a list of possible command line flags, e.g. for minification and automatically watching for changes. If you want to run the generated code with Node.js, see [this page](https://github.com/gopherjs/gopherjs/blob/master/doc/syscalls.md).
25+
Now you can use `gopherjs build [files]` or `gopherjs install [package]` which behave similar to the `go` tool. For `main` packages, these commands create a `.js` file and `.js.map` source map in the current directory or in `$GOPATH/bin`. The generated JavaScript file can be used as usual in a website. Use `gopherjs help [command]` to get a list of possible command line flags, e.g. for minification and automatically watching for changes.
26+
27+
If you want to use `gopherjs run` or `gopherjs test` to run the generated code locally, install Node.js 4.x and the module `source-map-support`:
28+
29+
```
30+
npm install --global source-map-support
31+
```
32+
33+
For system calls (file system access, etc.), see [this page](https://github.com/gopherjs/gopherjs/blob/master/doc/syscalls.md).
2634

2735
*Note: GopherJS will try to write compiled object files of the core packages to your $GOROOT/pkg directory. If that fails, it will fall back to $GOPATH/pkg.*
2836

0 commit comments

Comments
 (0)