Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
twobit committed Aug 16, 2012
1 parent b880c2f commit 74a330c
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion README.md
@@ -1 +1,52 @@
Build YUI with Gear.js
# Build YUI Components with Gear.js

## Setup

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

```json
"devDependencies": {
"gear-yui": ">=0.0.1"
},
```

Now link to pull in the dependency:

```bash
npm link
```

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

```bash
gear-yui
```

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:

```json
[{
"name": "gallery-tag",
"js": [
"tag.js"
],
"dest": "../../build/gallery-tag",
"config": {
"skinnable": false,
"requires": [
"node", "base", "plugin", "gallery-event-inserted"
]
}
}]
```

```
[component <, component>*]
component.name = 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).
```

0 comments on commit 74a330c

Please sign in to comment.