-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(project): services modularization (#363)
feat(project)!: modularize services and controllers as classes BREAKING CHANGES: this change is a big rewrite and will be more difficult to merge --------- Co-authored-by: Christiaan Scheermeijer <christiaan@videodock.com>
- Loading branch information
1 parent
18afd04
commit 6b1285b
Showing
140 changed files
with
5,118 additions
and
3,994 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* eslint-disable no-console */ | ||
import fs from 'fs'; | ||
|
||
export const initSettings = (mode: string) => { | ||
const localFile = `ini/.webapp.${mode}.ini`; | ||
const templateFile = `ini/templates/.webapp.${mode}.ini`; | ||
|
||
// The build ONLY uses .ini files in /ini to include in the build output. | ||
// All .ini files in the directory are git ignored to customer specific values out of source control. | ||
// However, this script will automatically create a .ini file for the current mode if it doesn't exist | ||
// by copying the corresponding mode file from the ini/templates directory. | ||
if (!fs.existsSync(localFile) && fs.existsSync(templateFile)) { | ||
fs.copyFileSync(templateFile, localFile); | ||
} | ||
|
||
return localFile; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.