Skip to content

Commit

Permalink
Rename generated file to hot-spots.json
Browse files Browse the repository at this point in the history
  • Loading branch information
beckerei committed Oct 13, 2019
1 parent 6151a34 commit ef4b251
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules/
*.log
npm-debug.log*
file-treemap.json
hot-spots.json
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
Expand Down
1 change: 1 addition & 0 deletions file-treemap.json
Original file line number Diff line number Diff line change
@@ -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}]

0 comments on commit ef4b251

Please sign in to comment.