test: express test

This commit is contained in:
Jared Allard
2016-01-22 12:36:39 -08:00
parent 34210a3bd6
commit 7641afa5a4
3 changed files with 41 additions and 0 deletions
BIN
View File
Binary file not shown.
+17
View File
@@ -0,0 +1,17 @@
/**
* Test Express with nexe
**/
console.log('express init');
var express = require('express');
var app = express();
app.get('/', function(req, res) {
res.send('It works!');
});
app.listen(8000, function() {
console.log('Listening on port 8000');
});
+24
View File
@@ -0,0 +1,24 @@
{
"name": "express-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"nexe": {
"input": "./index.js",
"output": "express-test^$",
"temp": "src",
"runtime": {
"framework": "nodejs",
"version": "5.5.0",
"ignoreFlags": true
}
},
"dependencies": {
"express": "^4.13.4"
}
}