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

add start task and refactor api server names #147

Merged
merged 9 commits into from
Apr 5, 2021
Merged

add start task and refactor api server names #147

merged 9 commits into from
Apr 5, 2021

Conversation

ryanatkn
Copy link
Owner

@ryanatkn ryanatkn commented Apr 5, 2021

This adds the gro start task. If you know Gro you know that means there's now a src/start.task.ts file, assuming you didn't forget, which happens to everyone, even the best of robots. For now, gro start just tries to build if needed, and otherwise, it spawns an npm start with your args. I may change this before merging; I'm thinking of making it check for a series of paths to start (paths like the API server, the Node SvelteKit adapter, or really, paths derived from the config, and not being lazy with hardcoded defaults), then if none is found, bail with an error, never deferring to npm start, so users don't get used to that.

This PR also refactors some things around the API server. Previously we called it the "Gro server", now it's the "API server". I don't like the port handling but I'm not sure the best way to handle that with the Vite proxy being configured in svelte.config.cjs. What if we had the config attempt to query for the port? What if Gro wrote to a file, to keep things fast and off the network?

Anyway, the API server stuff is technically breaking since we're exposing so much API. That's uh, maybe unsustainable for user experience reasons.

We have another breaking change: the way builds are handled in dist/. It now tries to mirror the source tree as much as possible.

@ryanatkn ryanatkn changed the title refactor api server names add start task and refactor api server names Apr 5, 2021
@ryanatkn ryanatkn merged commit 45d17f1 into main Apr 5, 2021
@ryanatkn ryanatkn deleted the refactor branch April 5, 2021 06:02
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.

1 participant