WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Additional Templates using Javascript: Enhancement Suggestion #50

@NicKAnderson038

Description

@NicKAnderson038

This suggestion is based on the continued wide spread use of Javascript. I've been really enjoying the performance and DX of Hono and would love to encourage more people who are hesitant to try Hono.

An example would be a the nodejs template. An update to the cli would prompt Typescript or Javascript like in vite. If selecting Javascript a new template would include the following changes.

  1. package.json
    { "dev": "node --watch src/index.js" } // The watch flag is available by node 18 which is also the earliest version of node usable by Hono.

  2. jsconfig.json // type inference support

Vite screenshot

Screenshot 2024-09-21 at 3 11 07 PM Screenshot 2024-09-21 at 3 11 34 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions