Skip to content

Configure Husky and migrate to Cloudflare Workers#7

Open
daesdev wants to merge 25 commits intomainfrom
develop
Open

Configure Husky and migrate to Cloudflare Workers#7
daesdev wants to merge 25 commits intomainfrom
develop

Conversation

@daesdev
Copy link
Copy Markdown
Owner

@daesdev daesdev commented Apr 12, 2026

Implement Husky for pre-commit hooks, ensuring code quality through automatic formatting and validation. Update the project for compatibility with Cloudflare Workers, including necessary configuration changes and documentation updates. Add bilingual titles to the README and translations for better accessibility.

daesdev added 25 commits April 6, 2026 00:00
- Agregar Husky para pre-commit hooks con autoformateo
- Agregar tasks: fmt, precommit, prepare en deno.json
- Configurar pre-commit hook para ejecutar deno fmt + lint + check
- Arreglar wrangler.jsonc: eliminar coma trailing, agregar nodejs_compat
- Simplificar deploy.yml: eliminar cp innecesarios de _fresh
- Refactor utils/i18n.ts: usar imports estáticos para CF Workers
- Actualizar routes/_app.tsx: quitar async/await de función síncrona
- Documentar workflow de desarrollo y limitaciones de CF Workers
- Actualizar README.md y CLAUDE.md con guías completas
- Update deno.json with Fresh 2.2.2, Vite 7.3.2, and Preact 10.22.0
- Replace fresh.config.ts with vite.config.ts for Vite-based build
- Migrate from Fresh 1.x dev.ts/server.ts to Fresh 2 client.ts entry
- Add utils.ts with State interface and define helper for type safety
- Implement i18n middleware in main.ts for state injection
- Update _app.tsx to read state instead of modifying it (Fresh 2 pattern)
- Simplify route handlers to use state from middleware
- Remove Fresh 1.x manifest (fresh.gen.ts) and legacy config files
- Migrate to Tailwind CSS 4 with @theme in assets/css/styles.css
- Remove tailwind.config.ts (Tailwind 4 uses CSS-only config)
- Update wrangler.jsonc compatibility_date for Cloudflare Workers
- Make utils Cloudflare Workers compatible (no filesystem APIs)
- Add deno.lock for reproducible builds
The font file was empty (0 bytes placeholder). Downloaded actual
Roboto Mono 500 weight from Google Fonts (12 KB woff2 format).
Font now loads correctly in browser at /fonts/roboto-mono-latin-500-normal.woff
Rename 404.tsx to _404.tsx for Fresh 2 compatibility.
Add bilingual error messages (Spanish/English) based on lang state.
Page now responds correctly to /es and /en language routes.
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