Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
initial import
  • Loading branch information
vol4ok committed Jun 12, 2012
0 parents commit 0ce1ca9
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
_*
.DS_Store
node_modules/
.idea/
/site.iml
3 changes: 3 additions & 0 deletions .npmignore
@@ -0,0 +1,3 @@
_*
.DS_Store
*.coffee
13 changes: 13 additions & 0 deletions app.coffee
@@ -0,0 +1,13 @@
mosule.exports = express = require 'express'

moduleKeywords = ['extended']

class Application extends express.HTTPServer
@extend: (obj) ->
throw('extend(obj) requires obj') unless obj
for key, value of obj when key not in moduleKeywords
@[key] = value
obj.extended?.apply(this)
return this

exports.Application = Application
40 changes: 40 additions & 0 deletions app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions package.json
@@ -0,0 +1,14 @@
{
"author": "vol4ok <hello@vol4ok.net>",
"name": "express-app",
"version": "0.0.1",
"main": "app.js",
"dependencies": {
"express": ">=2.0.0"
},
"devDependencies": {},
"optionalDependencies": {},
"engines": {
"node": "*"
}
}

0 comments on commit 0ce1ca9

Please sign in to comment.