File tree 4 files changed +33
-7
lines changed
4 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 23
23
"plusplus" : true ,
24
24
"undef" : true ,
25
25
"laxbreak" : true ,
26
- "maxdepth" : 3 ,
26
+ "maxdepth" : 4 ,
27
27
"loopfunc" : true ,
28
- "maxcomplexity" : 9 ,
28
+ "maxcomplexity" : 13 ,
29
29
"maxlen" : 80 ,
30
- "maxparams" : 4
30
+ "maxparams" : 5 ,
31
+ "globals" : {
32
+ "expect" : true ,
33
+ "it" : true ,
34
+ "describe" : true ,
35
+ "beforeEach" : true ,
36
+ "afterEach" : true
37
+ }
31
38
}
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
var gulp = require ( 'gulp' ) ,
3
- shell = require ( 'gulp-shell' ) ;
3
+ shell = require ( 'gulp-shell' ) ,
4
+ jshint = require ( 'gulp-jshint' ) ,
5
+ jasmine = require ( 'gulp-jasmine' ) ;
4
6
5
7
gulp . task ( 'jsdoc' , shell . task ( [
6
8
'./node_modules/.bin/jsdoc -c ./doc-config.json' ,
7
- ] ) ) ;
9
+ ] ) ) ;
10
+
11
+ gulp . task ( 'lint' , function ( ) {
12
+ return gulp . src ( [ './src/**/*.js' ] , [ './test/**/*.js' ] )
13
+ . pipe ( jshint ( ) )
14
+ . pipe ( jshint . reporter ( 'default' ) ) ;
15
+ } ) ;
16
+
17
+ gulp . task ( 'test' , function ( ) {
18
+ return gulp . src ( 'test/**/*.spec.js' )
19
+ . pipe ( jasmine ( ) ) ;
20
+ } ) ;
21
+
22
+ gulp . task ( 'build' , [ 'lint' , 'test' ] ) ;
Original file line number Diff line number Diff line change 11
11
},
12
12
"devDependencies" : {
13
13
"gulp" : " ^3.8.10" ,
14
- "jsdoc" : " ^3.3.0" ,
15
- "gulp-shell" : " ^0.2.11"
14
+ "gulp-jasmine" : " ^1.0.1" ,
15
+ "gulp-jshint" : " ^1.9.0" ,
16
+ "gulp-shell" : " ^0.2.11" ,
17
+ "jsdoc" : " ^3.3.0"
16
18
},
17
19
"scripts" : {
18
20
"test" : " echo \" Error: no test specified\" && exit 1"
Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ and all `*.spec.js` files will be executed.
63
63
Fork the repo and make requred changes. After that push your changes in branch, which is named according to the changes you did.
64
64
Initiate the PR.
65
65
66
+ Make sure you're editor makes validations according to the ` .jshintrc ` in the root directory of the repository.
67
+
66
68
## Contributors
67
69
68
70
[ ![ mgechev] ( https://avatars.githubusercontent.com/u/455023?v=3&s=117 )] ( https://github.com/mgechev ) [ ![ AndreyGeonya] ( https://avatars.githubusercontent.com/u/773648?v=3&s=117 )] ( https://github.com/AndreyGeonya ) [ ![ Microfed] ( https://avatars.githubusercontent.com/u/613179?v=3&s=117 )] ( https://github.com/Microfed ) [ ![ contra] ( https://avatars.githubusercontent.com/u/425716?v=3&s=117 )] ( https://github.com/contra )
You can’t perform that action at this time.
0 commit comments