Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Type check
run: npx tsc --noEmit

- name: Lint
run: npx eslint . --quiet

- name: Test
run: npm test -- --runInBand

- name: Build
run: npm run build
36 changes: 18 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,44 @@
"clean": "rimraf .next node_modules"
},
"dependencies": {
"gray-matter": "latest",
"gray-matter": "4.0.3",
"next": "^15.0.3",
"prism-react-renderer": "^2.4.0",
"react": "latest",
"react-dom": "latest",
"react": "18.3.1",
"react-dom": "18.3.1",
"rehype": "^13.0.2",
"rehype-katex": "^7.0.1",
"rehype-sanitize": "^6.0.0",
"rehype-stringify": "^10.0.1",
"remark": "^15.0.1",
"remark-emoji": "^5.0.1",
"remark-gfm": "^4.0.0",
"remark-html": "latest",
"remark-math": "latest",
"remark-rehype": "latest",
"unified": "latest"
"remark-html": "16.0.1",
"remark-math": "6.0.0",
"remark-rehype": "11.1.1",
"unified": "11.0.5"
},
"devDependencies": {
"@tailwindcss/typography": "latest",
"@tailwindcss/typography": "0.5.15",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/jest": "^30.0.0",
"@types/node": "latest",
"@types/react": "latest",
"@types/react-dom": "latest",
"autoprefixer": "latest",
"eslint": "latest",
"eslint-config-next": "latest",
"@types/node": "20.17.6",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"autoprefixer": "10.4.20",
"eslint": "8.57.1",
"eslint-config-next": "14.0.4",
"jest": "^30.4.2",
"jest-environment-jsdom": "^30.4.1",
"node-mocks-http": "^1.17.2",
"postcss": "latest",
"rimraf": "latest",
"tailwindcss": "latest",
"postcss": "8.4.49",
"rimraf": "5.0.10",
"tailwindcss": "3.4.15",
"ts-jest": "^29.4.11",
"ts-node": "^10.9.2",
"typescript": "latest"
"typescript": "5.6.3"
},
"engines": {
"node": "22.x"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jest.mock('fs/promises', () => ({
}))

import * as fs from 'fs/promises'
import handler from '../content/[...path]'
import handler from '../../pages/api/content/[...path]'

const mockStat = fs.stat as jest.Mock
const mockReadFile = fs.readFile as jest.Mock
Expand Down
5 changes: 5 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"framework": "nextjs",
"installCommand": "npm ci",
"buildCommand": "npm run build"
}
Loading