The purpose of this script is to collect module settings of customized YUI module files. By doing this, we don't have to maintain a centralized module dependencies config.
git clone git://github.com/josephj/ycc.git
cd ycc
git submodule init
git submodule update
npm install .
./ycc ~/miiicasa/static --ignore 'lib/yui'
{
"viewer": {
"requires": [
"event",
"event-resize",
"io-base",
"json-parse",
"node",
"querystring-stringify",
"viewer-app",
"widget"
]
},
"viewer-app": {
"requires": [
"app",
"app-transition",
"comment-info-model",
"comment-list-model",
"env-model",
"file-model-list",
"panel-view",
"space",
"substitute",
"user-model"
]
},
"vlc": {
"requires": [
"base",
"node",
"substitute"
]
},
"vlc-plugin": {
"requires": [
"base"
]
}
}
Special thanks to @panweizeng and his team members. The original idea is coming from their sharing.