Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests now passing with new structure
- Loading branch information
1 parent
2db1a54
commit a246972
Showing
10 changed files
with
71 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,6 +1,8 @@ | |||
var path = require('path'); | var path = require('path'); | ||
require('coffee-script'); | require('coffee-script'); | ||
/* | |||
if (path.existsSync('./lib/tower.js')) | if (path.existsSync('./lib/tower.js')) | ||
module.exports = require('./lib/tower.js'); | module.exports = require('./lib/tower.js'); | ||
else | else | ||
module.exports = require('./src/tower.coffee'); | */ | ||
module.exports = require('./packages/tower.coffee'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,4 @@ | |||
require './shared' | |||
require './server/application' | require './server/application' | ||
require './server/assets' | require './server/assets' | ||
require './server/watcher' | require './server/watcher' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,30 @@ | |||
require './shared' | |||
require './server/actions' | |||
require './server/caching' | |||
require './server/events' | |||
require './server/net' | |||
require './server/sockets' | |||
|
|||
Tower.Controller.include Tower.Controller.Actions | |||
Tower.Controller.include Tower.Controller.Caching | |||
Tower.Controller.include Tower.Controller.Events | |||
Tower.Controller.include Tower.Controller.Net | |||
Tower.Controller.include Tower.Controller.Sockets | |||
|
|||
Tower.Controller.reopenClass extended: -> | |||
object = {} | |||
name = @className() | |||
camelName = _.camelize(name, true) | |||
|
|||
object[camelName] = Ember.computed(-> | |||
Tower.Application.instance()[name].create() | |||
).cacheable() | |||
|
|||
Tower.Net.Connection.controllers.push(camelName) | |||
|
|||
Tower.Net.Connection.reopen(object) | |||
|
|||
@ | |||
|
|||
require './server/renderers' | |||
require './shared/tst' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,9 +1,9 @@ | |||
# @module | # @module | ||
Tower.Middleware = {} | Tower.Middleware = {} | ||
|
|
||
require './middleware/agent' | require './server/agent' | ||
require './middleware/cookies' | require './server/cookies' | ||
require './middleware/location' | require './server/location' | ||
require './middleware/router' | require './server/router' | ||
|
|
||
module.exports = Tower.Middleware | module.exports = Tower.Middleware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,4 @@ | |||
require './shared' | |||
require './server/connection' | require './server/connection' | ||
require './server/connection/socketio' | require './server/connection/socketio' | ||
require './server/connection/sockjs' | require './server/connection/sockjs' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
require './shared' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters