mirror of
https://github.com/Mibew/open-street-map-plugin.git
synced 2024-11-15 00:34:14 +03:00
Switch go Gulp 4 for builds
This commit is contained in:
parent
6cf3aa7f1a
commit
4ccf6ef3b5
10
gulpfile.js
10
gulpfile.js
@ -18,7 +18,7 @@ gulp.task('bower', function(callback) {
|
||||
});
|
||||
});
|
||||
|
||||
gulp.task('prepare-release', ['bower'], function() {
|
||||
gulp.task('prepare-release', gulp.series('bower', function() {
|
||||
var version = require('./package.json').version;
|
||||
|
||||
return eventStream.merge(
|
||||
@ -28,14 +28,12 @@ gulp.task('prepare-release', ['bower'], function() {
|
||||
.pipe(tar('open-street-map-plugin-' + version + '.tar'))
|
||||
.pipe(gzip())
|
||||
)
|
||||
.pipe(chmod(644))
|
||||
.pipe(chmod(0644))
|
||||
.pipe(gulp.dest('release'));
|
||||
});
|
||||
}));
|
||||
|
||||
// Builds and packs plugins sources
|
||||
gulp.task('default', ['prepare-release'], function() {
|
||||
// The "default" task is just an alias for "prepare-release" task.
|
||||
});
|
||||
gulp.task('default', gulp.series('prepare-release'));
|
||||
|
||||
/**
|
||||
* Returns files stream with the plugin sources.
|
||||
|
@ -2,12 +2,12 @@
|
||||
"version": "0.1.1",
|
||||
"devDependencies": {
|
||||
"bower": "~1.8.8",
|
||||
"gulp": "~3.8.10",
|
||||
"gulp": "~4.0.0",
|
||||
"event-stream": "~3.1.7",
|
||||
"gulp-zip": "~2.0.2",
|
||||
"gulp-tar": "~1.3.1",
|
||||
"gulp-tar": "~3.1.0",
|
||||
"gulp-gzip": "~0.0.8",
|
||||
"gulp-chmod": "~1.2.0",
|
||||
"gulp-chmod": "~3.0.0",
|
||||
"gulp-rename": "~1.2.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user