Skip to content

Conversation

@vnykmshr
Copy link
Owner

@vnykmshr vnykmshr commented Jan 2, 2026

Summary

  • Add MIT LICENSE and project metadata (.nvmrc, CHANGELOG.md)
  • Refactor 404.html to use shared stylesheet
  • Improve semantic markup and accessibility
  • Add CI pipeline with ESLint, Prettier, HTML/CSS validation
  • Add GitHub Pages deployment via Actions with auto SW versioning
  • Add humans.txt with project philosophy

Changes

Licensing & Metadata

  • MIT LICENSE file
  • .nvmrc for Node.js 22
  • CHANGELOG.md for release tracking
  • Updated sitemap.xml lastmod date

Code Quality

  • Refactored 404.html (171 → 49 lines) to use shared style.css
  • Added meta author tags
  • Added type="button" attributes for accessibility
  • Improved semantic markup: <hr> separator, <section> for counter

CI Pipeline

  • ESLint for JavaScript linting
  • Prettier for code formatting
  • html-validate for HTML validation
  • Stylelint for CSS validation

Deployment

  • GitHub Pages deployment via Actions
  • Auto Service Worker versioning using git SHA
  • Build script injects 1mb-{sha} cache name

Extras

  • humans.txt with project philosophy

Test plan

  • CI pipeline passes (lint, format, validate)
  • GitHub Pages deployment succeeds
  • Site loads correctly at 1mb.dev
  • Service Worker cache version shows commit SHA

- Add MIT LICENSE and .nvmrc (Node 22)
- Refactor 404.html to use shared style.css (171 → 35 lines)
- Add 404-specific styles to style.css
- Improve semantic markup: <hr> separator, <section> for counter
- Add meta author tag to both pages
- Update manifest description to match current copy
- Update sitemap lastmod date
- Bump Service Worker cache to v3
- Add CHANGELOG.md with project history
- Add site.webmanifest to Service Worker cache list
- Counter API /health endpoint documented in todos/worker.js
- Uptime monitoring guide added to todos/monitoring-setup.md
CI & Quality:
- Add GitHub Actions workflow for lint/format/validate
- Add ESLint config for JavaScript linting
- Add Prettier for consistent code formatting
- Add html-validate for HTML validation
- Add Stylelint for CSS validation

Files:
- Add humans.txt with project philosophy
- Add package.json with dev dependencies
- Fix button type attributes for accessibility
- Remove redundant ARIA role on section
- Apply Prettier formatting to all files
- Bump Service Worker cache to v4
- Add build script that injects git SHA into Service Worker cache name
- Update CI workflow with build and deploy jobs
- Deploy to GitHub Pages on push to main
- Use '1mb-dev' as local placeholder, '1mb-{sha}' in production

Flow: validate → build (inject version) → deploy
- Add workers/counter.js with /health endpoint
- Add workers/wrangler.toml configuration
- Add wrangler as dev dependency
- Add npm scripts: worker:dev, worker:deploy, worker:tail

Usage:
  npm run worker:dev     # Local development
  npm run worker:deploy  # Deploy to Cloudflare
  npm run worker:tail    # View live logs

Secrets required (set via wrangler secret put):
  - UPSTASH_REDIS_REST_URL
  - UPSTASH_REDIS_REST_TOKEN
- Add Development section with npm scripts
- Add Counter API commands
- Add workers/README.md with setup guide
- Update LICENSE copyright year
@vnykmshr vnykmshr merged commit 3590422 into main Jan 2, 2026
3 checks passed
@vnykmshr vnykmshr deleted the feature/hygiene-improvements branch January 2, 2026 15:42
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.

2 participants