jshint, use strict

This commit is contained in:
Bala Clark 2013-05-06 21:42:15 +02:00
parent c0ddf82df8
commit 9fdcb272d0
4 changed files with 707 additions and 674 deletions

View file

@ -1,5 +1,7 @@
build: build:
@echo "Running jshint..."
@./node_modules/.bin/jshint lib/ComicBook.js --config lib/.jshintrc
@echo "Compiling Handlebars templates..." @echo "Compiling Handlebars templates..."
@./node_modules/.bin/handlebars templates/*.handlebars -f lib/templates.js @./node_modules/.bin/handlebars templates/*.handlebars -f lib/templates.js
@echo "Compiling and minifying javascript..." @echo "Compiling and minifying javascript..."

20
lib/.jshintrc Normal file
View file

@ -0,0 +1,20 @@
{
"predef": [
"jQuery",
"Handlebars",
"Pixastic"
],
"forin": true,
"noarg": true,
"noempty": true,
"eqeqeq": true,
"bitwise": true,
"strict": true,
"undef": true,
"unused": true,
"curly": true,
"browser": true,
"maxerr": 50,
"quotmark": "double",
"trailing": false
}

File diff suppressed because it is too large Load diff

View file

@ -17,6 +17,7 @@
], ],
"devDependencies": { "devDependencies": {
"handlebars": "1.0.10", "handlebars": "1.0.10",
"uglify-js": "1.3.4" "uglify-js": "1.3.4",
"jshint": "1.1.0"
} }
} }