Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 52 lines (40 sloc) 1.16 kB
74a330c @twobit updated readme
twobit authored
1 # Build YUI Components with Gear.js
2
3 ## Setup
4
5 To get started with the gear-yui builder add the following to the package.json in yui3-gallery:
6
7 ```json
8 "devDependencies": {
9 "gear-yui": ">=0.0.1"
10 },
11 ```
12
13 Now link to pull in the dependency:
14
15 ```bash
16 npm link
17 ```
18
19 Once linked, you will be able to simply run the command in a directory with a build.json file:
20
21 ```bash
22 gear-yui
23 ```
24
25 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.
26
27 A sample build.json looks like this:
28
29 ```json
30 [{
31 "name": "gallery-tag",
32 "js": [
33 "tag.js"
34 ],
35 "dest": "../../build/gallery-tag",
36 "config": {
37 "skinnable": false,
38 "requires": [
39 "node", "base", "plugin", "gallery-event-inserted"
40 ]
41 }
42 }]
43 ```
44
45 ```
46 [component <, component>*]
47
48 component.name = Module name, i.e. gallery-tag
49 component.js = [relative_filename, <relative_filename>*]
50 component.dest = Path to build directory
51 component.config = Object that is passed through verbatim to the YUI loader config (requires, skinnable, etc).
52 ```
Something went wrong with that request. Please try again.