GigaJS
HTML5 site engine based on the GAIA Flash Framework
Giga leverages the following fine libraries:
- require.js — All JS in Giga is wrapped as an AMD module.
- almond.js — optimized builds are built with the require.js optimizer to include almond
- CreateJS PreloadJS — makes possible the pretty progress meter during site load (etc)
- History.js — as GAIA used SWFAddress, Giga uses History.js
- when.js / Q.js — Promises implementation
- signals.js — "Event" dispatching
- Greensock tweening — GAIA used Greensock (ActionScript) , Giga uses Greensock (JavaScript)
- Zepto / JQuery — Selector engine
Installation
See: Getting Started with GigaJS
Demos!
Module
The demo in /demo/module uses Giga built as a module.
Your Site class is responsible for bootstrapping the correct supporting classes:
PreloadController
ContentRenderer
CustomTransitions
See /demo/module/js/Site.js
Live Demos
http://shovemedia.com/giga/site
http://shovemedia.com/giga/module
Site
The demo in /demo/site uses Giga built as a full site.
All the necessary JS is built into one minified file:
/site/js/test/Site.min.js (jquery is excluded as you might wish to lean on a cached CDN)
Optimized Build
Setup
You'll need to install these fine tools:
- ant -- build.xml is an ant build script
- node.js is a dependency for most of the build tools.
- java -- The google closure compiler runs on java
You'll need to set the following paths in build.properties:
- yui (yuicompressor), The Yahoo Tools -- used to combine and compress CSS
http://http://yui.github.io/yuicompressor/
- r.js (v2.1.5) -- the require.js optimizer script
http://requirejs.org/docs/1.0/docs/download.html#rjs
- closure_compiler.jar -- Google's closure compiler
Pre-built Closure binaries can be found at
http://code.google.com/p/closure-compiler/downloads/list
- jslint.jar — optional js linter (highly recommended), you'll need to remove the linting sub-tasks if you forego installing jslint.
http://code.google.com/p/jslint4java/
- jsdoc-toolkit.dir — optional jsdoc tool. Used to generate documentation.
https://github.com/jsdoc3/jsdoc
Build
from the command-line:
ant build
for documentation:
ant generateDocs