fresh icon indicating copy to clipboard operation
fresh copied to clipboard

docs + init: add install step

Open marvinhagemeister opened this issue 2 months ago • 4 comments

Goal: Fully move to `nodeModulesDir: "manual"

  • Add to docs
  • We could run install directly similar to wizards from other frameworks

marvinhagemeister avatar Sep 30 '25 11:09 marvinhagemeister

Do you envision something like a template system? Maybe something like cloning existing template repositories with a tiny/small number of string replacements? Or something different?

I brainstormed a few ideas a while ago (with the help of LLMs), see here -> https://gist.github.com/fry69/1e35c4bcf29d740975cc24bb211dfb3f

It is of course a bit convoluted, but there is an overview how other projects handle create/init scripts, including a comparison.

If you can direct where this should be heading, I'd love to flesh this out a bit more.

fry69 avatar Sep 30 '25 11:09 fry69

Moving away from inline code like we do today might be worth it. It seems like folks expect there to be a folder in this repository with the init app laid out. This can happen independently of this issue here though.

marvinhagemeister avatar Sep 30 '25 11:09 marvinhagemeister

Looks like this is blocked on https://github.com/denoland/deno/issues/30850 . When setting nodeModulesDir: "manual" the types for various babel packages cannot be found.

marvinhagemeister avatar Oct 06 '25 07:10 marvinhagemeister

Also blocked by https://github.com/denoland/deno/issues/30929

marvinhagemeister avatar Oct 06 '25 08:10 marvinhagemeister

@marvinhagemeister if this is blocked, why is it already implemented in 2.2.0, a stable release? It's breaking all new projects' ability to use type checking

knotbin avatar Dec 03 '25 01:12 knotbin

Not having nodeModulesDir: "manual" breaks pretty much all projects from working at all.

marvinhagemeister avatar Dec 03 '25 12:12 marvinhagemeister

I haven't had any problems with nodeModulesDir: "auto" so far and it fixes this issue. Am I missing something?

knotbin avatar Dec 04 '25 20:12 knotbin