Skip to content

Extending the Framework

Gordon Smith edited this page May 19, 2016 · 11 revisions

Setting up a development environment

Prerequisites

Create a working folder

mkdir ./someDir
cd ./someDir
git clone https://github.com/hpcc-systems/Visualization.git
cd Visualization
git checkout candidate-1.14.x
npm install -g gulp
npm install -g bower
npm install
bower install

A quick way to test your environment is to launch the unit tests:

npm test

Adding a third-party library

  1. Add to bower.json:
...
"javascript-auto-complete": "*"
...
  1. Add to src/config.js: You will need to add the reference twice. Once for local usage and the other for "previewing" directly on GitHub.
...
//  For local hosting
"auto-complete": "../bower_components/javascript-auto-complete/auto-complete",
...
//  For GitHub hosting
"auto-complete": "//" + window.location.hostname + "/Pixabay/JavaScript-autoComplete/master/auto-complete",
Clone this wiki locally