diff --git a/.gitignore b/.gitignore index c25583d..13d5dc2 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,3 @@ /.vs/ notcheckedin/ db.json -output diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 0000000..3cd785b --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1,5 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore +!assets \ No newline at end of file diff --git a/docs/assets/.gitignore b/docs/assets/.gitignore new file mode 100644 index 0000000..05cd4b5 --- /dev/null +++ b/docs/assets/.gitignore @@ -0,0 +1,5 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore +!output \ No newline at end of file diff --git a/docs/assets/output/.gitignore b/docs/assets/output/.gitignore new file mode 100644 index 0000000..86d0cb2 --- /dev/null +++ b/docs/assets/output/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file diff --git a/src/assets/output/.gitignore b/src/assets/output/.gitignore new file mode 100644 index 0000000..05cd4b5 --- /dev/null +++ b/src/assets/output/.gitignore @@ -0,0 +1,5 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore +!output \ No newline at end of file diff --git a/utils/importer.js b/utils/importer.js index 3997cac..e816cbe 100644 --- a/utils/importer.js +++ b/utils/importer.js @@ -51,6 +51,7 @@ function exportXlsx(allDocs) { function writeResultDir(dir, result, optional) { const fs = require('fs'); + /* try { if (!fs.existsSync(dir)){ fs.mkdirSync(dir); @@ -60,6 +61,7 @@ function writeResultDir(dir, result, optional) { if (!optional) throw e; } + */ let data = JSON.stringify(result, null, 4); fs.writeFileSync(dir + outputFile, data);