Skip to content

Commit

Permalink
MacPorts Support
Browse files Browse the repository at this point in the history
Adds default MacPorts path to build. Updates README accordingly.

Updates README to disclose issue #23, hopefully preventing more redundant issues being created.
  • Loading branch information
Jamie Hoover committed May 11, 2012
1 parent 2ca3aaf commit 845bb15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion JSHint.sublime-build
Expand Up @@ -7,7 +7,7 @@
"line_regex": "(\\d+),(\\d+)", "line_regex": "(\\d+),(\\d+)",


"osx": { "osx": {
"path": "/usr/local/bin" "path": "/usr/local/bin:/opt/local/bin"
}, },


"windows": { "windows": {
Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -4,19 +4,19 @@ The best JavaScript syntax checker: [JSHint](http://www.jshint.com/) for the bes


**Prerequisites:** [node-jshint](https://github.com/jshint/node-jshint) and [Sublime Package Control](http://wbond.net/sublime_packages/package_control/installation) **Prerequisites:** [node-jshint](https://github.com/jshint/node-jshint) and [Sublime Package Control](http://wbond.net/sublime_packages/package_control/installation)


**Mac OS X:** Install node with homebrew `brew update` `brew install node`. Make sure you have either the latest Command Line Tools or Xcode before installing homebrew. The path to jshint is hardcoded in this plugin as `/usr/local/bin/jshint`. **Mac OS X:** Installing node with homebrew or macports is assumed. The path to jshint is hardcoded in this plugin as `/usr/local/bin:/opt/local/bin`. There is no reliable way to get the path from your environment.


**Linux:** Make sure jshint is in your environment path. **Linux:** Make sure jshint is in your environment path.


**Windows:** Node should be in your `CLASSPATH` in environment variables, `C:\Program Files (x86)\nodejs` **Windows:** Installing node with the Windows Installer from nodejs.org is assumed. **Known Bug:** Sublime Text 2 for Windows doesn't show the console output. As a temporary hack, you can output to a file. See issue #23.


##Install node-jshint with npm ##Install node-jshint with npm


npm install -g jshint npm install -g jshint


##Install JSHint with Package Control in Sublime Text 2 ##Install JSHint with Package Control in Sublime Text 2


1. `command`-`shift`-`P` *or `control`-`shift`-`P` in Linux/Windows* 1. `command`-`shift`-`P` *or* `control`-`shift`-`P` in Linux/Windows*
2. type `install p`, select `Package Control: Install Package` 2. type `install p`, select `Package Control: Install Package`
3. type `jshint`, select `JSHint` 3. type `jshint`, select `JSHint`


Expand Down

0 comments on commit 845bb15

Please sign in to comment.