fix grunt zip
This commit is contained in:
+4
-3
@@ -396,7 +396,7 @@ module.exports = grunt => {
|
|||||||
cp.execSync("composer run-script setConfigParams", {stdio: 'ignore'});
|
cp.execSync("composer run-script setConfigParams", {stdio: 'ignore'});
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.registerTask('zip', () => {
|
grunt.registerTask('zip', function () { // Don't change to arrow-function.
|
||||||
const archiver = require('archiver');
|
const archiver = require('archiver');
|
||||||
|
|
||||||
let resolve = this.async();
|
let resolve = this.async();
|
||||||
@@ -425,8 +425,9 @@ module.exports = grunt => {
|
|||||||
|
|
||||||
archive
|
archive
|
||||||
.directory(currentPath + '/build/' + folder, folder)
|
.directory(currentPath + '/build/' + folder, folder)
|
||||||
.pipe(zipOutput)
|
.pipe(zipOutput);
|
||||||
.finalize();
|
|
||||||
|
archive.finalize();
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.registerTask('npm-install', () => {
|
grunt.registerTask('npm-install', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user