Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (21 sloc) 456 Bytes
load("steal/rhino/rhino.js");
steal('steal/build',
'steal/build/js',
'steal/build/css',
'steal/build/apps',
function () {
//check if args
var urls = [];
while (_args.length) {
if (_args[0].indexOf('-') !== 0) {
urls.push(_args.shift());
} else {
break;
}
}
if (urls.length > 1) {
steal.build.apps(urls);
} else {
steal.build(urls[0], _args);
}
});