Skip to content

fix(livesync): delete files during livesync #3388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2018

Conversation

Mitko-Kerezov
Copy link
Contributor

#3362 regressed deletion of files during LiveSync.
Fix this by implementing the following logic:

  1. In case this is the first ever LiveSync (no file system watcher) clean the app directory located inside platforms and prepare all javascript files anew
  2. In case this is an incremental LiveSync (an event from within the file system watcher) only delete the files that were actually deleted (e. g. filesToRemove)

Ping @rosen-vladimirov

@Mitko-Kerezov Mitko-Kerezov self-assigned this Feb 22, 2018

}

_(itemsToRemove).each((directoryItem: string) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just _.each(...

@rosen-vladimirov rosen-vladimirov merged commit e482d14 into master Feb 25, 2018
@rosen-vladimirov rosen-vladimirov deleted the kerezov/fix-livesync-delete branch February 25, 2018 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants