1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-08 09:46:56 +02:00

make sure the right files are ignored. and not ignored

This commit is contained in:
Pomax
2017-03-26 11:38:04 -07:00
parent 9b985175e7
commit 5355b46e6e
2 changed files with 2 additions and 4 deletions

4
.gitignore vendored
View File

@@ -2,7 +2,7 @@ node_modules
data data
locales locales
images/latex/source images/latex/source
component/section/**/index.js components/sections/**/index.js
!component/section/index.js !components/sections/index.js
.buildmark .buildmark
npm-debug.log npm-debug.log

View File

@@ -14,7 +14,6 @@ var jsxshim = require("./lib/jsx-shim");
const BASEDIR = path.join(__dirname, ".."); const BASEDIR = path.join(__dirname, "..");
var index = require(path.join(BASEDIR, "components/sections")); var index = require(path.join(BASEDIR, "components/sections"));
console.log(index);
var handlers = []; var handlers = [];
Object.keys(index).forEach( section => { Object.keys(index).forEach( section => {
@@ -42,6 +41,5 @@ Object.keys(index).forEach( section => {
`module.exports = generateBase("${section}");` `module.exports = generateBase("${section}");`
].filter(l => !!l).join('\n'); ].filter(l => !!l).join('\n');
console.log(`writing ${section}`);
fs.writeFileSync(path.join(BASEDIR,`components/sections/${section}/index.js`), indexCode); fs.writeFileSync(path.join(BASEDIR,`components/sections/${section}/index.js`), indexCode);
}); });