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

Alert user of Theme Preview path after they've updated a file within a theme #483

Merged
merged 3 commits into from
Apr 29, 2021

Conversation

drewjenkins
Copy link
Contributor

Fixes #244

Description and Context

We want to give users a link to the theme preview when they update it

Screenshots

2021-04-29 14 27 41

@brandenrodgers
Copy link
Contributor

Should we provide this behavior on upload too?

@drewjenkins drewjenkins merged commit f82415c into master Apr 29, 2021
@drewjenkins drewjenkins deleted the issues/244 branch April 29, 2021 20:04
return queue.add(() => {
return upload(accountId, file, dest, apiOptions)
.then(() => {
logger.log(`Uploaded file ${file} to ${dest}`);
notifyOfThemePreview(file, accountId);
Copy link
Contributor

@gcorne gcorne Apr 29, 2021

Choose a reason for hiding this comment

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

@drewjenkins Is there a reason we're doing this in the watch library instead of the watch command? I ask because the original conception of the library package was that it could be used in other scenarios beyond just @hubspot/cli.

I also wonder if outputting as part of initial command output perhaps after the the uploading of the folder if --initial-upload is passed.

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.

Expose theme preview route when watching a theme folder
4 participants