Permalink
Browse files

started a buld process for front-end stuff

  • Loading branch information...
1 parent f323a44 commit 0338f524189e16129ec30a57354b46d922201df2 Techwraith committed Oct 19, 2012
Showing with 12,675 additions and 0 deletions.
  1. +12 −0 Jakefile
  2. +12,651 −0 templates/base/public/js/core/core.js
  3. +12 −0 templates/build/build.js
View
12 Jakefile
@@ -27,6 +27,18 @@ namespace('doc', function () {
});
+desc('Generate the geddy core.js file');
+task('buildjs', function(){
+ var cmd = 'browserify templates/build/build.js' +
+ ' -o templates/base/public/js/core/core.js -i ./logger'
+ jake.exec([cmd], function () {
+ var msg = 'built templates/build/build.js to ' +
+ 'templates/base/public/js/core/core.js'
+ console.log(msg);
+ complete();
+ })
+}, {async: true});
+
desc('Generate docs for Geddy');
task('doc', ['doc:generate']);
View
12,651 templates/base/public/js/core/core.js
12,651 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
12 templates/build/build.js
@@ -0,0 +1,12 @@
+window.geddy = {}
+
+// require model
+window.geddy.model = require('model');
+
+// mix utilities into geddy
+var utilities = require('utilities');
+utilities.mixin(geddy, utilities);
+
+// require socket.io-client
+window.geddy.io = require('socket.io-client');
+window.geddy.socket = window.geddy.io.connect('http://localhost');

0 comments on commit 0338f52

Please sign in to comment.