diff --git a/test/express-test/express-test b/test/express-test/express-test new file mode 100755 index 0000000..ac63bce Binary files /dev/null and b/test/express-test/express-test differ diff --git a/test/express-test/index.js b/test/express-test/index.js new file mode 100644 index 0000000..91bb449 --- /dev/null +++ b/test/express-test/index.js @@ -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'); +}); diff --git a/test/express-test/package.json b/test/express-test/package.json new file mode 100644 index 0000000..f350605 --- /dev/null +++ b/test/express-test/package.json @@ -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" + } +}