-
Notifications
You must be signed in to change notification settings - Fork 216
Package centric Configuration
unscriptable edited this page Jan 9, 2012
·
3 revisions
TODO
// config:
{
packages: {
pkgA: {
path: 'path/to/pkgA',
main: 'main/main-module-file',
lib: 'location/of/other/modules',
config: {
// do we need to nest this stuff in 'config'?
// can they just be pkgA properties?
packages: {
// pkgC1.0 is declared at the top level
pkgC: 'pkgC1.0',
// pkgD is declared inline (not shared)
pkgD: 'pkgD' // redundant. no need to specify this
},
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: 'pkgC1.0'
}
}
},
pkgZ: {
path: 'path/to/pkgB',
main: 'main',
lib: 'lib',
config: {
packages: {
// look! I use pkgC1.1, not pkgC1.0
pkgC: 'pkgC1.1'
}
}
},
pkgD: {
path: 'path/to/pkgD',
main: 'main',
lib: 'lib'
},
'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'
}
}
}
}