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
1 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,11 @@ gulp.task('build', function(done) {
fs.copySync('README.md', '.tmp-package/README.md');
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) {
if (err)
console.log('Zip Error', err);