1
Fork 0

Make everything

This commit is contained in:
Jake Howard 2016-10-25 18:20:34 +01:00
commit fd97034b93
Signed by: jake
GPG key ID: 57AFB45680EDD477
6 changed files with 93 additions and 0 deletions

6
.eslintrc Normal file
View file

@ -0,0 +1,6 @@
{
"extends": "./node_modules/eslint-config/.eslintrc",
"env": {
"node": true
}
}

33
.gitignore vendored Normal file
View file

@ -0,0 +1,33 @@
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
node_modules
# Optional npm cache directory
.npm
# Optional REPL history
.node_repl_history

0
README.md Normal file
View file

11
circle.yml Normal file
View file

@ -0,0 +1,11 @@
machine:
node:
version: 5.10.1
dependencies:
pre:
- npm install
test:
override:
- npm test

30
package.json Normal file
View file

@ -0,0 +1,30 @@
{
"name": "dokku-default-block",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"test": "eslint server.js && nsp check",
"start": "node server.js"
},
"engines": {
"node": "5.11.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/RealOrangeOne/dokku-default-block.git"
},
"author": "Jake Howard <git@theorangeone.net>",
"bugs": {
"url": "https://github.com/RealOrangeOne/dokku-default-block/issues"
},
"homepage": "https://github.com/RealOrangeOne/dokku-default-block#readme",
"dependencies": {
"express": "=4.14.0",
},
"devDependencies": {
"eslint": "=1.9.0",
"eslint-config": "git://github.com/dabapps/eslint-config.git",
"nsp": "=2.6.1"
}
}

13
server.js Normal file
View file

@ -0,0 +1,13 @@
const express = require('express');
const PORT = process.env.PORT || 5000;
const app = express();
app.use(function (request) {
request.connection.destroy();
});
const server = app.listen(PORT, function () {
console.log('Server started on port ' + server.address().port);
});