aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRubén Beltrán del Río <ben@nsovocal.com>2017-02-18 17:55:13 -0600
committerGitHub <noreply@github.com>2017-02-18 17:55:13 -0600
commit5e981bca19ace2a7704f267175b6aa368e63bda0 (patch)
treed38e6cbd1762837d3fae81b5029a9c0b48fa08b4 /bin
parentdc10b1de1a73effd6d0ab5744709913ef5cbe5b3 (diff)
Initial Setup (#1)
* Add git ignore * Add eslint config * Add dummy project files * Add jsdoc config * Add docker files * Add changelog, contributing and readme * Add travis files * Add Paw helper * Add travis test docker compose file * Name the ci service appropriately
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dead_drop.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/dead_drop.js b/bin/dead_drop.js
new file mode 100755
index 0000000..0aacb31
--- /dev/null
+++ b/bin/dead_drop.js
@@ -0,0 +1,20 @@
+#!/usr/bin/env node
+'use strict';
+
+const Config = require('../config/config');
+const DeadDrop = require('..');
+
+const internals = {};
+
+internals.deadDrop = new DeadDrop(Config);
+
+internals.main = () => {
+
+ internals.deadDrop.run().catch((err) => {
+
+ console.error(err.stack || err.message || err);
+ process.exit(1);
+ });
+};
+
+internals.main();