summaryrefslogtreecommitdiff
path: root/bin/build-style.js
blob: 06d4cc0808ddd7e153a8c9bac75cfe4292f59fee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env node
'use strict';

var mkdirp = require('mkdirp');
var path = require('path');
var fs = require('fs');

var data = JSON.stringify(require(path.join(process.cwd(), process.argv[2])));
var out = path.join(process.argv[3], 'style.min.js');

mkdirp.sync(path.dirname(out));
fs.writeFileSync(out, data);