Browse Source

Add dotenv

main
Haris Razis 4 years ago
parent
commit
312eab23f1
No known key found for this signature in database GPG Key ID: 86A4D290ED03FAB4
  1. 0
      client/.env.template
  2. 1535
      client/package-lock.json
  3. 1
      client/package.json
  4. 1
      client/src/index.ts
  5. 0
      server/.env.template
  6. 14
      server/package-lock.json
  7. 1
      server/package.json
  8. 1
      server/src/index.ts

0
client/src/.env.template → client/.env.template

1535
client/package-lock.json

File diff suppressed because it is too large

1
client/package.json

@ -27,6 +27,7 @@
"@types/uuid": "^8.3.0",
"chalk": "^3.0.0",
"concurrently": "^5.3.0",
"dotenv": "^8.2.0",
"nodemon": "^2.0.6",
"socket.io-client": "^3.0.0",
"typescript": "^4.0.5",

1
client/src/index.ts

@ -1,3 +1,4 @@
require('dotenv').config();
import chalk from 'chalk';
import { ClientService } from './class/ClientService';
const { v4: uuidv4 } = require('uuid');

0
server/src/.env.template → server/.env.template

14
server/package-lock.json

@ -14,6 +14,7 @@
"@types/socket.io": "^2.1.11",
"chalk": "^3.0.0",
"concurrently": "^5.3.0",
"dotenv": "^8.2.0",
"nodemon": "^2.0.6",
"socket.io": "^3.0.1",
"typescript": "^4.0.5"
@ -623,6 +624,14 @@
"node": ">=8"
}
},
"node_modules/dotenv": {
"version": "8.2.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz",
"integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==",
"engines": {
"node": ">=8"
}
},
"node_modules/duplexer3": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz",
@ -2472,6 +2481,11 @@
"is-obj": "^2.0.0"
}
},
"dotenv": {
"version": "8.2.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz",
"integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw=="
},
"duplexer3": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz",

1
server/package.json

@ -27,6 +27,7 @@
"@types/socket.io": "^2.1.11",
"chalk": "^3.0.0",
"concurrently": "^5.3.0",
"dotenv": "^8.2.0",
"nodemon": "^2.0.6",
"socket.io": "^3.0.1",
"typescript": "^4.0.5"

1
server/src/index.ts

@ -1,3 +1,4 @@
require('dotenv').config()
import chalk from 'chalk';
import { ServerService } from './class/ServerService';

Loading…
Cancel
Save