Skip to content
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

Chore: Rsync.plugin should update files rather than delete and replace #327

Closed
wants to merge 1 commit into from

Conversation

pramodsum
Copy link
Contributor

  • This is so that annotations.js/annotations.css and
    preview.js/preview.css can be synced from separate
    repositories simultaneously

- This is so that annotations.js/annotations.css and
  preview.js/preview.css can be synced from separate repositories simultaneously
@@ -10,7 +10,7 @@ RsyncPlugin.prototype.apply = function rsync(compiler) {
compiler.plugin('done', () => {
console.log('');
console.log(`🔄 🔄 🔄 Rsync starting for ${this.source} 🔄 🔄 🔄`);
execSync(`rsync -avz --delete --exclude=".*" "${this.source}" "${this.destination}"`, { stdio: [0, 1, 2] });
Copy link
Contributor

@tonyjin tonyjin Aug 22, 2017

Choose a reason for hiding this comment

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

Note that this can potentially result in a lot of cruft if you change file names around or do some larger configuration change. Hypothetical, but this could cause a situation in which you can cause an error by changing the name of a referenced file but then not updating the name in code. Rsync wouldn't delete the old file on your VM, so your dev environment might still work, but would then break in staging/production.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm good point. Let me look into alternative setups

@pramodsum pramodsum closed this Aug 25, 2017
pramodsum pushed a commit to JustinHoldstock/box-content-preview that referenced this pull request Jan 25, 2019
https://github.com/box/box-annotations/releases/tag/v3.7.1

* Update Translations (box#328) ([39805b8](box/box-annotations@39805b8)), closes [box#328](box/box-annotations#328)
* Chore: Add escape hotkey on AnnotationPopover (box#327) ([e92ec85](box/box-annotations@e92ec85)), closes [box#327](box/box-annotations#327)
* Fix: Highlight selection on Surface (box#326) ([6a3b83a](box/box-annotations@6a3b83a)), closes [box#326](box/box-annotations#326)
* Fix: Import correct styling for flyout component (box#325) ([14d65f6](box/box-annotations@14d65f6)), closes [box#325](box/box-annotations#325)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants