Skip to content
This repository has been archived by the owner on Mar 11, 2018. It is now read-only.

Commit

Permalink
Add lint-test task
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanqing committed Aug 23, 2014
1 parent c1843fc commit 188cf01
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ node_js:

script:
- npm run-script lint
- npm run-script lint-test
- npm run-script cover

after_success:
Expand Down
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jaunt",
"version": "1.1.1",
"version": "1.1.2",
"description": "Get or set a value in an object or array using a dot-delimited string.",
"author": "Lim Yuan Qing",
"license": "MIT",
Expand All @@ -15,8 +15,14 @@
"jshint-stylish": "^0.4.0"
},
"scripts": {
"test": "node_modules/.bin/jasmine-node spec --verbose",
"cover": "node_modules/.bin/istanbul cover node_modules/.bin/jasmine-node ./spec -x **/spec/**",
"lint": "node_modules/.bin/jshint --verbose --reporter node_modules/jshint-stylish/stylish.js ./index.js"
}
"lint": "node_modules/.bin/jshint --verbose --reporter node_modules/jshint-stylish/stylish.js index.js",
"lint-test": "node_modules/.bin/jshint --verbose --reporter node_modules/jshint-stylish/stylish.js ./spec/*.js",
"test": "node_modules/.bin/jasmine-node spec --verbose"
},
"keywords": [
"array",
"key",
"object"
]
}

0 comments on commit 188cf01

Please sign in to comment.