Skip to content

Commit

Permalink
@gvaish Code cleanup as per tastejs/todomvc#507
Browse files Browse the repository at this point in the history
* application.json: Added assets, cleaned up log
* index.js: Deleted, required only for Manhattan
* definition.json: Empty, removed
* server.js: Updated
  • Loading branch information
gvaish committed May 12, 2013
1 parent 910830b commit db3338f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 63 deletions.
30 changes: 14 additions & 16 deletions todomvc-mojito-common/application.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,27 @@
"config": {
"deploy": true,
"title": "Yahoo! Mojito • TodoMVC",
"child": { "type": "TodoMojit" }
"child": { "type": "TodoMojit" },
"assets": {
"top": {
"blob": [
"<meta charset='utf-8'>",
"<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>"
]
}
}
}
}
},
"appPort": 6789,
"staticHandling": {
"appName": "todomvc",
"useRollups": false
},
"log": {
"server": {
"yui": false,
"level": "warn"
},
"client": {
"yui": false,
"level": "warn"
}
"appName": "todomvc"
},
"yui": {
"config": {
"combine": false
"combine": false,
"debug": true,
"logLevel": "info"
}
},
"builds": {
Expand All @@ -41,8 +40,7 @@
{
"settings": [ "environment:development" ],
"staticHandling": {
"forceUpdate": true,
"useRollups": false
"forceUpdate": true
}
}
]
23 changes: 0 additions & 23 deletions todomvc-mojito-common/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions todomvc-mojito-common/mojits/TodoMojit/definition.json

This file was deleted.

32 changes: 13 additions & 19 deletions todomvc-mojito-common/server.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
/*
* Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
/*jslint anon:true, sloppy:true, nomen:true*/

process.chdir(__dirname);

/*jslint anon:true, sloppy:true*/
/*
* Create the MojitoServer instance we'll interact with. Options can be passed
* using an object with the desired key/value pairs.
*/
var Mojito = require('mojito');
var app = Mojito.createServer();

// ---------------------------------------------------------------------------
// Different hosting environments require different approaches to starting the
// server. Adjust below to match the requirements of your hosting environment.
// ---------------------------------------------------------------------------

/**
* Returns a new Mojito server instance.
*/
//module.exports = require('mojito').createServer();
var mojito = require('mojito');
new mojito.constructor().createServer().listen(process.env.PORT || 6789, null, function(err) {
if(err) {
console.log('Failed to start Mojito...');
console.log('error: ' + err);
} else {
console.log('Server started...');
}
});
module.exports = app.listen();

0 comments on commit db3338f

Please sign in to comment.