Created
December 9, 2011 02:43
-
-
Save unscriptable/1449903 to your computer and use it in GitHub Desktop.
possible syntax for curl.js package mappings
This file contains 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
{ | |
packages: { | |
pkgA: { | |
path: 'path/to/pkgA', | |
main: 'main/main-module-file', | |
lib: 'location/of/other/modules', | |
config: { | |
packages: { | |
// pkgC1.0 is declared at the top level | |
pkgC: { $ref: 'packages/pkgC1.0' }, | |
// pkgD is declared inline (not shared) | |
pkgD: { | |
path: 'path/to/pkgD', | |
main: 'main', | |
lib: 'lib' | |
} | |
}, | |
plugins: { | |
css: { cssDeferLoad: false }, | |
link: { fixSchemalessUrls: 'https:' }, | |
i18n: { locale: 'en-us' } | |
} | |
} | |
}, | |
pkgB: { | |
path: 'path/to/pkgB', | |
main: 'main', | |
lib: 'lib', | |
config: { | |
packages: { | |
// pkgC1.0 is declared at the top level | |
pkgC: { $ref: 'packages/pkgC1.0' } | |
} | |
} | |
}, | |
pkgZ: { | |
path: 'path/to/pkgB', | |
main: 'main', | |
lib: 'lib', | |
config: { | |
packages: { | |
// look! I use pkgC1.1, not pkgC1.0 | |
pkgC: { $ref: 'packages/pkgC1.1' } | |
} | |
} | |
}, | |
'pkgC1.0' : { | |
path: 'path/to/pkgC1.0', | |
main: 'main', | |
lib: 'lib', | |
config: { | |
jQueryVersion: '1.6.3' | |
} | |
} | |
}, | |
'pkgC1.1' : { | |
path: 'path/to/pkgC1.1', | |
main: 'main', | |
lib: 'lib', | |
config: { | |
jQueryVersion: '1.7.1' | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment