buildSDK/css-minify-bootstrap.js
[roojs1] / buildSDK / css-minify-bootstrap.js
1
2 File = imports.File.File;
3 pack = imports.MinifyCSS.pack;
4 GLib = imports.gi.GLib;  
5 // let's see if this works..
6 // should be run from top level..
7 var pa = GLib.get_current_dir();
8
9 if (!pa.match(/roojs$/)) {
10     print("this should be run from the top level directory")
11     Seed.quit();
12 }
13
14 var files = Files.list(pa + '/css-bootstrap');
15 var out = '';
16 files.forEach(function(f) {
17     if (f.match(/^roojs/)) {
18         return;
19     }
20     if (f.match(/^bootstrap/)) {
21         return;
22     }
23     out += pack(File.read(pa + '/css-bootstrap/' +f ));
24 });
25
26
27
28
29 File.write(pa+'/css-bootstrap/roojs-bootstrap.css', out);
30