j7b / jsplayground Goto Github PK
View Code? Open in Web Editor NEWGopherJS compiler in browser
License: The Unlicense
GopherJS compiler in browser
License: The Unlicense
$ go run generate.go github.com/hajimehoshi/ebiten
Building in /tmp/jsplayground-518207278
Installing additional packages
Couldn't add get for imports.json
Couldn't add -m for imports.json
Using GOROOT /usr/local/go/src
JS Playground packages at /tmp/jsplayground-518207278/pkg
Probably something misunderstands that 'get' and '-m' are kind of package?
This is a complicated but not unreasonably - basically jsplayground.go needs to detect it's running in a node environment and preload what jsplayground looks for in playground from pkg in the gopath first and goroot second on the assumption gopherjs serve won't work without the gopherjs pkg's somewhere and use the baked-in map that becomes imports.json
Now there are two main packages in the same directory, and I was confused that the binary 'jsplayground' indicated which main package. Can we separate them in separate directories?
BTW, I think gopherjs install github.com/j7b/jsplayground
doesn't make sense at https://github.com/j7b/citesting/blob/master/.travis.yml and the jsplayground
binary is already installed by go get -v github.com/j7b/jsplayground
.
fasttest.html can't be executed with such pkg. Is this correct?
$ go run jsplayground.go
# command-line-arguments
./jsplayground.go:167:9: undefined: important.Imports
https://github.com/j7b/jsplayground/blob/master/jsplayground.go#L190
In theory, executing a goroutine is deferred by infinite time, so it looks like there is not guarantee that g.packages[path] = p
is called before accessing g.packages[path]
. Is the goroutine there really needed?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.