jshint, use strict
This commit is contained in:
parent
c0ddf82df8
commit
9fdcb272d0
4 changed files with 707 additions and 674 deletions
2
Makefile
2
Makefile
|
@ -1,5 +1,7 @@
|
|||
|
||||
build:
|
||||
@echo "Running jshint..."
|
||||
@./node_modules/.bin/jshint lib/ComicBook.js --config lib/.jshintrc
|
||||
@echo "Compiling Handlebars templates..."
|
||||
@./node_modules/.bin/handlebars templates/*.handlebars -f lib/templates.js
|
||||
@echo "Compiling and minifying javascript..."
|
||||
|
|
20
lib/.jshintrc
Normal file
20
lib/.jshintrc
Normal 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
|
||||
}
|
1356
lib/ComicBook.js
1356
lib/ComicBook.js
File diff suppressed because it is too large
Load diff
|
@ -17,6 +17,7 @@
|
|||
],
|
||||
"devDependencies": {
|
||||
"handlebars": "1.0.10",
|
||||
"uglify-js": "1.3.4"
|
||||
"uglify-js": "1.3.4",
|
||||
"jshint": "1.1.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue