Existing log files will be removed from the package creation.

This commit is contained in:
Alex Tselegidis 2016-01-17 19:06:57 +01:00
parent 18be8b65f7
commit caa7ce07b2

View file

@ -48,6 +48,11 @@ gulp.task('build', function(done) {
fs.copySync('README.md', '.tmp-package/README.md'); fs.copySync('README.md', '.tmp-package/README.md');
fs.copySync('LICENSE', '.tmp-package/LICENSE'); fs.copySync('LICENSE', '.tmp-package/LICENSE');
del.sync([
'.tmp-package/application/logs/*',
'!.tmp-package/application/logs/index.html'
])
zip('.tmp-package', { saveTo: 'easyappointments.zip' }, function (err, buffer) { zip('.tmp-package', { saveTo: 'easyappointments.zip' }, function (err, buffer) {
if (err) if (err)
console.log('Zip Error', err); console.log('Zip Error', err);