File tree Expand file tree Collapse file tree 6 files changed +46
-14
lines changed Expand file tree Collapse file tree 6 files changed +46
-14
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = function ( grunt ) {
2
+ // Project configuration.
3
+ grunt . initConfig ( {
4
+ pkg : '<json:package.json>' ,
5
+ lint : {
6
+ files : [ 'grunt.js' , 'lib/**/*.js' ]
7
+ } ,
8
+ watch : {
9
+ files : '<config:lint.files>' ,
10
+ tasks : 'default'
11
+ } ,
12
+ jshint : {
13
+ options : {
14
+ curly : true ,
15
+ eqeqeq : true ,
16
+ immed : true ,
17
+ latedef : true ,
18
+ newcap : true ,
19
+ noarg : true ,
20
+ sub : true ,
21
+ undef : true ,
22
+ boss : true ,
23
+ eqnull : true ,
24
+ node : true
25
+ } ,
26
+ globals : {
27
+ exports : true
28
+ }
29
+ }
30
+ } ) ;
31
+
32
+ // Default task.
33
+ grunt . registerTask ( 'default' , 'lint' ) ;
34
+ } ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ exports = module.exports = function Calculate(command) {
8
8
} else {
9
9
return ( p1 . x === p2 . x && p1 . y === p2 . y ) ;
10
10
}
11
- }
11
+ } ;
12
12
13
13
this . _calculatePadding = function ( data ) {
14
14
if ( data . video . aspect ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ exports = module.exports = function Extensions() {
5
5
return process . env . FFMPEG_PATH ;
6
6
}
7
7
return 'ffmpeg' ;
8
- }
8
+ } ;
9
9
10
10
this . toAspectRatio = function ( ar ) {
11
11
var p = ar . split ( ':' ) ;
@@ -17,7 +17,7 @@ exports = module.exports = function Extensions() {
17
17
y : parseInt ( p [ 1 ] , 10 )
18
18
} ;
19
19
}
20
- }
20
+ } ;
21
21
22
22
this . ffmpegTimemarkToSeconds = function ( timemark ) {
23
23
var parts = timemark . split ( ':' ) ;
@@ -35,7 +35,7 @@ exports = module.exports = function Extensions() {
35
35
secs += parseInt ( secParts [ 0 ] , 10 ) ;
36
36
37
37
return secs ;
38
- }
38
+ } ;
39
39
40
40
this . parseVersionString = function ( versionstr ) {
41
41
var x = versionstr . split ( '.' ) ;
@@ -48,7 +48,7 @@ exports = module.exports = function Extensions() {
48
48
minor : min ,
49
49
patch : pat
50
50
} ;
51
- }
51
+ } ;
52
52
53
53
this . atLeastVersion = function ( actualVersion , minVersion ) {
54
54
var minimum = this . parseVersionString ( minVersion ) ;
@@ -67,5 +67,5 @@ exports = module.exports = function Extensions() {
67
67
}
68
68
}
69
69
}
70
- }
70
+ } ;
71
71
} ;
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ function FfmpegCommand(args) {
217
217
if ( ! a && ! b ) {
218
218
return 0 ;
219
219
}
220
- while ( a != 0 ) {
220
+ while ( a !== 0 ) {
221
221
var z = b % a ;
222
222
b = a ;
223
223
a = z ;
Original file line number Diff line number Diff line change @@ -8,22 +8,22 @@ exports = module.exports = function Metadata(inputfile) {
8
8
path = '"' + path + '"' ;
9
9
}
10
10
return path ;
11
- }
11
+ } ;
12
12
13
13
this . inputfile = inputfile ;
14
14
15
15
// for internal use
16
16
this . getMetadata = function ( inputfile , callback ) {
17
17
this . inputfile = inputfile ;
18
18
this . _loadDataInternal ( callback ) ;
19
- }
19
+ } ;
20
20
21
21
// for external use
22
22
this . get = function ( callback ) {
23
23
// import extensions for external call
24
24
require ( './extensions' ) . apply ( Metadata . prototype ) ;
25
25
this . _loadDataInternal ( callback ) ;
26
- }
26
+ } ;
27
27
28
28
this . _loadDataInternal = function ( callback ) {
29
29
var inputfile = this . escapedPath ( this . inputfile ) ;
@@ -117,5 +117,5 @@ exports = module.exports = function Metadata(inputfile) {
117
117
118
118
callback ( ret ) ;
119
119
} ) ;
120
- }
120
+ } ;
121
121
} ;
You can’t perform that action at this time.
0 commit comments