Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

refactor: extract upload and deploy to lib modules #1075

Merged
merged 3 commits into from
Feb 18, 2020

Conversation

ashleymichal
Copy link
Contributor

this is a pure refactor i've been meaning to do for awhile; it pulls a lot of the logic out of the publish command into two lib level modules: upload and deploy. the logic in these is used in a couple of places, and it's starting to make sense to keep it out of the commands modules. this will help with a few issues, including uploading a "draft" when a secret is created for a new project, and a lot of the work around consolidating oddly duplicated logic between preview, dev, and publish.

@@ -19,6 +19,7 @@ use project_assets::ProjectAssets;
use text_blob::TextBlob;
use wasm_module::WasmModule;

// these likely belong elsewhere, perhaps in a mod for project type specific behavior.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: i think we should remove this comment and either file an issue or fix it up in this refactor, thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'm happy to do it in this refactor, i'll put it on my Friday list

Copy link
Contributor Author

Choose a reason for hiding this comment

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

jk we need this in, can make an issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@EverlastingBugstopper EverlastingBugstopper left a comment

Choose a reason for hiding this comment

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

lgtm

@gabbifish gabbifish merged commit 6fe586c into master Feb 18, 2020
@gabbifish gabbifish deleted the alewis/refactor-upload-and-deploy branch February 18, 2020 21:51
@EverlastingBugstopper EverlastingBugstopper added this to the 1.8.0-rc.2 milestone Feb 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants