parent
af27626a1c
commit
fbdf3a6942
23 changed files with 37 additions and 201115 deletions
@ -0,0 +1,14 @@ |
||||
const fs = require('node:fs'); |
||||
const path = require('node:path'); |
||||
|
||||
const jsonsDir = path.join(process.cwd(), 'public/jsons'); |
||||
const jsonFiles = fs.readdirSync(jsonsDir); |
||||
|
||||
jsonFiles.forEach((jsonFileName) => { |
||||
console.log(`Compressing ${jsonFileName}...`); |
||||
|
||||
const jsonFilePath = path.join(jsonsDir, jsonFileName); |
||||
const json = require(jsonFilePath); |
||||
|
||||
fs.writeFileSync(jsonFilePath, JSON.stringify(json)); |
||||
}); |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue