diff --git a/run/db/README.md b/run/db/README.md deleted file mode 100644 index 39c0082a..00000000 --- a/run/db/README.md +++ /dev/null @@ -1,3 +0,0 @@ -### By default, this folder stores database of Flood. - -### You should grant Flood R/W permissions to this folder and its contents. diff --git a/run/temp/README.md b/run/temp/README.md deleted file mode 100644 index 3859cec3..00000000 --- a/run/temp/README.md +++ /dev/null @@ -1,3 +0,0 @@ -### By default, this folder stores temporary files of Flood. - -### You should grant Flood R/W permissions to this folder and its contents. diff --git a/scripts/prettier.js b/scripts/prettier.js deleted file mode 100644 index d8b1607f..00000000 --- a/scripts/prettier.js +++ /dev/null @@ -1,43 +0,0 @@ -const fs = require('fs'); -const prettier = require('prettier'); - -const readFile = (filePath) => { - return new Promise((resolve, reject) => { - fs.readFile(filePath, 'utf8', (error, fileContent) => { - if (error != null) { - reject(error); - return; - } - - resolve(fileContent); - }); - }); -}; - -const writeFile = (filePath, fileContent) => { - return new Promise((resolve, reject) => { - fs.writeFile(filePath, fileContent, (writeFileError) => { - if (writeFileError) { - reject(writeFileError); - return; - } - - resolve(filePath); - }); - }); -}; - -const formatFile = async (inputFilePath, outputFilePath) => { - const fileContent = await readFile(inputFilePath); - const prettierConfig = await prettier.resolveConfig(inputFilePath); - const writtenFilePath = await writeFile( - outputFilePath, - prettier.format(fileContent, {...prettierConfig, filepath: inputFilePath}), - ); - - return writtenFilePath; -}; - -module.exports = { - formatFile, -};