This document outlines modifications to how the compiler processes CommonJS require
calls.
These changes are desirable in order to allow Node.js modules to be either included or excluded from the compiler.
// botClient is a MatrixClient with the bot credentials | |
var sl = new StateLookup({ | |
client: botClient, | |
eventTypes: ["m.room.member"] | |
}); | |
sl.trackRoom("!sfuhweiufhweuif:localhost").then(function() { | |
var memberEvent = sl.getState("!sfuhweiufhweuif:localhost", "m.room.member", "@someuser:localhost"); | |
}); | |
#!/bin/bash | |
set -u | |
DOC_DIR=godoc | |
PKG=github.com/matrix-org/go-neb | |
# Run a godoc server which we will scrape. Clobber the GOPATH to include | |
# only our dependencies. | |
GOPATH=$(pwd):$(pwd)/vendor godoc -http=localhost:6060 & | |
DOC_PID=$! |