Skip to content
This repository
Browse code

started a buld process for front-end stuff

  • Loading branch information...
commit 0338f524189e16129ec30a57354b46d922201df2 1 parent f323a44
Daniel Erickson authored October 18, 2012
12  Jakefile
@@ -27,6 +27,18 @@ namespace('doc', function () {
27 27
 
28 28
 });
29 29
 
  30
+desc('Generate the geddy core.js file');
  31
+task('buildjs', function(){
  32
+  var cmd = 'browserify templates/build/build.js' +
  33
+            ' -o templates/base/public/js/core/core.js -i ./logger'
  34
+  jake.exec([cmd], function () {
  35
+    var msg = 'built templates/build/build.js to ' +
  36
+              'templates/base/public/js/core/core.js'
  37
+    console.log(msg);
  38
+    complete();
  39
+  })
  40
+}, {async: true});
  41
+
30 42
 desc('Generate docs for Geddy');
31 43
 task('doc', ['doc:generate']);
32 44
 
12,651  templates/base/public/js/core/core.js
12651 additions, 0 deletions not shown
12  templates/build/build.js
... ...
@@ -0,0 +1,12 @@
  1
+window.geddy = {}
  2
+
  3
+// require model
  4
+window.geddy.model = require('model');
  5
+
  6
+// mix utilities into geddy
  7
+var utilities = require('utilities');
  8
+utilities.mixin(geddy, utilities);
  9
+
  10
+// require socket.io-client
  11
+window.geddy.io = require('socket.io-client');
  12
+window.geddy.socket = window.geddy.io.connect('http://localhost');

0 notes on commit 0338f52

Please sign in to comment.
Something went wrong with that request. Please try again.