1 | #!/usr/bin/env node
|
2 |
|
3 | var theme;
|
4 | var fs = require('fs');
|
5 |
|
6 | try {
|
7 | theme = require('../lib/main');
|
8 | } catch (err) {
|
9 | require('coffee-script/register');
|
10 | theme = require('../src/main');
|
11 | }
|
12 |
|
13 | if (!fs.existsSync('./cache')) {
|
14 | fs.mkdirSync('./cache');
|
15 | }
|
16 |
|
17 | fs.chmodSync('./cache', 0777);
|
18 |
|
19 |
|
20 |
|
21 | theme.render({}, function () {});
|
22 | theme.render({}, {themeVariables: 'flatly'}, function () {});
|
23 | theme.render({}, {themeVariables: 'slate'}, function () {});
|
24 | theme.render({}, {themeVariables: 'cyborg'}, function () {});
|