use standard instead of jshint
This commit is contained in:
parent
e6866964bd
commit
f363959bc0
2 changed files with 13 additions and 20 deletions
13
Makefile
13
Makefile
|
@ -4,8 +4,6 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
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..."
|
||||||
|
@ -30,17 +28,6 @@ build:
|
||||||
@cp -r comicbook examples
|
@cp -r comicbook examples
|
||||||
@echo "Done"
|
@echo "Done"
|
||||||
|
|
||||||
#
|
|
||||||
# run jshint & quint tests
|
|
||||||
#
|
|
||||||
|
|
||||||
test:
|
|
||||||
@./node_modules/.bin/jshint lib/ComicBook.js --config lib/.jshintrc
|
|
||||||
@./node_modules/.bin/jshint lib/tests/unit/*.js --config lib/.jshintrc
|
|
||||||
@node lib/tests/server.js &
|
|
||||||
@./node_modules/.bin/phantomjs lib/tests/phantom.js "http://localhost:3000/lib/tests"
|
|
||||||
@kill -9 `cat lib/tests/pid.txt`
|
|
||||||
@rm lib/tests/pid.txt
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# remove prior builds
|
# remove prior builds
|
||||||
|
|
20
package.json
Executable file → Normal file
20
package.json
Executable file → Normal file
|
@ -2,10 +2,17 @@
|
||||||
"name": "comic-reader",
|
"name": "comic-reader",
|
||||||
"description": "A HTML5 comic book reader.",
|
"description": "A HTML5 comic book reader.",
|
||||||
"version": "0.5.0",
|
"version": "0.5.0",
|
||||||
"keywords": ["comic", "book", "reader"],
|
"keywords": [
|
||||||
|
"book",
|
||||||
|
"comic",
|
||||||
|
"reader"
|
||||||
|
],
|
||||||
"homepage": "http://reader.justforcomics.com",
|
"homepage": "http://reader.justforcomics.com",
|
||||||
"author": "Bala Clark",
|
"author": "Bala Clark <balaclark@gmail.com>",
|
||||||
"scripts": { "test": "make test" },
|
"scripts": {
|
||||||
|
"pretest": "standard lib/ComicBook.js",
|
||||||
|
"test": "make test"
|
||||||
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/balaclark/HTML5-Comic-Book-Reader.git"
|
"url": "https://github.com/balaclark/HTML5-Comic-Book-Reader.git"
|
||||||
|
@ -18,9 +25,8 @@
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"handlebars": "1.0.10",
|
"handlebars": "1.0.10",
|
||||||
"uglify-js": "1.3.4",
|
"mocha": "^2.2.5",
|
||||||
"jshint": "1.1.0",
|
"standard": "^4.5.3",
|
||||||
"connect": "2.7.8",
|
"uglify-js": "1.3.4"
|
||||||
"phantomjs": "1.9.0-3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue