Skip to content

Instantly share code, notes, and snippets.

@unscriptable
Created December 9, 2011 02:43
Show Gist options
  • Save unscriptable/1449903 to your computer and use it in GitHub Desktop.
Save unscriptable/1449903 to your computer and use it in GitHub Desktop.
possible syntax for curl.js package mappings
{
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