-
Notifications
You must be signed in to change notification settings - Fork 26
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
reworks packages names #621
Comments
excellent want to rename first or first prioritize the bugfixing of the current main functionality issues listed by julien? for cli: could this also help how disco can be integrated into existing apps? headless mode, would be nice to describe a bit how to do that (in which case it would be more than just benchmarking). but if that's not cli then sure fine to call it benchmarking |
Looks good! I have few concerns though:
I think the renaming and other refactors should wait until the current PRs are merged and bugs are fixed. It would be nice to have a headless mode but so far the CLI was only used as benchmark so it'd be a new feature. Maybe we can leave it as CLI for now since it's quite a clear name already. |
bug fixing is the most important for now, this issue is for after the fixes (and some tests also).
keeping it as
I don't follow you there, which client-side material are you talking of?
good point, let's merge theses. we can unmerge it should the need arise (it's only two small files anyway) |
For example I think keeping it separate would make sense. Or what about merging Indeed according to the doc the server is deployed via docker. |
I just read the NextJS PR. Merging discojs-web into webapp means that we are not planning to integrate the NextJS frontend. |
If I may, I think this is a good idea as it appears discojs-node needs the server anyways. .
├─ cli/
├─ disco/
│ ├── core/
│ ├── node/
│ │ │ ├── plugins/ # Contains discojs/discojs-node, still keeping a slight separation from the server since it clearly extends code from core/
│ │ │ └── server/ # Contains server/
│ └── web/
│ │ │ └── plugins/ # Contains discojs/discojs-web, named plugins to have the same format as for node
# │ │ └── webapp/ # If decided to be merged with discojs-web
├─ docs/
└─ webapp/ |
right, it'll be nice to allow users to run disco locally (ie w/ node and w/o a server). keeping the
hum, I don't think so: the server should be dumb, really only exposing discojs calls via HTTP, not much more (a thin axios/bun layer will work), most of the logic should go into discojs. discojs-node will only provide a few node-specifics helpers in this case.
indeed, it currently does, but it shouldn't, we need to have a tree of deps not a full graph.
I get your point, but having many packages for small fonctionnalities is cumbersome in JS' world. I try to weight how much we can simplify our dev workflow and users workflow, and IMO merging some pkgs will improve it. |
Does merging discojs-web into the webapp implies that we would need to re-build the webapp for changes to apply? (and lose the hot-reloading feature) |
after probing the code a bit more, it seems that discojs-core is already containing some node and web specific code (WebSocket implementation differs by platform, loading wrtc iff node). keeping this split (discojs-node & discojs-web) does makes more sense for me now.
no, as discojs-core will be a real deps of discojs-web (and not contained in it), hot-reloading seems to work with deps also, at least when trying out in #617: |
Based on remarks from @JulienVig, WDYT?
The name on NPM doesn't match the ones in the repo, that's confusing, and some paths are nested unnecessarily. Proposed list of renaming, from old name to new name (both FS and NPM)
might not be needed if merged inside server/benchmark# merged in webappreduces the scope of the tool, from what I gathered, there is no need for a full CLImoar CLI in the futureThe text was updated successfully, but these errors were encountered: