optimized compiler for GC
This commit is contained in:
parent
e5f1227948
commit
dcb9ae2f68
@ -29,10 +29,10 @@ reader.on('line', (line) => {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function writeThesaurus(thispath, entry) {
|
function writeThesaurus(thispath, entry) {
|
||||||
|
|
||||||
}
|
}
|
||||||
async function writeSounds(thispath, entry) {
|
function writeSounds(thispath, entry) {
|
||||||
var sounds = JSON.parse(fs.readFileSync(thispath+"sounds.json",'utf-8'));
|
var sounds = JSON.parse(fs.readFileSync(thispath+"sounds.json",'utf-8'));
|
||||||
|
|
||||||
if (entry.sounds == null){
|
if (entry.sounds == null){
|
||||||
@ -51,8 +51,9 @@ async function writeSounds(thispath, entry) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
fs.writeFileSync(thispath+"sounds.json",JSON.stringify(sounds));
|
fs.writeFileSync(thispath+"sounds.json",JSON.stringify(sounds));
|
||||||
|
sounds = null;
|
||||||
}
|
}
|
||||||
async function writeDefinitions(thispath, entry) {
|
function writeDefinitions(thispath, entry) {
|
||||||
|
|
||||||
var definitions = JSON.parse(fs.readFileSync(thispath+"definitions.json",'utf-8'));
|
var definitions = JSON.parse(fs.readFileSync(thispath+"definitions.json",'utf-8'));
|
||||||
|
|
||||||
@ -67,7 +68,7 @@ async function writeDefinitions(thispath, entry) {
|
|||||||
definitions.glosses.push(ele.glosses);
|
definitions.glosses.push(ele.glosses);
|
||||||
});
|
});
|
||||||
fs.writeFileSync(thispath+"definitions.json", JSON.stringify(definitions));
|
fs.writeFileSync(thispath+"definitions.json", JSON.stringify(definitions));
|
||||||
|
definitions = null;
|
||||||
}
|
}
|
||||||
function initializeDir(path) {
|
function initializeDir(path) {
|
||||||
fs.mkdirSync(path, {recursive:true});
|
fs.mkdirSync(path, {recursive:true});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user