Update use of readCategories.js

This commit is contained in:
Frank Li 2017-07-25 16:30:49 -07:00
parent 5b9bb1b2b5
commit ab58eaa9fa
4 changed files with 6 additions and 35 deletions

View file

@ -90,15 +90,7 @@ function readCategories(layout) {
allCategories[language] = categories;
}
fs.writeFileSync(
__dirname + "/../core/" + layout + "Categories.js",
"/**\n" +
" * @generated\n" +
" */\n" +
"module.exports = " +
JSON.stringify(allCategories, null, 2) +
";"
);
return allCategories;
}
module.exports = readCategories;