Environment work, and start of testing

This commit is contained in:
fkereki
2018-05-29 21:52:45 -04:00
parent 67c6d03940
commit 66fdef2908
3 changed files with 2634 additions and 0 deletions
+2620
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -94,6 +94,7 @@
"flow-coverage-report": "^0.5.0",
"flow-remove-types": "^1.2.3",
"flow-typed": "^2.4.0",
"jest": "^23.0.1",
"nodemon": "^1.17.5",
"prettier": "^1.11.1"
}
+13
View File
@@ -0,0 +1,13 @@
// flow()
"use strict";
const dotenv = require("dotenv");
console.log(process.env);
const dev = process.env.NODE_ENV || "development";
const isDev = dev === "development";
if (isDev) {
dotenv.load();
}