hydra-synth / hydra

Livecoding networked visuals in the browser
https://hydra.ojack.xyz
GNU Affero General Public License v3.0
2.12k stars 255 forks source link

exclude dist folder from dev branch #280

Open micuat opened 10 months ago

micuat commented 10 months ago

I always have confusion when switching between main and dev :sweat:

ojack commented 10 months ago

I think the dist is necessary for publishing. What is the problem that is happening?

On Thu, Aug 31, 2023, 18:53 Naoto Hieda @.***> wrote:

Assigned #280 https://github.com/hydra-synth/hydra/issues/280 to @ojack https://github.com/ojack.

— Reply to this email directly, view it on GitHub https://github.com/hydra-synth/hydra/issues/280#event-10247393851, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFOVSMADX3I5HH6AAWE7R3XYC6R5ANCNFSM6AAAAAA4GLWCWU . You are receiving this because you were assigned.Message ID: @.***>

micuat commented 10 months ago

@ojack that's what I thought. But it got confusing when I was trying to merge dev into another branch (diverged from dev). I think it's better to build it on the server, instead, I guess? Or github actions + vite build and publish to a separate branch like this? I can experiment with it

ojack commented 10 months ago

Trying to remember earlier conversations, but I think a big motivation for including the /dist (in addition to the current deployment process) is that people who have no experience with build tools or node installed can download and use hydra locally, without having to do anything else.

I am also open to other ways of doing this! but dont want to remove /dist until there are workable alternatives for both things.

re: merging-- is it possible to delete the dist files as you are merging, and then regenerate once the merge has happened? this big of a restructure shouldn't happen too often, so hopefully once the merge happens it won't be too complicated.

On Fri, Sep 1, 2023 at 11:19 AM Naoto Hieda @.***> wrote:

@ojack https://github.com/ojack that's what I thought. But it got confusing when I was trying to merge dev into another branch (diverged from dev). I think it's better to build it on the server, instead, I guess? Or github actions + vite build and publish to a separate branch like this https://github.com/sitek94/vite-deploy-demo-custom-domain? I can experiment with it

— Reply to this email directly, view it on GitHub https://github.com/hydra-synth/hydra/issues/280#issuecomment-1702438416, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFOVSNXK2GKZWIMKVRZD4TXYGSBTANCNFSM6AAAAAA4GLWCWU . You are receiving this because you were mentioned.Message ID: @.***>

micuat commented 10 months ago

yes, I remember - while I agree with your point making it accessible, it's true that those who may want to use the editor needs to go through some steps on the backend (setting up http server etc).

My main motivation is before dev (vite) replaces main (browserify), we should clean up the pipeline. Given these points, maybe I should reframe this issue into "add docs for developers". I see there's already commands in the readme, but for those who want to make minor edits to the code, it may be helpful to have a small intro to how vite works (which file it is reading) and if someone wants to use their own hydra-synth, how can they use it in their self-hosted editor.

ojack commented 10 months ago

Ahh yes, this all makes sense!

On Fri, Sep 1, 2023, 12:52 Naoto Hieda @.***> wrote:

yes, I remember - while I agree with your point making it accessible, it's true that those who may want to use the editor needs to go through some steps on the backend (setting up http server etc).

My main motivation is before dev (vite) replaces main (browserify), we should clean up the pipeline. Given these points, maybe I should reframe this issue into "add docs for developers". I see there's already commands in the readme, but for those who want to make minor edits to the code, it may be helpful to have a small intro to how vite works (which file it is reading) and if someone wants to use their own hydra-synth, how can they use it in their self-hosted editor.

— Reply to this email directly, view it on GitHub https://github.com/hydra-synth/hydra/issues/280#issuecomment-1702558939, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFOVSLH5TIAHML2ZCHWPC3XYG46VANCNFSM6AAAAAA4GLWCWU . You are receiving this because you were mentioned.Message ID: @.***>

micuat commented 10 months ago

@ojack as first step I made a draft in v2 doc - can I go ahead and merge?

https://github.com/hydra-synth/hydra-docs-v2/pull/3

ojack commented 10 months ago

looks great!

On Fri, Sep 1, 2023 at 3:04 PM Naoto Hieda @.***> wrote:

@ojack https://github.com/ojack as first step I made a draft in v2 doc

  • can I go ahead and merge?

hydra-synth/hydra-docs-v2#3 https://github.com/hydra-synth/hydra-docs-v2/pull/3

— Reply to this email directly, view it on GitHub https://github.com/hydra-synth/hydra/issues/280#issuecomment-1702718379, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFOVSN4UI6XOYX6WY6IVOLXYHMORANCNFSM6AAAAAA4GLWCWU . You are receiving this because you were mentioned.Message ID: @.***>