Skip to content

Commit

Permalink
Avoid remove .gitkeep on kirby:update + fix browsersync issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pqml committed Jan 24, 2018
1 parent 51a0a98 commit 23f8d38
Show file tree
Hide file tree
Showing 4 changed files with 343 additions and 321 deletions.
2 changes: 2 additions & 0 deletions scripts/kirby-update.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const fs = require('fs-extra')
const path = require('path')

const kirbyModules = require('./utils/kirby-modules')
const updateModule = require('./utils/kirby-update-module')
Expand Down Expand Up @@ -34,6 +35,7 @@ Promise.resolve()
return fs.emptyDir(paths.kirby.cache)
} else sh.info('🕛 ' + kirbyTxt + 'Nothing to update.')
})
.then(() => fs.ensureFile(path.join(paths.kirby.cache, '.gitkeep')))
.then(() => kirbyModules.forEach(module => {
switch (module.status) {
case 'created':
Expand Down
6 changes: 2 additions & 4 deletions scripts/utils/browsersync-update-content.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/*
This is a client-side script.
Don't use node.js methods nor advanced javascript features
*/
// This is a client-side script.
// Don't use node.js methods nor advanced javascript features

(function (bs) {
if (inPanel()) {
Expand Down
Empty file modified www/site/cache/.gitkeep
100755 → 100644
Empty file.
Loading

0 comments on commit 23f8d38

Please sign in to comment.