Created
April 27, 2011 00:38
-
-
Save brettstimmerman/943498 to your computer and use it in GitHub Desktop.
Load a YUI Gallery module locally for testing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Load a YUI Gallery module locally for testing. | |
| * | |
| * Assumes you've built your module with ant and have a local copy of the | |
| * yui3-gallery repo. | |
| * | |
| * This will override Loader's Gallery configuration. Existing Gallery modules | |
| * will load locally. Add your new module(s) to the modules list, and presto! | |
| * | |
| * Props to Caridy for helping piece this together. | |
| */ | |
| YUI_config = { | |
| groups: { | |
| gallery: { | |
| base : './../../build/', // Adjust as necessary. | |
| patterns: { | |
| 'gallery-' : {}, | |
| 'gallerycss-': { type: 'css' } | |
| }, | |
| modules: { | |
| 'gallery-my-module': { | |
| path : 'gallery-my-module/gallery-my-module.js', | |
| requires : [ /* ... */ ], // Optional. | |
| lang : [ /* ... */ ], // Optional. | |
| skinnable: true // Optional. | |
| } | |
| } | |
| } | |
| } | |
| }; | |
| YUI().use('gallery-my-module', function (Y) { | |
| // gallery-my-module is available | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment