Development and contribution guide
Last updated
Was this helpful?
Was this helpful?
make depsdocker pull 0xorg/ganache-cli
# Run the $GANACHE_VERSION image of ganache-cli.
docker run -ti -p 8545:8545 -e VERSION=$GANACHE_VERSION 0xorg/ganache-cli# Run tests in pure Go
make test-go
# Compile to WebAssembly and run tests in Node.js
make test-wasm-node
# Compile to WebAssembly and run tests in a headless Chrome browser
make test-wasm-browser
# Run tests in all available environments
make test-all# Increase number of open files that are tolerated to 2048 (a big number)
ulimit -S -n 2048make lint{
// ...
"editor.formatOnSave": true,
"go.formatTool": "goimports",
"go.lintTool": "golangci-lint",
"go.lintOnSave": "package",
"go.vetOnSave": "off"
// ...
}{
// ...
"go.toolsEnvVars": {
"GOARCH": "wasm",
"GOOS": "js"
},
"go.testEnvVars": {
"GOARCH": "wasm",
"GOOS": "js"
}
// ...
}