honojs / hono-minimal Goto Github PK
View Code? Open in Web Editor NEWMinimal project with Hono.
Home Page: https://honojs.dev
Minimal project with Hono.
Home Page: https://honojs.dev
How can I get cf property using c.req?
theres a list of starter templates in cloudflare docs for workers.
This issue provides visibility into Renovate updates and their statuses. Learn more
This repository currently has no open or pending branches.
During an attempt to offer help at Discord, I noticed that create-cloudflare
is now deprecated. Its README says:
Note
This package has now been sunsetted! We recommend using thewrangler generate [name] [template]
command to create new projects with templates.
I suppose there are two options here:
npx wrangler generate my-app https://github.com/honojs/hono-minimal
I can send a PR, but I'd like to ask for your opinion before working on it.
It replaces mini flare.
yarn install
yarn test
❯ yarn jest
yarn run v1.22.4
$ C:\dev\markd\gangbusters-discord-bot\node_modules\.bin\jest
● Validation Error:
Module C:\dev\markd\gangbusters-discord-bot\node_modules\jest-circus\runner.js in the testRunner option was not found.
<rootDir> is: C:\dev\markd\gangbusters-discord-bot
Configuration Documentation:
https://jestjs.io/docs/configuration
error Command failed with exit code 1.
A quick google turns up this: jestjs/jest#10297 (comment)
If one comments out resolver: 'jest-node-exports-resolver',
in jest.config.js
you then get this error:
FAIL src/index.test.ts
● Test suite failed to run
Cannot find module 'hono/powered-by' from 'src/index.ts'
Require stack:
src/index.ts
src/index.test.ts
22 | })
23 |
> 24 | // Routing
| ^
25 | app.get('/', (c) => c.html('<h1>Hello Hono!</h1>'))
26 | app.get('/auth/*', (c) => c.text('You are authorized'))
27 |
at Resolver.resolveModule (node_modules/jest-resolve/build/resolver.js:324:11)
at Object.<anonymous> (src/index.ts:24:25)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.441 s
Ran all test suites.
error Command failed with exit code 1.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.