UNPKG

web-themer

Version:

Customizable theme generator for web applications.

20 lines (15 loc) 588 B
'use strict'; const path = require('path'); const process = require('process'); const ThemeBuilder = require('../../themer/theme-builder'); module.exports = function(argv) { const currentDir = process.cwd(); let themeRootDir = path.resolve(currentDir, argv.directory || './themes'); let outputDir = path.resolve(currentDir, argv.output || './output'); let flatten = argv.flatten || false; let builder = new ThemeBuilder(themeRootDir, outputDir, { themesToBuild: argv.theme, flattenOutput: flatten }); builder.build(); };