This repository contains the source code for decision making visualizations.
It's hosted here.
app
Contains the source code for the Website
css
CSS files used by the site, but they are generated by the .less files in theless
folderless
less files for generating CSS filesimg
Imagesjs
JavaScripts files and template fileschart
Code to generate chartsdata
Data used by the charts or viewsextension
Extensions for libraries in thelib
folderlib
Librariesviews
Views that render HTML or SVG chartstemplate
HTML files for appending to the DOM
All the grunt config and options are located in the tasks
folder, and here is the list of grunt commands:
grunt
- run the watch command that compile less file automatically whenever there is a change.grunt lib
- concatenate some of the non-require.js dependent libraries toall-lib.js
and minifies it toall-lib-min.js
.grunt cssdev
- compile less files toapp.css
.grunt cssdist
- compile less files and compress them to createapp.css
, then concatenate it withmocha.css
.grunt dev
- compile less files, and concatenate JavaScripts files to create not-minifiedapp-min.js
.grunt build
- create the compressed package indist
folder.grunt sdev
- start a http server atlocalhost:9000
forapp
folder.grunt sdist
- start a http server atlocalhost:9001
fordist
folder.
To build the package, you have to have node.js
installed, then in command line console, run the followings steps once:
- go to
portfolio-site
folder - (if grunt-cli is not installed) run
npm install -g grunt-cli
- run
npm install
Now, you can build your project with running grunt build
. The output folder is app-built
, you can change it in the Gruntfile.js
under section requirejs
.
grunt build
compiles all less files to app-min.css. In development, you can run grunt watch
, and all less files will be compiled in 2 seconds after you change a less file. You can change the delay period debounceDelay
in Gruntfile.js
under section watch
.
In your command line console, run the following steps:
- go to
test-anywhere
folder - run
grunt sdev
to start a http sever atlocalhost:9000
forapp
folder - run
grunt sdist
to start a http sever atlocalhost:9001
fordist
folder - go to your browser, and type in
localhost:9000
orlocalhost:9001
to the address bar - you should see the site running in the browser