Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit fae7c87

Browse files
author
Hans Kristian Flaatten
committed
Add JSHint code linting to wercker ci build
1 parent 792acd6 commit fae7c87

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "mocha test.js",
8+
"hint": "./node_modules/.bin/jshint index.js test.js",
89
"watch": "./node_modules/.bin/mocha -w test.js"
910
},
1011
"repository": {
@@ -26,6 +27,7 @@
2627
},
2728
"homepage": "https://github.com/Turistforeningen/node-im-resize",
2829
"devDependencies": {
30+
"jshint": "~2",
2931
"mocha": "~2"
3032
},
3133
"dependencies": {

wercker.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
box: starefossen/iojs-imagemagick:1-6
22
build:
33
steps:
4-
#- jshint:
5-
# version: 2.6
6-
74
- script:
85
name: echo nodejs information
96
code: |
@@ -16,6 +13,12 @@ build:
1613
convert --version
1714
1815
- npm-install
16+
17+
- script:
18+
name: jshint
19+
code: |
20+
npm run hint
21+
1922
- npm-test
2023

2124
after-steps:

0 commit comments

Comments
 (0)