Skip to content

Commit b29419a

Browse files
committed
Update to use new gulp api
1 parent a99f98b commit b29419a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

gulpfile.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var glob = require('glob');
44
var shell = require('gulp-shell');
55
var fs = require('fs');
66

7-
gulp.task('audio', function() {
7+
gulp.task('audio', gulp.parallel(function() {
88
var files = glob.sync('./src/assets/sounds/*.mp3');
99
var outputPath = './dist/audio';
1010
var opts = {
@@ -22,28 +22,28 @@ gulp.task('audio', function() {
2222

2323
return fs.writeFile('./dist/audio' + '.json', JSON.stringify(obj, null, 2));
2424
});
25-
});
25+
}));
2626

27-
gulp.task('images', function(){
27+
gulp.task('images', gulp.parallel(function(){
2828
// There is a texturepacker template for spritesmith but it doesn't work
2929
// well with complex directory structures, so instead we use the shell
3030
// checking TexturePacker --version first ensures it bails if TexturePacker
3131
// isn't installed
32-
return gulp.src('', {read:false})
32+
return gulp.src('*', {read:false})
3333
.pipe(shell([
3434
'TexturePacker --version || echo ERROR: TexturePacker not found, install TexturePacker',
3535
'TexturePacker --disable-rotation --data dist/sprites.json --format json --sheet dist/sprites.png src/assets/images'
3636
]))
3737
.pipe(connect.reload());
38-
});
38+
}));
3939

40-
gulp.task('deploy', function() {
41-
return gulp.src('', {read:false})
40+
gulp.task('deploy', gulp.parallel(function() {
41+
return gulp.src('*', {read:false})
4242
.pipe(shell([
4343
'AWS_PROFILE=duckhunt terraform plan',
4444
'AWS_PROFILE=duckhunt terraform apply',
4545
'aws --profile duckhunt s3 sync dist/ s3://duckhuntjs.com --include \'*\' --acl \'public-read\''
4646
]));
47-
});
47+
}));
4848

49-
gulp.task('default', ['images', 'audio']);
49+
gulp.task('default', gulp.parallel('images', 'audio'));

0 commit comments

Comments
 (0)