Permalink
Browse files

Linting with JSHint: run npm install --dev for dependency

  • Loading branch information...
Tom MacWright
Tom MacWright committed May 10, 2011
1 parent 2929ba2 commit d71ab50c8cba9ae104446494f1a69ee82dac12aa
Showing with 13 additions and 3 deletions.
  1. +4 −1 Makefile
  2. +1 −1 control/lib/tooltip.js
  3. +8 −1 package.json
View
@@ -8,6 +8,9 @@ ext:
wget --no-check-certificate https://github.com/developmentseed/openlayers_slim/raw/v1.9/OpenLayers.js -O ext/OpenLayers.js
wget --no-check-certificate https://github.com/stamen/modestmaps-js/raw/c202b0a274f4235c4ebd8362fff11d88a2c0fc8f/modestmaps.min.js -O ext/modestmaps.js
+lint:
+ ./node_modules/.bin/jshint control/lib/*.js control/*/*.js
+
build/wax.ol.min.js:
cat lib/*.js control/lib/*.js control/ol/*.js > build/wax.ol.js
uglifyjs build/wax.ol.js > build/wax.ol.min.js
@@ -23,7 +26,7 @@ build/wax.mm.min.js:
build_setup:
mkdir build
-build: build_setup build/wax.ol.min.js build/wax.g.min.js build/wax.mm.min.js
+build: build_setup build/wax.ol.min.js build/wax.g.min.js build/wax.mm.min.js lint
clean:
rm -rf build
View
@@ -75,5 +75,5 @@ wax.tooltip.unselect = function(feature, context, layer_id, evt) {
.removeClass('hidden')
.show();
- $(context).triggerHandler('removedtooltip', [feature, context, evt])
+ $(context).triggerHandler('removedtooltip', [feature, context, evt]);
};
View
@@ -1,6 +1,13 @@
{
"author": "Development Seed <info@developmentseed.org>",
"name": "wax",
+ "author": "Tom MacWright <macwright@gmail.com>",
"version": "1.2.2",
- "files": [ "build" ]
+ "files": [
+ "build"
+ ],
+ "devDependencies": {
+ "jshint": "0.2.x",
+ "docco": "0.3.x"
+ }
}

0 comments on commit d71ab50

Please sign in to comment.