barrelbot
Version:
a small utility to maintain barrel files
35 lines (34 loc) • 1.27 kB
JavaScript
;
function main(args) {
// Get the launch options/arguments.
// const logger = getLogger(args.verbose as boolean);
// const barrelName = getBarrelName(args.name as string, logger);
// const rootPath = resolveRootPath(args.directory as string);
// const baseUrl = getCombinedBaseUrl(rootPath, args.baseUrl);
// Build the directory tree.
// const rootTree = buildTree(rootPath, barrelName, logger);
console.log({ args });
// Work out which directories should have barrels.
// const destinations: Directory[] = getDestinations(
// rootTree,
// args.location as LocationOption,
// barrelName,
// logger
// );
// // Potentially there are some existing barrels that need removing.
// purge(rootTree, args.delete !== undefined && args.delete, barrelName, logger);
// // Create the barrels.
// const quoteCharacter = getQuoteCharacter(args.singleQuotes as boolean);
// buildBarrels(
// destinations,
// quoteCharacter,
// barrelName,
// logger,
// baseUrl,
// args.structure,
// ([] as string[]).concat(args.include || []),
// ([] as string[]).concat(args.exclude || [])
// );
}
module.exports = main;