Browse Source

Use jshint v1.1

Yury Delendik 11 years ago
parent
commit
17dfc7c700
  1. 2
      make.js
  2. 4
      package.json

2
make.js

@ -1134,7 +1134,7 @@ target.lint = function() {
var jshintPath = path.normalize('./node_modules/.bin/jshint'); var jshintPath = path.normalize('./node_modules/.bin/jshint');
if (!test('-f', jshintPath)) { if (!test('-f', jshintPath)) {
echo('jshint is not installed -- installing...'); echo('jshint is not installed -- installing...');
exec('npm install jshint'); exec('npm install jshint@1.1'); // TODO read version from package.json
} }
exit(exec('"' + jshintPath + '" --reporter test/reporter.js ' + exit(exec('"' + jshintPath + '" --reporter test/reporter.js ' +

4
package.json

@ -1,8 +1,8 @@
{ {
"name": "pdf.js", "name": "pdf.js",
"version": "0.7.169", "version": "0.8.0",
"dependencies": { "dependencies": {
"jshint": "git://github.com/jshint/jshint.git#42ace75a" "jshint": "1.1.x"
}, },
"scripts": { "scripts": {
"test": "node make lint" "test": "node make lint"

Loading…
Cancel
Save