зеркало из https://github.com/mozilla/WebBuilder.git
added node stuff
This commit is contained in:
Родитель
6135550313
Коммит
6ebf076d8c
|
@ -0,0 +1,10 @@
|
|||
node_modules/
|
||||
*.orig
|
||||
*.swp
|
||||
*.swo
|
||||
configuration/development.js
|
||||
configuration/production.js
|
||||
configuration/test.js
|
||||
public/css/*.css
|
||||
.DS_Store
|
||||
.settings.xml
|
|
@ -0,0 +1,12 @@
|
|||
var express = require('express'),
|
||||
fs = require('fs');
|
||||
|
||||
var app = express.createServer();
|
||||
|
||||
app.get('/', function(req, res){
|
||||
fs.readFile(__dirname + '/index.html', 'utf8', function(err, text){
|
||||
res.send(text);
|
||||
});
|
||||
});
|
||||
|
||||
app.listen(3000);
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"name": "web-builder",
|
||||
"version": "0.0.1",
|
||||
"dependencies": {
|
||||
"express": "2.5.2",
|
||||
"jade" : "0.20.0"
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче