mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 00:19:48 +01:00
Initial commit
This commit is contained in:
commit
9998490f93
4
History.rdoc
Normal file
4
History.rdoc
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
=== 0.0.1 / YYYY-MM-DD
|
||||
|
||||
* Initial release
|
||||
29
README.rdoc
Normal file
29
README.rdoc
Normal 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
13
lib/express.core.js
Normal 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
4
spec/spec.core.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
describe 'Express'
|
||||
|
||||
end
|
||||
20
spec/spec.dom.html
Normal file
20
spec/spec.dom.html
Normal 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
7
spec/spec.rhino.js
Normal 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
15
spec/spec.server.html
Normal 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>
|
||||
Loading…
Reference in New Issue
Block a user