Permalink
Browse files

restructuring

  • Loading branch information...
lancejpollard committed Aug 3, 2012
1 parent c3364ee commit 2db1a54a5977accf3bcdad66bccf52e4ef79c420
Showing 382 changed files with 856 additions and 336 deletions.
@@ -0,0 +1 @@
+require './client/application'
@@ -0,0 +1,42 @@
+{
+ "name": "tower-application",
+ "version": "0.4.1",
+ "homepage": "http://viatropos.github.com/tower",
+ "main": "./server.js",
+ "author": "Lance Pollard <lancejpollard@gmail.com>",
+ "keywords": [
+ "framework",
+ "rails",
+ "node"
+ ],
+ "maintainers": [
+ {
+ "name": "Lance Pollard",
+ "email": "lancejpollard@gmail.com",
+ "web": "http://lancepollard.com"
+ }
+ ],
+ "contributors": [],
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "http://mths.be/mit"
+ }
+ ],
+ "bugs": {
+ "url": "https://github.com/viatropos/tower/issues"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/viatropos/tower.git"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ },
+ "dependencies": {
+
+ },
+ "devDependencies": {
+
+ }
+}
@@ -0,0 +1,3 @@
+require './server/application'
+require './server/assets'
+require './server/watcher'
@@ -219,7 +219,4 @@ class Tower.Application extends Tower.Engine
watch: ->
Tower.Application.Watcher.watch()
-require './application/assets'
-require './application/watcher'
-
module.exports = Tower.Application
@@ -0,0 +1,2 @@
+require './shared/hook'
+require './shared/engine'
@@ -0,0 +1,98 @@
+{
+ "name": "tower-command",
+ "version": "0.4.1",
+ "homepage": "http://viatropos.github.com/tower",
+ "main": "./server/command.js",
+ "author": "Lance Pollard <lancejpollard@gmail.com>",
+ "keywords": [
+ "framework",
+ "rails",
+ "node"
+ ],
+ "maintainers": [
+ {
+ "name": "Lance Pollard",
+ "email": "lancejpollard@gmail.com",
+ "web": "http://lancepollard.com"
+ }
+ ],
+ "contributors": [],
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "http://mths.be/mit"
+ }
+ ],
+ "bugs": {
+ "url": "https://github.com/viatropos/tower/issues"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/viatropos/tower.git"
+ },
+ "engines": {
+ "node": ">= 0.4.0"
+ },
+ "directories": {
+ "lib": "./lib"
+ },
+ "bin": {
+ "tower": "./bin/tower"
+ },
+ "dependencies": {
+ "underscore": ">= 1.3.3",
+ "underscore.string": ">= 2.0.0",
+ "mime": ">= 1.2.4",
+ "qs": ">= 0.3.1",
+ "async": ">= 0.1.12",
+ "underscore.logger": ">= 0.3.1",
+ "mint": ">= 0.3.4",
+ "ejs": ">= 0.6.1",
+ "pathfinder": ">= 0.1.5",
+ "commander": ">= 0.4.0",
+ "express": "2.x",
+ "socket.io": ">= 0.8.7",
+ "coffee-script": "git://github.com/viatropos/coffee-script.git",
+ "useragent": ">= 1.0.5",
+ "URIjs": ">= 1.4.2",
+ "moment": ">= 1.5.1",
+ "node-uuid": ">= 1.3.0",
+ "geolib": ">= 0.0.1",
+ "validator": ">= 0.4.5",
+ "accounting": ">= 0.3.2",
+ "inflection": ">= 1.2.0",
+ "superagent": ">= 0.4.0",
+ "ember-metal-node": ">= 0.9.7",
+ "ember-runtime-node": ">= 0.9.7",
+ "ember-states-node": ">= 0.9.7",
+ "wrench": ">= 1.3.8",
+ "temp": "~0.4.0",
+ "knox": "0.0.11",
+ "gm": "~1.4.1",
+ "nodemailer": "~0.3.21"
+ },
+ "devDependencies": {
+ "cli-table": ">= 0.0.1",
+ "findit": ">= 0.1.1",
+ "coffee-script": ">= 1.3.1",
+ "stylus": ">= 0.17.0",
+ "ejs": ">= 0.6.1",
+ "uglify-js": ">= 1.1.1",
+ "mocha": ">= 0.8.1",
+ "chai": ">= 0.3.3",
+ "sinon": ">= 1.3.1",
+ "gzip": ">= 0.1.0",
+ "forever": "git://github.com/nodejitsu/forever#node-0.8",
+ "mongodb": ">= 0.9.9-8",
+ "eco": ">= 0.1.0",
+ "mustache": ">= 0.4.0",
+ "jade": ">= 0.22.0",
+ "kue": ">= 0.3.4",
+ "socket.io-client": ">= 0.9.5"
+ },
+ "scripts": {
+ "test": "make test",
+ "docs": "codo",
+ "postinstall": "npm install git://github.com/viatropos/coffeecup.git --force ; npm install git://github.com/viatropos/coffee-script.git --force"
+ }
+}
@@ -0,0 +1,6 @@
+require './server/command'
+require './server/console'
+require './server/generate'
+require './server/info'
+require './server/new'
+require './server/server'
@@ -19,10 +19,4 @@ Tower.Command =
command = new Tower.Command[Tower.Support.String.camelize(command)](argv)
command.run()
-require './command/console'
-require './command/generate'
-require './command/info'
-require './command/new'
-require './command/server'
-
module.exports = Tower.Command
@@ -0,0 +1,8 @@
+require './shared'
+require './client/controller'
+require './client/actions'
+require './client/elements'
+require './client/events'
+require './client/handlers'
+require './client/instrumentation'
+require './client/states'
@@ -1,10 +1,3 @@
-require './controller/actions'
-require './controller/elements'
-require './controller/events'
-require './controller/handlers'
-require './controller/instrumentation'
-require './controller/states'
-
Tower.Controller.reopenClass extended: ->
object = {}
name = @className()
@@ -0,0 +1,42 @@
+{
+ "name": "tower-controller",
+ "version": "0.4.1",
+ "homepage": "http://viatropos.github.com/tower",
+ "main": "./server.js",
+ "author": "Lance Pollard <lancejpollard@gmail.com>",
+ "keywords": [
+ "framework",
+ "rails",
+ "node"
+ ],
+ "maintainers": [
+ {
+ "name": "Lance Pollard",
+ "email": "lancejpollard@gmail.com",
+ "web": "http://lancepollard.com"
+ }
+ ],
+ "contributors": [],
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "http://mths.be/mit"
+ }
+ ],
+ "bugs": {
+ "url": "https://github.com/viatropos/tower/issues"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/viatropos/tower.git"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ },
+ "dependencies": {
+
+ },
+ "devDependencies": {
+
+ }
+}
@@ -0,0 +1,25 @@
+require './shared/controller'
+require './shared/callbacks'
+require './shared/errors'
+require './shared/helpers'
+require './shared/instrumentation'
+require './shared/metadata'
+require './shared/params'
+require './shared/redirecting'
+require './shared/rendering'
+require './shared/resourceful'
+require './shared/responder'
+require './shared/responding'
+require './shared/scopes'
+
+Tower.Controller.include Tower.Controller.Callbacks
+Tower.Controller.include Tower.Controller.Errors
+Tower.Controller.include Tower.Controller.Helpers
+Tower.Controller.include Tower.Controller.Instrumentation
+Tower.Controller.include Tower.Controller.Metadata
+Tower.Controller.include Tower.Controller.Params
+Tower.Controller.include Tower.Controller.Redirecting
+Tower.Controller.include Tower.Controller.Rendering
+Tower.Controller.include Tower.Controller.Resourceful
+Tower.Controller.include Tower.Controller.Responding
+Tower.Controller.include Tower.Controller.Scopes
@@ -35,29 +35,4 @@ class Tower.Controller extends Tower.Collection
@formats = if Tower.isClient then ['html'] else _.keys(metadata.mimes)
@hasParent = @constructor.hasParent()
-require './controller/callbacks'
-require './controller/errors'
-require './controller/helpers'
-require './controller/instrumentation'
-require './controller/metadata'
-require './controller/params'
-require './controller/redirecting'
-require './controller/rendering'
-require './controller/resourceful'
-require './controller/responder'
-require './controller/responding'
-require './controller/scopes'
-
-Tower.Controller.include Tower.Controller.Callbacks
-Tower.Controller.include Tower.Controller.Errors
-Tower.Controller.include Tower.Controller.Helpers
-Tower.Controller.include Tower.Controller.Instrumentation
-Tower.Controller.include Tower.Controller.Metadata
-Tower.Controller.include Tower.Controller.Params
-Tower.Controller.include Tower.Controller.Redirecting
-Tower.Controller.include Tower.Controller.Rendering
-Tower.Controller.include Tower.Controller.Resourceful
-Tower.Controller.include Tower.Controller.Responding
-Tower.Controller.include Tower.Controller.Scopes
-
module.exports = Tower.Controller
@@ -0,0 +1,42 @@
+{
+ "name": "tower-generator",
+ "version": "0.4.1",
+ "homepage": "http://viatropos.github.com/tower",
+ "main": "./server.js",
+ "author": "Lance Pollard <lancejpollard@gmail.com>",
+ "keywords": [
+ "framework",
+ "rails",
+ "node"
+ ],
+ "maintainers": [
+ {
+ "name": "Lance Pollard",
+ "email": "lancejpollard@gmail.com",
+ "web": "http://lancepollard.com"
+ }
+ ],
+ "contributors": [],
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "http://mths.be/mit"
+ }
+ ],
+ "bugs": {
+ "url": "https://github.com/viatropos/tower/issues"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/viatropos/tower.git"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ },
+ "dependencies": {
+
+ },
+ "devDependencies": {
+
+ }
+}
@@ -0,0 +1,26 @@
+require './server/generator'
+require './server/actions'
+require './server/configuration'
+require './server/helpers'
+require './server/resources'
+require './server/shell'
+
+Tower.Generator.include Tower.Generator.Actions
+Tower.Generator.include Tower.Generator.Configuration
+Tower.Generator.include Tower.Generator.Helpers
+Tower.Generator.include Tower.Generator.Resources
+Tower.Generator.include Tower.Generator.Shell
+
+Tower.Generator.Mocha = {}
+
+require './server/generators/tower/app/appGenerator'
+require './server/generators/tower/model/modelGenerator'
+require './server/generators/tower/view/viewGenerator'
+require './server/generators/tower/controller/controllerGenerator'
+require './server/generators/tower/helper/helperGenerator'
+require './server/generators/tower/assets/assetsGenerator'
+require './server/generators/tower/mailer/mailerGenerator'
+require './server/generators/tower/scaffold/scaffoldGenerator'
+require './server/generators/mocha/model/modelGenerator'
+require './server/generators/mocha/controller/controllerGenerator'
+require './server/generators/library/libraryGenerator'
@@ -44,30 +44,4 @@ class Tower.Generator extends Tower.Class
run: ->
-require './generator/actions'
-require './generator/configuration'
-require './generator/helpers'
-require './generator/resources'
-require './generator/shell'
-
-Tower.Generator.include Tower.Generator.Actions
-Tower.Generator.include Tower.Generator.Configuration
-Tower.Generator.include Tower.Generator.Helpers
-Tower.Generator.include Tower.Generator.Resources
-Tower.Generator.include Tower.Generator.Shell
-
-Tower.Generator.Mocha = {}
-
-require './generator/generators/tower/app/appGenerator'
-require './generator/generators/tower/model/modelGenerator'
-require './generator/generators/tower/view/viewGenerator'
-require './generator/generators/tower/controller/controllerGenerator'
-require './generator/generators/tower/helper/helperGenerator'
-require './generator/generators/tower/assets/assetsGenerator'
-require './generator/generators/tower/mailer/mailerGenerator'
-require './generator/generators/tower/scaffold/scaffoldGenerator'
-require './generator/generators/mocha/model/modelGenerator'
-require './generator/generators/mocha/controller/controllerGenerator'
-require './generator/generators/library/libraryGenerator'
-
module.exports = Tower.Generator
Oops, something went wrong.

0 comments on commit 2db1a54

Please sign in to comment.