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

exclude dist folder from dev branch #280

Open
micuat opened this issue Aug 31, 2023 · 7 comments
Open

exclude dist folder from dev branch #280

micuat opened this issue Aug 31, 2023 · 7 comments
Assignees

Comments

@micuat
Copy link
Member

micuat commented Aug 31, 2023

  • perhaps it's better to exclude the bundled files and the entire dist folder (or is it necessary for the server??)
  • maybe better to add build.outDir: "dist" in vite.config.js to make it explicit

I always have confusion when switching between main and dev 😓

@ojack
Copy link
Member

ojack commented Aug 31, 2023 via email

@micuat
Copy link
Member Author

micuat commented Sep 1, 2023

@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
Copy link
Member

ojack commented Sep 1, 2023 via email

@micuat
Copy link
Member Author

micuat commented Sep 1, 2023

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
Copy link
Member

ojack commented Sep 1, 2023 via email

@micuat
Copy link
Member Author

micuat commented Sep 1, 2023

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

hydra-synth/hydra-docs-v2#3

@ojack
Copy link
Member

ojack commented Sep 1, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants