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 print(pa);
9
10 if (!pa.match(/roojs1$/)) {
11     print("this should be run from the top level directory")
12     Seed.quit();
13 }
14
15 var files = File.list(pa + '/css-bootstrap');
16 print(files);
17 var out = '';
18 files.forEach(function(f) {
19     if (f.match(/^roojs/)) {
20         return;
21     }
22     if (f.match(/^bootstrap/)) {
23         return;
24     }
25     if (f.match(/^font-awesome/)) {
26         return;
27     }
28     
29     out += pack(File.read(pa + '/css-bootstrap/' +f ));
30 });
31
32
33
34
35 File.write(pa+'/css-bootstrap/roojs-bootstrap.css', out);
36