Skip to content

docs: update first-project guide for new deno init template (2.8)#3086

Open
lunadogbot wants to merge 1 commit intodenoland:mainfrom
lunadogbot:docs/2.8-init-template-update
Open

docs: update first-project guide for new deno init template (2.8)#3086
lunadogbot wants to merge 1 commit intodenoland:mainfrom
lunadogbot:docs/2.8-init-template-update

Conversation

@lunadogbot
Copy link
Copy Markdown

Summary

Updates the "Making a Deno project" walkthrough to match the new default deno init template shipping in Deno 2.8 (denoland/deno#33042). The template now scaffolds a small Deno.serve HTTP server (with two tests) instead of the old add(2, 3) math example.

  • Rewrites the description of main.ts and the run/test output blocks in runtime/getting_started/first_project.md.
  • Mentions the import.meta.main guard so readers understand why the tests import the handler directly.

Test plan

  • deno task serve — page renders.
  • If reviewers want me to verify the exact test names against the upstream template, I can adjust before merge.

The default \`deno init\` template in Deno 2.8 generates a small
Deno.serve HTTP server instead of the previous add(2,3) example.
Updates the getting-started "Making a Deno project" walkthrough to
match the new template — replaces the addition output with the
listening message and updates the test runner example accordingly.

Refs denoland/deno#33042
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