netzo / fresh-netzo

Full-stack Deno Fresh meta-framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
https://netzo.io
MIT License
51 stars 3 forks source link

chore: solidify minimal project template #91

Closed deer closed 9 months ago

deer commented 9 months ago

I want to start making things a bit more durable, so I thought I would start with the minimal template. You should be able to run deno task ok with this, after bootstrapping a project.

Sadly it seems like the CLI always pulls the template from github, even when I try running it directly via deno run -A netzo/lib/cli/netzo.ts init. This of course prevents me from properly testing this locally.

My next PR will be to fix this limitation and add a test that runs as part of CI. The test should:

  1. bootstrap a project with deno run -A ./lib/cli/netzo.ts init
  2. cd into the project
  3. run deno task ok

This will at least ensure that we can use the CLI to make a new project and start it without errors.

A fun variation on this (for the PR after the above plan) would be to add a new route to the template (programmatically), and then bootstrap the project and try visiting the new route. This would assert that the CLI can initialize projects with local changes to the template.