The repository for Hyperjump Technology's landing page. https://hyperjump.tech
- Next.js with App Router.
- Bun.
- Tailwind CSS and Shadcn/UI.
- simple-i18n-next.
- TypeScript.
- Playwright.
- Install Bun:
curl -fsSL https://bun.sh/install | bash - Install dependencies:
bun install --frozen-lockfile - Start development server:
bun dev
- Add the key and value to
locales/en/*.jsonandlocales/id/*.json. - Run
bun run generate-locales. - Use the generated function in your component:
import { myNewKey } from "@/locales/.generated/strings";
// ...
<span>{myNewKey(lang)}</span>;We use Playwright for end-to-end testing to ensure language switching and responsive layouts don't break.
bunx playwright install: Install Playwright browsersbun run test:e2e: Run all tests headlessly.bun run test:e2e:ui: Open the Playwright UI to debug tests.bun run test:e2e:headed: Run all tests in headed mode.bun run test:e2e:report: View the latest HTML report.
By default, tests will start the Next.js app automatically using bun run build then bun run start on port 3000.
When a pull request is opened or updated, a preview of the changes will be generated and uploaded as an artifact. This allows you to review the changes before merging.
A GitHub Actions workflow at .github/workflows/e2e.yml runs E2E tests on every pull request. Results are printed to the build log, and the HTML report is uploaded as a build artifact for deeper inspection.
- After pull request merges to the
mainbranch. - GitHub Actions will trigger:
- Linting & Prettier check.
- Playwright E2E tests.
- Next.js static export via
bun run build. - Deployment to the
gh-pagesbranch.
MIT