TerrificJS is a neat, clever piece of code that allows you to modularize your jQuery code by solely relying on CSS naming conventions.
So simple, so effective! TerrificJS helps you to structure your project in a way you have never dreamt of. Try the magic and get addicted.
Notice: the documentation of TerrificJS is available at http://terrifically.org/api.
- Ant (for the build execution)
- node.js (for UglifyJS, YUIDoc)
- npm (for UglifyJS, YUIDoc)
Notice: Some of the commands used below are Linux (Ubuntu) specific.
First of all, you need Ant, if you do not already have those installed.
sudo apt-get install ant
To get the build environment up and running, we need UglifyJS and YUIDoc, which itself depends on node.js. Get appropriate installer package from NodeJS.
Notice: npm comes bundled with node.js
npm -g install uglify-js
To generate the API documentation, the TerrificJS uses YUIDoc from Yahoo. Install it via npm using the following command.
npm -g install yuidocjs
To build your own release of Terrific, just run ant in the build directory and you’re done. The files will take place in the release folder in your TerrificJS working copy.
You will get the following release artifacts:
- release/docs/ – generated API documentation
- release/terrific-.js – the full release
- release/terrific-.min.js – the minified release for production use