@@ -13,7 +13,7 @@ gulp.task('default', function() {
13
13
console . log ( 'gulp wordpress-lang to compile the to-team.pot, to-team-en_EN.po and to-team-en_EN.mo' ) ;
14
14
} ) ;
15
15
16
- gulp . task ( 'wordpress-pot' , function ( ) {
16
+ gulp . task ( 'wordpress-pot' , function ( done ) {
17
17
return gulp . src ( '**/*.php' )
18
18
. pipe ( sort ( ) )
19
19
. pipe ( wppot ( {
@@ -22,10 +22,11 @@ gulp.task('wordpress-pot', function() {
22
22
bugReport : 'https://bitbucket.org/feedmycode/to-team' ,
23
23
team : 'LightSpeed <webmaster@lsdev.biz>'
24
24
} ) )
25
- . pipe ( gulp . dest ( 'languages/to-team.pot' ) )
25
+ . pipe ( gulp . dest ( 'languages/to-team.pot' ) ) ,
26
+ done ( ) ;
26
27
} ) ;
27
28
28
- gulp . task ( 'wordpress-po' , function ( ) {
29
+ gulp . task ( 'wordpress-po' , function ( done ) {
29
30
return gulp . src ( '**/*.php' )
30
31
. pipe ( sort ( ) )
31
32
. pipe ( wppot ( {
@@ -34,13 +35,17 @@ gulp.task('wordpress-po', function() {
34
35
bugReport : 'https://bitbucket.org/feedmycode/to-team' ,
35
36
team : 'LightSpeed <webmaster@lsdev.biz>'
36
37
} ) )
37
- . pipe ( gulp . dest ( 'languages/to-team-en_EN.po' ) )
38
+ . pipe ( gulp . dest ( 'languages/to-team-en_EN.po' ) ) ,
39
+ done ( ) ;
38
40
} ) ;
39
41
40
- gulp . task ( 'wordpress-po-mo' , [ 'wordpress-po' ] , function ( ) {
42
+ gulp . task ( 'wordpress-po-mo' , gulp . series ( [ 'wordpress-po' ] , function ( done ) {
41
43
return gulp . src ( 'languages/to-team-en_EN.po' )
42
44
. pipe ( gettext ( ) )
43
- . pipe ( gulp . dest ( 'languages' ) )
44
- } ) ;
45
+ . pipe ( gulp . dest ( 'languages' ) ) ,
46
+ done ( ) ;
47
+ } ) ) ;
45
48
46
- gulp . task ( 'wordpress-lang' , ( [ 'wordpress-pot' , 'wordpress-po-mo' ] ) ) ;
49
+ gulp . task ( 'wordpress-lang' , gulp . series ( [ 'wordpress-pot' , 'wordpress-po-mo' ] , function ( done ) {
50
+ done ( ) ;
51
+ } ) ) ;
0 commit comments