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

feat: remove fresh cli, do manifest generation in process #223

Merged
merged 9 commits into from
Jun 14, 2022

Conversation

lucacasonato
Copy link
Member

@lucacasonato lucacasonato commented Jun 2, 2022

This commit removes the fresh CLI 🎉. Manifest generation now happens during the development cycle instead of manually upfront. This is achieved by having a dev.ts file in addition to the main.ts file. The main.ts file is fully static, just like it is now. It is what users link to Deno Deploy. The dev.ts file is what is used for local development. On startup it regenerates the fresh.gen.ts file as necessary, and then dynamically imports the main.ts file to actually run the application.

This only works well with the watcher once denoland/deno#14775 is landed.

Project creation now happens with the init.ts script at the root of the repo. I intend for this file to be hosted at https://fresh.deno.dev/init.ts in the limit.

Closes #205
Closes #123

@lucacasonato lucacasonato changed the title wip: dev.ts feat: remove fresh cli, do manifest generation in [rc Jun 2, 2022
@lucacasonato lucacasonato changed the title feat: remove fresh cli, do manifest generation in [rc feat: remove fresh cli, do manifest generation in process Jun 2, 2022
@lucacasonato lucacasonato merged commit 836cc24 into main Jun 14, 2022
@lucacasonato lucacasonato deleted the dev_mode_fresh branch June 14, 2022 07:39
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.

Generate manifest at runtime Detect out of date manifest on startup
1 participant