Plants drawn procedurally on a <canvas>
element.
- node/npm ~0.10.26 (http://nodejs.org/)
- bower (https://npmjs.org/package/bower)
- grunt-cli ~0.4 (http://gruntjs.com/getting-started)
- ruby (already installed on OSX)
- sass ~3.3 (http://sass-lang.com/install)
This project can be installed locally using npm. After checking the project out from source control, cd
to the root directory where package.json is located, and npm install .
.
Third party js libs on this project are managed using Bower. Libs are installed initially with bower install [libname]
, and then the grunt run
command includes a task to copy Bower components over to src/vendor
, which is included in source control. When installing a new third party lib using Bower, you can run a grunt bower
command to copy the new lib over to the vendor folder.
All development work should be done in the 'src' directory. Use the grunt commands below for running the project locally and processing for deployable files.
cd
to the trunk directory with the Gruntfile.js and use the following commands:
grunt run
: runs a local static server with automatic live-reloading on port http://localhost:8008. Lints javascript, compiles SASS, and copies all files over to a 'local' folder that the static server points to. Watches all files for changes.grunt build
: packages all files for delivery to staging or production, output to a 'public' folder. Lints javascript, optimizes javascript, compiles and minifies CSS.