Skip to content

Commit

Permalink
Merge pull request nkohari#3 from timoxley/feature/coffeescript-depen…
Browse files Browse the repository at this point in the history
…dency

Remove dependency on globally installed coffee-script
  • Loading branch information
nkohari committed Dec 3, 2012
2 parents f57aff1 + cdcad3a commit 50d10b6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 0 additions & 3 deletions README.md
Expand Up @@ -4,12 +4,9 @@ The interface provided is a lot like a typical shell, with familiar commands lik
More documentation (and fewer bugs) coming soon. In the meantime, install it via npm:

```
npm install -g coffee-script
npm install -g jwalk
```

*NOTE:* Right now you need to install coffee-script globally for jwalk to work. Sorry about that. I'll fix it soon.

And then run it like this:

```
Expand Down
4 changes: 4 additions & 0 deletions bin/jwalk
@@ -0,0 +1,4 @@
#!/usr/bin/env node

require('coffee-script')
require('../')
5 changes: 2 additions & 3 deletions jwalk → index.coffee 100755 → 100644
@@ -1,5 +1,3 @@
#!/usr/bin/env coffee

fs = require 'fs'
path = require 'path'
zlib = require 'zlib'
Expand All @@ -22,4 +20,5 @@ loader.load filename, (err, tree) ->
if err?
console.log "Error loading file: #{err}".red
process.exit(2)
prompt.run tree
prompt.run tree

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -4,7 +4,7 @@
"description": "command-line json inspector",
"preferGlobal": "true",
"bin": {
"jwalk": "jwalk"
"jwalk": "bin/jwalk"
},
"dependencies": {
"coffee-script": "1.4.0",
Expand Down

0 comments on commit 50d10b6

Please sign in to comment.