Matched env handling of the client for the API.

This commit is contained in:
Jayden Seric 2017-08-21 13:35:46 +10:00
parent 6bd886e83d
commit c16ead9fb3
2 changed files with 53 additions and 40 deletions

83
api/package-lock.json generated
View File

@ -1429,12 +1429,11 @@
}
},
"cross-spawn": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
"integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=",
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-4.0.2.tgz",
"integrity": "sha1-e5JHYhwjrf3ThWAEqCPL45dCTUE=",
"requires": {
"lru-cache": "4.1.1",
"shebang-command": "1.2.0",
"which": "1.3.0"
}
},
@ -1586,6 +1585,28 @@
"resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz",
"integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw="
},
"dotenv": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-4.0.0.tgz",
"integrity": "sha1-hk7xN5rO1Vzm+V3r7NzhefegzR0="
},
"dotenv-cli": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/dotenv-cli/-/dotenv-cli-1.4.0.tgz",
"integrity": "sha1-6OgIMO2ItIoDtet+wmFHynF/dAk=",
"requires": {
"cross-spawn": "4.0.2",
"dotenv": "4.0.0",
"minimist": "1.2.0"
},
"dependencies": {
"minimist": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ="
}
}
},
"ee-first": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
@ -1803,6 +1824,17 @@
"supports-color": "4.2.1"
}
},
"cross-spawn": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
"integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=",
"dev": true,
"requires": {
"lru-cache": "4.1.1",
"shebang-command": "1.2.0",
"which": "1.3.0"
}
},
"strip-ansi": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
@ -2027,6 +2059,18 @@
"p-finally": "1.0.0",
"signal-exit": "3.0.2",
"strip-eof": "1.0.0"
},
"dependencies": {
"cross-spawn": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
"integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=",
"requires": {
"lru-cache": "4.1.1",
"shebang-command": "1.2.0",
"which": "1.3.0"
}
}
}
},
"expand-brackets": {
@ -5553,37 +5597,6 @@
"integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0="
}
}
},
"zoo": {
"version": "0.1.9",
"resolved": "https://registry.npmjs.org/zoo/-/zoo-0.1.9.tgz",
"integrity": "sha1-/v6H4Cyesc7vIL14JQF89kuvKrk=",
"requires": {
"cross-spawn": "4.0.0",
"minimist": "1.2.0",
"object-path": "0.11.2"
},
"dependencies": {
"cross-spawn": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-4.0.0.tgz",
"integrity": "sha1-glR3SrR4a4xbPPTfumbOVjkywlI=",
"requires": {
"lru-cache": "4.1.1",
"which": "1.3.0"
}
},
"minimist": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ="
},
"object-path": {
"version": "0.11.2",
"resolved": "https://registry.npmjs.org/object-path/-/object-path-0.11.2.tgz",
"integrity": "sha1-dL87PFp/ICTXXjM/EgITU/qdSF4="
}
}
}
}
}

View File

@ -7,6 +7,7 @@
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.0",
"babel-preset-stage-0": "^6.24.1",
"dotenv-cli": "^1.4.0",
"graphql": "^0.10.5",
"graphql-server-koa": "^1.1.0",
"graphql-tag": "^2.4.2",
@ -18,8 +19,7 @@
"koa-router": "^7.2.1",
"lowdb": "^0.16.2",
"source-map-support": "^0.4.16",
"webpack": "^3.5.5",
"zoo": "^0.1.9"
"webpack": "^3.5.5"
},
"devDependencies": {
"babel-eslint": "^7.2.3",
@ -32,9 +32,9 @@
},
"scripts": {
"lint": "eslint .",
"dev": "zoo webpack-watch-server",
"build": "zoo webpack",
"start": "zoo node dist"
"dev": "dotenv webpack-watch-server",
"build": "dotenv webpack",
"start": "dotenv node dist"
},
"engines": {
"node": ">=8.1.2",