Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Watch folder support #1600

Closed
azcn2503 opened this issue May 16, 2020 · 9 comments
Closed

Watch folder support #1600

azcn2503 opened this issue May 16, 2020 · 9 comments
Assignees
Labels
enhancement Change that's on the roadmap

Comments

@azcn2503
Copy link
Contributor

Is your feature request related to a problem? Please describe.
In previous releases of Beaker browser, it was possible to create a site from a local folder on my computer and for the browser to watch the folder for changes. It would be really nice if this feature was reintroduced so that when I build and export my local site (I am using Next.js) that the site updates automatically.

Describe the solution you'd like
Reintroduction of the watch folder for changes functionality.

Describe alternatives you've considered
I've considered recreating the site each time but that seems like a lot of manual effort and will cause the URL to change.

Additional context
Perhaps I am misunderstanding how the protocol is supposed to function and I should instead rely on a new Beaker API.

@azcn2503 azcn2503 added the feature request Suggested change that's under consideration but not yet on the roadmap label May 16, 2020
@pfrazee
Copy link
Member

pfrazee commented May 16, 2020

@azcn2503 I think this is a reasonable request. I'm currently leaning toward building a CLI toolset that could handle this.

@pfrazee pfrazee self-assigned this May 16, 2020
@guybedford
Copy link

I'd still love to see this to be able to use Beaker as a replacement for a dev server in development workflows. If so, this would make it my primary development browser - since it saves having to run a local dev server.

Standalone tooling sounds like a great first step, but having this exposed through a UI directly in the browser with no console necessary would allow me to develop with JUST vscode and an editor, without maintaining a running CLI process as one has to for a dev server currently. Managing UI state around sync being off / on / out of sync sounds hard but doable to me... perhaps it can be considered as two separate features - CLI then an optional UI for it in the browser?

@pfrazee
Copy link
Member

pfrazee commented May 18, 2020

@guybedford yeah noted, I'm giving that serious consideration

@pfrazee pfrazee added enhancement Change that's on the roadmap and removed feature request Suggested change that's under consideration but not yet on the roadmap labels May 21, 2020
@pfrazee pfrazee added this to the 1.0.0-prerelease.3 milestone May 21, 2020
@pfrazee
Copy link
Member

pfrazee commented May 21, 2020

Assigning to a milestone so I don't lose track of this but it probably won't ship with prerelease.3.

@pfrazee
Copy link
Member

pfrazee commented Jun 3, 2020

BTW I'm going to go ahead and get the folder-watching tool done in Beaker (no CLI). Stay tuned.

@pfrazee
Copy link
Member

pfrazee commented Jun 4, 2020

Okay this is mostly done. The only thing left to do is an auto-sync mode.

@pfrazee pfrazee closed this as completed in 0364059 Jun 4, 2020
@pfrazee
Copy link
Member

pfrazee commented Jun 4, 2020

We're in business!

CleanShot 2020-06-04 at 10 16 32

@azcn2503
Copy link
Contributor Author

azcn2503 commented Jun 4, 2020

Thanks Paul, I have just pulled and built the latest source. This is indeed working! Great implementation.

@pfrazee
Copy link
Member

pfrazee commented Jun 4, 2020

@azcn2503 Appreciate it! I'm sure we'll have some rough edges to smooth over but this should be a good start

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Change that's on the roadmap
Projects
None yet
Development

No branches or pull requests

3 participants