File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -29,19 +29,23 @@ When run through the workshop the low level code to talk to the Arduino is stubb
29
29
30
30
Wire up an Arduino, connect the USB and run your solution directly to see it run for real.
31
31
32
- ## Code style
32
+ ## Contributing
33
+
34
+ ### Code style
33
35
34
36
To move towards a consistent style for nodeschool projects we use the .jshintrc
35
37
as defined in learnyounode: https://github.com/rvagg/learnyounode/blob/master/.jshintrc
36
38
37
- Your favourite jshint runner will work but a gulpfile is provided for hipsters.
39
+ ### Building
38
40
39
- ``` shell
40
- npm install -g gulp
41
- gulp
41
+ npm scripts are present for testing and linting:
42
+
43
+ ```
44
+ $ npm run test
45
+ $ npm run lint
42
46
```
43
47
44
- ... to run it .
48
+ ` pre-commit ` hooks are installed in the repo to run the test/lint scripts with every commit .
45
49
46
50
## Thanks
47
51
Original file line number Diff line number Diff line change 48
48
"node-notifier" : " ^4.3.1"
49
49
},
50
50
"devDependencies" : {
51
- "gulp" : " ^3.6.2 " ,
51
+ "gulp" : " ^3.9.1 " ,
52
52
"gulp-jshint" : " ^2.0.0" ,
53
53
"gulp-shell" : " ^0.5.1" ,
54
54
"jshint" : " ^2.8.0" ,
55
55
"jshint-stylish" : " ^2.1.0" ,
56
56
"pre-commit" : " ^1.1.2"
57
57
},
58
58
"pre-commit" : [
59
- " lint" , " test"
59
+ " lint" ,
60
+ " test"
60
61
]
61
62
}
You can’t perform that action at this time.
0 commit comments