buildSDK/css-minify-bootstrap.js
authorAlan Knowles <alan@roojs.com>
Tue, 9 Dec 2014 05:31:46 +0000 (13:31 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 9 Dec 2014 05:31:46 +0000 (13:31 +0800)
buildSDK/css-minify-bootstrap.js

index e69de29..f3ce53f 100644 (file)
@@ -0,0 +1,30 @@
+
+File = imports.File.File;
+pack = imports.MinifyCSS.pack;
+GLib = imports.gi.GLib;  
+// let's see if this works..
+// should be run from top level..
+var pa = GLib.get_current_dir();
+
+if (!pa.match(/roojs$/)) {
+    print("this should be run from the top level directory")
+    Seed.quit();
+}
+
+var files = Files.list(pa + '/css-bootstrap');
+var out = '';
+files.forEach(function(f) {
+    if (f.match(/^roojs/)) {
+        return;
+    }
+    if (f.match(/^bootstrap/)) {
+        return;
+    }
+    out += pack(File.read(pa + '/css-bootstrap/' +f ));
+});
+
+
+
+
+File.write(pa+'/css-bootstrap/roojs-bootstrap.css', out);
+    
\ No newline at end of file