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
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
permissions:
contents: read
name: CI

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

jobs:
ci:
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.7.0

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Type check
run: pnpm typecheck

- name: Lint
run: pnpm lint

- name: Test
run: pnpm test

- name: Build
run: pnpm build
4 changes: 3 additions & 1 deletion apps/demo-react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"build": "react-router build",
"dev": "react-router dev",
"start": "react-router-serve ./build/server/index.js",
"typecheck": "react-router typegen && tsc"
"typecheck": "react-router typegen && tsc",
"lint": "echo 'No linting configured for demo-react-router app'",
"test": "echo 'No tests for demo-react-router app'"
},
"dependencies": {
"@heroicons/react": "^2.2.0",
Expand Down
5 changes: 4 additions & 1 deletion apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"lint": "echo 'No linting configured for demo app'",
"test": "echo 'No tests for demo app'",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@heroicons/react": "^2.2.0",
Expand Down
3 changes: 3 additions & 0 deletions apps/docs/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["next/core-web-vitals"]
}
4 changes: 3 additions & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"test": "echo 'No tests for docs app'",
"typecheck": "tsc --noEmit"
},
"browserslist": "defaults, not ie <= 11",
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions apps/docs/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"build": "turbo run build",
"lint": "turbo run lint",
"test": "turbo run test",
"typecheck": "turbo run typecheck",
"format": "prettier --write ."
},
"prettier": {
Expand Down
3 changes: 2 additions & 1 deletion packages/react-pdf-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"scripts": {
"build": "tsup src/index.tsx --dts --format esm,cjs",
"lint": "eslint",
"test": "vitest"
"test": "vitest",
"typecheck": "tsc --noEmit"
},
"prettier": {
"printWidth": 80,
Expand Down
20 changes: 17 additions & 3 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,23 @@
"dependsOn": [
"^build"
],
"outputs": ["dist/**", "build/**"]
"outputs": ["dist/**", "build/**", ".next/**"]
},
"lint": {},
"test": {}
"lint": {
"outputs": [],
"cache": false
},
"test": {
"outputs": ["coverage/**"],
"cache": false
},
"typecheck": {
"outputs": [],
"cache": false
},
"dev": {
"cache": false,
"persistent": true
}
}
}
Loading