blob: c69fcb8b405fda6393ece5d492f71cc1e0ee7e13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env node
'use strict';
var path = require('path');
var fs = require('fs');
var mkdirp = require('./mkdirp');
var name = 'style';
var data = JSON.stringify(require(path.join(process.cwd(), process.argv[2])));
var out_path = path.join(process.argv[3], 'bin/style.min.js');
mkdirp.sync(path.dirname(out_path));
fs.writeFileSync(out_path, data);
|