Minor dist bundle adjustments

The Gulp task now creates a ZIP file with the plugin-dir as root, instead of directly adding the files.
This commit is contained in:
Stefan Kalscheuer 2017-08-02 13:55:50 +02:00
parent 2b6f892b18
commit bc32bd66db

View File

@ -47,7 +47,7 @@ gulp.task('test-cs', function (cb) {
gulp.task('bundle', ['clean'], function () { gulp.task('bundle', ['clean'], function () {
console.log('Collecting files for package dist/' + config.name + config.version + ' ...'); console.log('Collecting files for package dist/' + config.name + config.version + ' ...');
return gulp.src(['**/*.php', '!test/**', '!vendor/**', 'README.md', 'LICENSE.md'], {base: './'}) return gulp.src(['**/*.php', '!test/**', '!vendor/**', 'README.md', 'LICENSE.md'], {base: './'})
.pipe(copy('./dist/' + config.name + '.' + config.version)); .pipe(copy('./dist/' + config.name + '.' + config.version + '/' + config.name));
}); });
// Create a ZIP package of the relevant files for plugin distribution. // Create a ZIP package of the relevant files for plugin distribution.