README
Visualive WebGL
Install the httpserver npm install http-server -g
Getting started
Install Git
Install Git LFS https://git-lfs.github.com/
Install Nodejs
- from here: https://nodejs.org/en/download/
- Use default options. It should be straight forward.
- Install dependencies.
- Run
npm install
- Run the HTTP Server
- Build:
- See npm scripts section below.
Scripts
npm run build
- produces development version of Visualive.npm run build:dev
- produces development version of Visualive and runs a watcher. Edited source code should auto-recompile.npm run build:production
- produces a production version of Visualive under thelib
folder.
Typical development workflow
- Open Git Bash Terminal
- Open a Terminal in the repo root (from Source Tree using the icon in the top right)
- Build Visualive in development mode
- Run
npm run build:dev
. This command will generate an non-minified version of Visualive and will run a watcher so you get re-compilation on file changes.
- Run the HTTP Server
- See server section above.
- Run the tests/demos.
- Open http://localhost:8080/ in Chrome
- Be sure to disable caching in the Chrome Developer Tools.
Publishing a new build
- install yarn.
- build production.
yarn publish