1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-02 12:54:23 +02:00

index files are mechanical, so now they're script-generated

This commit is contained in:
Pomax
2017-03-26 11:28:21 -07:00
parent 6fcf9c9378
commit 8167831b19
49 changed files with 85 additions and 313 deletions

View File

@@ -38,5 +38,5 @@ Object.keys(index).forEach( section => {
`module.exports = generateBase("${section}");`
].filter(l => !!l).join('\n');
console.log('[',section,"]\n", indexCode,'\n');
fs.writeFileSync(path.join(BASEDIR,`components/sections/${section}/index.js`), indexCode);
});