Skip to content

Repository files navigation

Threadmark Landing

Website for Threadmark, built with Astro and deployed to Netlify.

Setup

npm install

Development

npm run dev

The dev server starts at http://localhost:4321.

Build

npm run build

Output is written to dist/.

Preview

Preview the production build locally:

npm run preview

Linting

npm run lint        # Check for issues
npm run lint:fix    # Auto-fix where possible

ESLint enforces import/export sorting (alphabetically) and object key sorting (alphabetically, natural order).

Formatting

npm run format        # Format all files
npm run format:check  # Check formatting (used in CI)

Testing

Install Playwright browsers (first time only):

npm run test:install

Run the smoke tests (verifies pages render and key UI elements):

npm run test

Git hooks

Pre-commit (Husky) runs on every commit:

  • Lint and format staged files (via lint-staged)
  • Type check (astro check)
  • Format check
  • Full lint

Pre-push runs smoke tests before pushing.

To bypass (e.g. WIP commits): git commit --no-verify or git push --no-verify

CI

GitHub Actions runs on push and PR to main:

  • Type check, lint, format check
  • Build
  • Smoke tests (Playwright)

Deployment

Deployed automatically to Netlify. Configuration is in netlify.toml.

  • Build command: npm run build
  • Publish directory: dist
  • Forms: Netlify Forms (no backend required)

Releases

Packages

Contributors

Languages