Skip to content

Commit 2101c2e

Browse files
committed
add extra logging to bundle-data script
1 parent 6eab67d commit 2101c2e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

scripts/bundle-data-dir.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function bundleDataDir({fromDir, toFile}) {
2626
}
2727

2828
const loaded = files.map(fpath => {
29+
console.log(fpath)
2930
let contents = fs.readFileSync(fpath, 'utf-8')
3031
return yaml.safeLoad(contents)
3132
})

scripts/bundle-data.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const dirs = findDirsIn(fromDir)
2727
dirs.forEach(dirname => {
2828
const input = path.join(fromDir, dirname)
2929
const output = path.join(toDir, dirname) + '.json'
30+
console.log(`bundle-data-dir ${input} ${output}`)
3031
console.time(`bundle-data-dir ${input} ${output}`)
3132
bundleDataDir({fromDir: input, toFile: output})
3233
console.timeEnd(`bundle-data-dir ${input} ${output}`)
@@ -37,6 +38,7 @@ const files = findFilesIn(fromDir)
3738
files.forEach(file => {
3839
const input = path.join(fromDir, file)
3940
const output = path.join(toDir, file).replace(/\.(.*)$/, '.json')
41+
console.log(`convert-data-file ${input} ${output}`)
4042
console.time(`convert-data-file ${input} ${output}`)
4143
convertDataFile({fromFile: input, toFile: output})
4244
console.timeEnd(`convert-data-file ${input} ${output}`)

0 commit comments

Comments
 (0)