Skip to content
Open
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
19 changes: 18 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Code Linting
on: push

jobs:
lint:
eslint:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -20,3 +20,20 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Run ESLint
run: pnpm run lint
knip:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run knip
run: pnpm run knip
32 changes: 32 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build Storybook Documentation

on:
push:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
defaults:
run:
working-directory: ./apps/docs
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build-storybook
- name: Upload
uses: actions/upload-artifact@v4
with:
name: docs-build_${{ matrix.node-version }}
path: apps/docs/dist/
3 changes: 0 additions & 3 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint . --flag unstable_ts_config",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"release": "standard-version",
"lint": "eslint apps/client --ext .tsx,.jsx,.js,.ts",
"format:check": "prettier --check .",
"format:write": "prettier --write ."
"format:write": "prettier --write .",
"knip": "knip"
},
"repository": {
"type": "git",
Expand All @@ -37,6 +38,7 @@
"@nx/web": "20.1.4",
"@playwright/test": "^1.49.1",
"@storybook/experimental-addon-test": "^8.6.3",
"@types/node": "^22.15.29",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitest/ui": "^3.1.2",
Expand All @@ -52,6 +54,7 @@
"eslint-plugin-react-compiler": "19.0.0-beta-37ed2a7-20241206",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-unicorn": "^55.0.0",
"knip": "^5.59.1",
"nx": "20.1.4",
"prettier": "3.5.3",
"prettier-plugin-tailwindcss": "^0.6.11",
Expand Down
Loading