Ensure you're using:
./model/*.coffee
: Our model of the crowd objects. Factory (where our Joint views and models are created) are also here../views/*.coffee
: Backbone's Views for templates. There is one view per template here.CoffeeScripts are compiled and merged into the JS directory, its directory structure is as follows:
../js/libs/*.js
: Libraries in pure JS downloaded and required for the web application to work. JQuery, Backbone and Joint are here as well as their dependencies. This directory should not be modified by the compilation process.../js/model/
: Temporary directory where the model's CoffeeScript is compiled before merging into ../js/model.js
file. All files here is deleted after merging when running the compile script.../js/views/
: Same as the model directory, a temporary place where Backbone's views CoffeeScripts are compiled for later merging on the backbone_views.js file. Files placed here are deleted after the merging when running the compile script.On each script you can try to compile it alone using C-c C-k
keys to see if it is properly written.
Se Main Readme. We use codo, but docco can be used too.
Go to the crowd main directory (where the scripts
directory is) and execute:
``` scripts/compile-coffee.fish ```
You need the Fish shell. See Main Readme for more info.