Skip to content

Commit

Permalink
Merge branch 'documentation' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisekp committed Jun 24, 2016
2 parents 738a1cc + 0fecb69 commit 7fb1ecd
Showing 1 changed file with 45 additions and 18 deletions.
63 changes: 45 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,59 @@ to put comments in your code and then have them annotated across your whole proj

### Installation:


npm install notes -g
```sh
$ npm install notes -g
```

### Usage:

$ notes # will search for notes in cwd
$ notes lib/ test/ # will search only in lib and test
```sh
$ notes # will search for notes in cwd
$ notes lib/ test/ # will search only in lib and test
```

### What It Does:

For example, if a file contained these lines somewhere in it:

code...
# NOTE: This line should get annoated by Notes.
# OPTIMIZE Make things faster!

more code...
# TODO: Annotate your tasks.

yet more code...
# FIXME: Keep up with things to fix.
```text
code...
# NOTE: This line should get annoated by Notes.
# OPTIMIZE Make things faster!
more code...
# TODO: Annotate your tasks.
yet more code...
# FIXME: Keep up with things to fix.
```

Those comments would be annotated as:

* /path/to/my/file
Line 8: ✐ NOTE This line should get annoated by Notes.
Line 9: ↘ OPTIMIZE Make things faster!
Line 10: ✓ TODO Annotate your tasks.
Line 11: ☂ FIXME Keep up with things to fix.
```text
* /path/to/my/file
Line 8: ✐ NOTE This line should get annoated by Notes.
Line 9: ↘ OPTIMIZE Make things faster!
Line 10: ✓ TODO Annotate your tasks.
Line 11: ☂ FIXME Keep up with things to fix.
```

### Development:

#### Build Project

```sh
$ npm install # install all dependencies

$ npm run -s build # build the project
# OR
$ npm i -g nodemon # install nodemon globally
$ npm run -s build:watch # watch src/ dir for changes
```

#### Test the Project

```sh
$ npm link # make globally available
$ notes # use the `notes` app
```

0 comments on commit 7fb1ecd

Please sign in to comment.