mirror of
https://github.com/status-im/status-go.git
synced 2025-02-07 12:25:20 +00:00
This PR adds Fetch API and fixes #289 by using concurrency safe Otto VM wrapper wherever it's possible. This involves new package geth/jail/vm that is used by jail and by our forked ottoext/{fetch/timers/loop} packages. It also adds more tests that are supposed to be run with --race flag of go test.
14 lines
408 B
Makefile
14 lines
408 B
Makefile
dist-fetch.rice-box.go: dist-fetch/bundle.js
|
|
rice embed-go
|
|
|
|
dist-fetch/bundle.js: js/bundle.js
|
|
mkdir -p dist-fetch
|
|
cp -a js/bundle.js dist-fetch/bundle.js
|
|
cp -a js/bundle.js.map dist-fetch/bundle.js.map
|
|
|
|
js/bundle.js: js/fetch.js js/headers.js js/index.js js/request.js js/response.js
|
|
cd js && npm install && npm run bundle${BUNDLE_SUFFIX}
|
|
|
|
clean:
|
|
rm -rf dist-fetch.rice-box.go dist-fetch js/bundle.js
|