TypeScript + WebWorker + D3 Force Layout
We're using Node 8.1.2 and NPM 5.0.3
For consistency, install and use nvm
to ensure versions match:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
source ~/.bashrc
command -v nvm # should print "nvm"
nvm install 8.1.2
nvm use 8.1.2
node -v # should print "v8.1.2"
npm -v # should print "v5.0.3"
Install npm dependencies
npm install
Run webpack dev server (serves on http://localhost:8080)
npm run watch
Run webpack build (demo
→ docs
)
npm run build
Scrub out docs
and .awcache
npm run clean