Sublime Text 2 and OpenLayers 3
javascript |In case others are interested, here’s a nice setup for OpenLayers 3 development on OS X:
Install the Closure Linter.
sudo easy_install http://closure-linter.googlecode.com/files/closure_linter-latest.tar.gz
Install Sublime Text 2 (register as well, its worth it). Add the Sublime Linter package (use Sublime Package Control).
Edit your user SublimeLinter.sublime-settings
file (Preferences > Package Settings > SublimeLinter > Settings - User) so it looks something like the following:
As described in the readme, if gjslint
is not on your path, you’ll need to provide the path with something like this in your user SublimeLinter.sublime-settings
file:
Edit your user Preferences.sublime-settings
so it includes at least the following:
That’s it. The biggest pain here is that you can’t have per-project package settings. So if you don’t abide by the Closure Linter in all your projects, you have to modify your user SublimeLinter.sublime-settings
when changing projects (i.e. setting "sublimelinter": false
).