Skip to content

Commit

Permalink
Add view latest version support from package.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
sadiqhabib committed Apr 3, 2017
1 parent 09c08b2 commit 2629847
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/notes
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
const program = require('commander');

const Notes = require('../lib/notes');
const Package = require('../package.json');

program
.version('1.0.0')
.version(Package.version)
.description('Tool to summarise all code annotation like TODO or FIXME')
.option('-s, --source [dir]', 'root directory to be included only for checks (default: current working directory)')
.option('-x, --patterns [dir]', 'Path patterns to exclude (default: include all files and directories)',
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"type": "git",
"url": "git://github.com/ahmadassaf/code-notes.git"
},
"scripts": {
"test":"notes",
"test:clean":"node ./bin/notes . --git-ignore .gitignore"
},
"main": "./lib/notes",
"engines": {
"node": ">= v0.4.7"
Expand Down

0 comments on commit 2629847

Please sign in to comment.