Find file
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (40 sloc) 1.13 KB

Build YUI Components with Gear.js


To get started with the gear-yui builder add the following to the package.json in yui3-gallery:

    "devDependencies": {
        "gear-yui": ">=0.0.1"

Now link to pull in the dependency:

npm link

Once linked, you will be able to simply run the command in a directory with a build.json file:


This command will jslint, concat, write out the built files for debug, min, and, full (stripped Y.log's). It generates nearly compatible output of the ant builder.

A sample build.json looks like this:

    "name": "gallery-tag",
    "js": [
    "dest": "../../build/gallery-tag",
    "config": {
        "skinnable": false,
        "requires": [
            "node", "base", "plugin", "gallery-event-inserted"
[component <, component>*] = Module name, i.e. gallery-tag
component.js = [relative_filename, <relative_filename>*]
component.dest = Path to build directory
component.config = Object that is passed through verbatim to the YUI loader config (requires, skinnable, etc).