#!/usr/bin/env node

var path = require('path');

var style = require('../build/webui/base/style');

for (var i=2; i < process.argv.length; i++) {
	var modulePath = path.resolve(process.argv[i]);
	require(modulePath);
}

var styles = style.registry.styles();
var css = Object.keys(styles).map(function(name) {
	var styleGroup = styles[name];
	return style.compile(styleGroup);
}).join('\n\n');

console.log(css);


@@ -14,16 +14,296 @@
 v node%0A%0A
+// Generates CSS from styles defined using style.create()%0A// cssgen.js loads each of the modules specified on the command%0A// line and then compiles all of the styles defined by%0A// style.create() calls to CSS which is written to stdout.%0A//%0A// Usage: cssgen.js %5B%3Centry points...%3E%5D%0A%0A
 var path

Add documentation to cssgen.js