Skip to content

Commit

Permalink
Moves ConfigFile class to SpraxDev/Node-Commons repository
Browse files Browse the repository at this point in the history
SpraxDev/Node-Commons#0395cc5ed9c4a4cf2bc38292b8c15093dba98c51
  • Loading branch information
SpraxDev committed Feb 28, 2022
1 parent 3d93981 commit 5e7ba23
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 264 deletions.
41 changes: 33 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"npm": ">=7.0.0"
},
"dependencies": {
"@spraxdev/node-commons": "github:SpraxDev/Node-Commons#01e3fce2b10e22c5a6fc74ffa066b3a3c2e0c07f",
"@spraxdev/node-commons": "github:SpraxDev/Node-Commons#2d127dc11363ba20613f02deab81f62f382c993f",
"connect-pg-simple": "^7.0.0",
"cookie-parser": "^1.4.6",
"ejs": "^3.1.6",
Expand Down
2 changes: 1 addition & 1 deletion src/Constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import ConfigFile from '@spraxdev/node-commons/dist/ConfigFile';
import HttpClient from '@spraxdev/node-commons/dist/HttpClient';
import Fs from 'fs';
import MinecraftApi from 'minecraft-api-client';
Expand All @@ -6,7 +7,6 @@ import { DynamicMailGenerator } from './DynamicMailGenerator';
import { DynamicPageGenerator } from './DynamicPageGenerator';
import { mcAuthCfg } from './global';
import { getLocalization } from './Localization';
import { ConfigFile } from './utils/ConfigFile';

export const APP_VERSION: string = JSON.parse(Fs.readFileSync(Path.join(__dirname, '..', 'package.json'), 'utf-8')).version ?? 'UNKNOWN_APP_VERSION';

Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import ConfigFile from '@spraxdev/node-commons/dist/ConfigFile';
import Fs from 'fs';
import { createServer, Server } from 'http';
import Path from 'path';

import * as rfs from 'rotating-file-stream';
import { getCfg } from './Constants';
import { mcAuthDbCfg } from './global';
import { ApiError } from './utils/ApiError';
import { ConfigFile } from './utils/ConfigFile';
import { DbUtils } from './utils/DbUtils';
import { MailUtils } from './utils/MailUtils';
import WebServer from './WebServer';
Expand Down
86 changes: 0 additions & 86 deletions src/utils/ConfigFile.ts

This file was deleted.

166 changes: 0 additions & 166 deletions tests/utils/ConfigFile.test.ts

This file was deleted.

0 comments on commit 5e7ba23

Please sign in to comment.