@@ -4,7 +4,7 @@ var glob = require('glob');
4
4
var shell = require ( 'gulp-shell' ) ;
5
5
var fs = require ( 'fs' ) ;
6
6
7
- gulp . task ( 'audio' , function ( ) {
7
+ gulp . task ( 'audio' , gulp . parallel ( function ( ) {
8
8
var files = glob . sync ( './src/assets/sounds/*.mp3' ) ;
9
9
var outputPath = './dist/audio' ;
10
10
var opts = {
@@ -22,28 +22,28 @@ gulp.task('audio', function() {
22
22
23
23
return fs . writeFile ( './dist/audio' + '.json' , JSON . stringify ( obj , null , 2 ) ) ;
24
24
} ) ;
25
- } ) ;
25
+ } ) ) ;
26
26
27
- gulp . task ( 'images' , function ( ) {
27
+ gulp . task ( 'images' , gulp . parallel ( function ( ) {
28
28
// There is a texturepacker template for spritesmith but it doesn't work
29
29
// well with complex directory structures, so instead we use the shell
30
30
// checking TexturePacker --version first ensures it bails if TexturePacker
31
31
// isn't installed
32
- return gulp . src ( '' , { read :false } )
32
+ return gulp . src ( '* ' , { read :false } )
33
33
. pipe ( shell ( [
34
34
'TexturePacker --version || echo ERROR: TexturePacker not found, install TexturePacker' ,
35
35
'TexturePacker --disable-rotation --data dist/sprites.json --format json --sheet dist/sprites.png src/assets/images'
36
36
] ) )
37
37
. pipe ( connect . reload ( ) ) ;
38
- } ) ;
38
+ } ) ) ;
39
39
40
- gulp . task ( 'deploy' , function ( ) {
41
- return gulp . src ( '' , { read :false } )
40
+ gulp . task ( 'deploy' , gulp . parallel ( function ( ) {
41
+ return gulp . src ( '* ' , { read :false } )
42
42
. pipe ( shell ( [
43
43
'AWS_PROFILE=duckhunt terraform plan' ,
44
44
'AWS_PROFILE=duckhunt terraform apply' ,
45
45
'aws --profile duckhunt s3 sync dist/ s3://duckhuntjs.com --include \'*\' --acl \'public-read\''
46
46
] ) ) ;
47
- } ) ;
47
+ } ) ) ;
48
48
49
- gulp . task ( 'default' , [ 'images' , 'audio' ] ) ;
49
+ gulp . task ( 'default' , gulp . parallel ( 'images' , 'audio' ) ) ;
0 commit comments