forked from PreMiD/Presences
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Move tools to "Tools" folder and remove some things.
- Loading branch information
Showing
12 changed files
with
87 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "../tools/auto/tsconfig.auto.json", | ||
"files": ["../tools/auto/presenceUpdater.ts"] | ||
} |
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,4 @@ | ||
{ | ||
"extends": "../tools/auto/tsconfig.auto.json", | ||
"files": ["../tools/auto/schemaValidator.ts"] | ||
} |
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,4 @@ | ||
{ | ||
"extends": "../tools/auto/tsconfig.auto.json", | ||
"files": ["../tools/auto/syntaxEnforcer.ts"] | ||
} |
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,4 @@ | ||
{ | ||
"extends": "../tools/auto/tsconfig.auto.json", | ||
"files": ["../tools/translator.ts"] | ||
} |
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
File renamed without changes.
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,14 @@ | ||
{ | ||
"compilerOptions": { | ||
"typeRoots": ["../../@types", "../../node_modules/@types"], | ||
"module": "CommonJS", | ||
"target": "ES2020", | ||
"esModuleInterop": true, | ||
"removeComments": true, | ||
"noUnusedParameters": true, | ||
"noUnusedLocals": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"newLine": "lf", | ||
"inlineSourceMap": true | ||
} | ||
} |
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 |
---|---|---|
|
@@ -2,15 +2,16 @@ | |
* Translation Tool for PreMiD Presences. | ||
* @author callumok2004 <[email protected]> | ||
* @author Bas950 <[email protected]> | ||
* @contributor ririxidev <[email protected]> | ||
* @author ririxidev <[email protected]> | ||
*/ | ||
|
||
import axios from "axios"; | ||
import { existsSync, readFileSync, readdirSync, writeFileSync } from "fs"; | ||
import { gray, green, hex, red, white, yellow } from "chalk"; | ||
import ora, { Ora } from "ora"; | ||
|
||
import axios from "axios"; | ||
import debug from "debug"; | ||
import { prompt } from "enquirer"; | ||
import { existsSync, readdirSync, readFileSync, writeFileSync } from "fs"; | ||
import ora, { Ora } from "ora"; | ||
|
||
debug.enable("Translator:*"); | ||
let loadSpinner: Ora, | ||
|
@@ -45,7 +46,7 @@ const spinnerSettings = { | |
loadFiles = async (lang: string): Promise<boolean> => { | ||
language = lang; | ||
info("Loading and caching files."); | ||
const src = `${process.cwd()}/websites/`; | ||
const src = `./websites/`; | ||
if (!existsSync(src)) | ||
return ( | ||
error("Presences folder could not be found... exiting."), process.exit() | ||
|
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