diff --git a/.gitignore b/.gitignore index f3a84a7..10e9aac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ node_modules/ *.log npm-debug.log* -file-treemap.json +hot-spots.json diff --git a/README.md b/README.md index 9cde5a3..03ff59b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Run `npx beckerei/list-hot-spots` in any git repository. -It generates a `file-treemap.json` file with the all pathes in the project and +It generates a `hot-spots.json` file with the all pathes in the project and the number of commits made in that pace. ## Example output diff --git a/cli.js b/cli.js index 36e0451..1fdd25f 100644 --- a/cli.js +++ b/cli.js @@ -23,7 +23,7 @@ const exec = util.promisify(require('child_process').exec); /****/ function writeToFile(pathes) { - fs.writeFileSync('file-treemap.json', JSON.stringify(pathes), err => { + fs.writeFileSync('hot-spots.json', JSON.stringify(pathes), err => { console.error('Could not write file!', err); }); } diff --git a/file-treemap.json b/file-treemap.json new file mode 100644 index 0000000..8ac7ac1 --- /dev/null +++ b/file-treemap.json @@ -0,0 +1 @@ +[{"id":"cli.js","name":"cli.js","commitCount":3},{"id":".gitignore","name":".gitignore","commitCount":2},{"id":"package.json","name":"package.json","commitCount":1},{"id":"README.md","name":"README.md","commitCount":1}] \ No newline at end of file