Initial commit

This commit is contained in:
visionmedia 2009-06-26 11:56:18 -07:00
commit 9998490f93
7 changed files with 92 additions and 0 deletions

4
History.rdoc Normal file
View File

@ -0,0 +1,4 @@
=== 0.0.1 / YYYY-MM-DD
* Initial release

29
README.rdoc Normal file
View File

@ -0,0 +1,29 @@
= Express
Insanely fast (and small) server-side JavaScript web development framework.
== License
(The MIT License)
Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

13
lib/express.core.js Normal file
View File

@ -0,0 +1,13 @@
(function(){
Express = { version : '0.0.1' }
})()
// new node.http.Server(function (req, res) {
// res.sendHeader(200, [["Content-Type", "text/plain"]])
// res.sendBody("Hello World")
// res.finish()
// }).listen(8000)
//
// puts("Server running at http://localhost:8000/")
//

4
spec/spec.core.js Normal file
View File

@ -0,0 +1,4 @@
describe 'Express'
end

20
spec/spec.dom.html Normal file
View File

@ -0,0 +1,20 @@
<html>
<head>
<link type="text/css" rel="stylesheet" href="/Library/Ruby/Gems/1.8/gems/visionmedia-jspec-2.3.1/lib/jspec.css" />
<script src="/Library/Ruby/Gems/1.8/gems/visionmedia-jspec-2.3.1/lib/jspec.js"></script>
<script src="../lib/yourlib.core.js"></script>
<script>
function runSuites() {
JSpec
.exec('spec.core.js')
.run()
.report()
}
</script>
</head>
<body class="jspec" onLoad="runSuites();">
<div id="jspec-top"><h2 id="jspec-title">JSpec <em><script>document.write(JSpec.version)</script></em></h2></div>
<div id="jspec"></div>
<div id="jspec-bottom"></div>
</body>
</html>

7
spec/spec.rhino.js Normal file
View File

@ -0,0 +1,7 @@
load('/Library/Ruby/Gems/1.8/gems/visionmedia-jspec-2.3.1/lib/jspec.js')
JSpec
.exec('spec/spec.core.js')
.run({ formatter : JSpec.formatters.Terminal })
.report()

15
spec/spec.server.html Normal file
View File

@ -0,0 +1,15 @@
<html>
<head>
<script src="jspec.js"></script>
<script>
function runSuites() {
JSpec
.exec('spec.core.js')
.run()
.reportToServer()
}
</script>
</head>
<body class="jspec" onLoad="runSuites();">
</body>
</html>