Add jsformat and jshint. Add additional npm script tasks. Fix formatting errors
Showing
.jsfmtrc
0 → 100644
This diff is collapsed.
.jshintrc
0 → 100644
... | ... | @@ -4,13 +4,16 @@ |
"author": "Aaron Tiwell <aaron.tidwell@gmail.com>", | ||
"main": "./lib/challonge.js", | ||
"version": "1.2.0", | ||
"contributors": [{ | ||
"name": "Ricardo Reis", | ||
"email": "ricardojoaoreis@gmail.com" | ||
}, { | ||
"name": "Jonas Vanen", | ||
"email": "jonas.vanen@gmail.com" | ||
}], | ||
"contributors": [ | ||
{ | ||
"name": "Ricardo Reis", | ||
"email": "ricardojoaoreis@gmail.com" | ||
}, | ||
{ | ||
"name": "Jonas Vanen", | ||
"email": "jonas.vanen@gmail.com" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Tidwell/node-challonge" | ||
... | ... | @@ -28,11 +31,23 @@ |
"devDependencies": { | ||
"istanbul": "^0.4.5", | ||
"jasmine": "^2.5.3", | ||
"jsfmt": "^0.5.3", | ||
"jshint": "^2.9.4", | ||
"mockery": "^2.0.0" | ||
}, | ||
"scripts": { | ||
"test": "./node_modules/jasmine/bin/jasmine.js", | ||
"coverage": "node ./node_modules/istanbul/lib/cli.js cover --include-all-sources ./node_modules/jasmine/bin/jasmine.js -x '**/spec/**' -x '**/key.js'" | ||
"coverage": "node ./node_modules/istanbul/lib/cli.js cover --include-all-sources ./node_modules/jasmine/bin/jasmine.js -x '**/spec/**' -x '**/key.js'", | ||
"format-lib": "./node_modules/jsfmt/bin/jsfmt -w ./lib ./*.js", | ||
"format-spec": "./node_modules/jsfmt/bin/jsfmt -w ./spec", | ||
"format": "npm run-script format-lib && npm run-script format-spec", | ||
"lint-lib": "./node_modules/jshint/bin/jshint ./lib", | ||
"lint-spec": "./node_modules/jshint/bin/jshint ./spec", | ||
"lint": "npm run-script lint-lib && npm run-script lint-spec", | ||
"integrate": "npm run-script test && npm run-script format && npm run-script lint" | ||
}, | ||
"engine": "node >= 0.10.x" | ||
} |
Please register or sign in to comment