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: 5 additions & 34 deletions .github/workflows/verify-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,36 +36,8 @@ jobs:
- '**/__screenshots__/**'
- '**/*playwright*.ts'

biome-check:
name: Biome check
runs-on: ubuntu-latest

needs: detect-changes
if: needs.detect-changes.outputs.src == 'true'

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

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm

- name: Install root dependencies
run: pnpm install

- name: Run Biome
run: pnpm run ci:check

type-check:
name: Type check
lint:
name: Lint
runs-on: ubuntu-latest

needs: detect-changes
Expand All @@ -89,8 +61,8 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Run ts:check
run: pnpm run ts:check
- name: Run linter
run: pnpm exec turbo lint

unit-test:
name: Unit tests
Expand Down Expand Up @@ -176,8 +148,7 @@ jobs:
if: always()

needs:
- biome-check
- type-check
- lint
- unit-test
- screen-test

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ Libraries:

```bash
pnpm install # Install dependencies
pnpm add turbo --global # Use turbo to run scripts

pnpm dev # Start all development servers
turbo dev # Start all development servers

pnpm test:unit # Run unit tests
pnpm test:screen # Run playwright tests
turbo test:unit # Run unit tests
turbo test:screen # Run playwright tests

# Formatting and linting with Biome
pnpm format
pnpm lint
pnpm fix
turbo lint # Check formatting and types
turbo lint:fix # Fix formatting
turbo lint:fix-unsafe # Apply potentially breaking fixes if available
```
3 changes: 1 addition & 2 deletions apps/synth-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"private": true,
"type": "module",
"scripts": {
"dev": "turbo run --ui=stream dev:next dev:storybook",
"dev:next": "NODE_ENV=development next dev -p 3001",
"dev:storybook": "NODE_ENV=development storybook dev -p 6002 --no-open",
"build": "next build",
"start": "next start",
"ts:check": "tsc --noEmit",
"lint:ts": "tsc --noEmit",
"test:screen": "PLAYWRIGHT_SERVER=dev:storybook PLAYWRIGHT_PORT=6002 playwright test",
"test:screen:update": "pnpm run test:screen --update-snapshots",
"setup:copy-synth-dts": "node ./scripts/copy-synth-dts.js"
Expand Down
2 changes: 1 addition & 1 deletion apps/synth-playground/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

"setup:copy-synth-dts": {
"dependsOn": ["@repo/synth#build"],
"inputs": ["../../packages/synth/out/**"],
"inputs": ["$TURBO_ROOT$/packages/synth/out/**"],
"outputs": ["./public/synth.d.ts.txt"]
}
}
Expand Down
17 changes: 7 additions & 10 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@
],

"files": {
"include": ["./*.json", "apps/**", "packages/**", "system/**"],
"ignore": [
".next/**",
".turbo/**",
"out/**",
"playwright-report/**",
"public/**",
"target/**",
"test-results/**"
]
"include": ["./*.json", "apps/**", "packages/**", "system/**"]
},

"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
}
}
2 changes: 1 addition & 1 deletion lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ pre-commit:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: pnpm run ci:pre-commit -- {staged_files}
run: pnpm exec turbo lint:fix
21 changes: 5 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,10 @@
"private": true,
"description": "Web audio synthesizer inspired by SunVox",
"scripts": {
"build": "turbo build --",
"ci:check": "biome check .",
"ci:pre-commit": "biome check --write",
"dev": "turbo dev --",
"dev:storybook": "turbo dev:storybook --",
"dev:unit": "turbo dev:unit --",
"fix": "biome check --write .",
"fix-unsafe": "biome check --write --unsafe .",
"format": "biome format --write .",
"lint": "biome lint .",
"start": "turbo start --",
"test:screen": "turbo run test:screen --",
"test:screen:install-playwright": "playwright install chromium --with-deps",
"test:unit": "turbo run test:unit --",
"ts:check": "turbo run ts:check --"
"lint:biome": "biome check",
"lint:fix": "biome check --write",
"lint:fix-unsafe": "biome check --write --unsafe",
"test:screen:install-playwright": "playwright install chromium --with-deps"
},
"keywords": [],
"author": "picalines",
Expand All @@ -29,6 +18,6 @@
"@biomejs/biome": "1.9.4",
"lefthook": "^1.7.9",
"playwright": "^1.49.1",
"turbo": "^2.5.0"
"turbo": "^2.5.5"
}
}
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"scripts": {
"dev:unit": "vitest watch",
"ts:check": "tsc --noEmit",
"lint:ts": "tsc --noEmit",
"test:unit": "vitest run"
},
"imports": {
Expand Down
8 changes: 1 addition & 7 deletions packages/editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,5 @@ declare const project: Project = {/* ... */}

## Development

```bash
# Start Storybook for component development
pnpm dev

# Run tests
pnpm test:screen
```
See [the root README](../../README.md) for a list of available scripts

3 changes: 1 addition & 2 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
"./meta": "./src/meta/index.ts"
},
"scripts": {
"dev": "pnpm run dev:storybook",
"dev:storybook": "storybook dev -p 6004 --no-open",
"test:screen": "PLAYWRIGHT_SERVER=dev:storybook PLAYWRIGHT_PORT=6004 playwright test",
"test:screen:update": "pnpm run test:screen --update-snapshots",
"ts:check": "tsc --noEmit"
"lint:ts": "tsc --noEmit"
},
"imports": {
"#components/*": "./src/components/*/index.ts",
Expand Down
9 changes: 1 addition & 8 deletions packages/synth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,5 @@ reverb.connect(context.output)

## Development

```bash
# Start Storybook
pnpm dev

# Run tests
pnpm test:unit
pnpm test:screen
```
See [the root README](../../README.md) for a list of available scripts

3 changes: 1 addition & 2 deletions packages/synth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
},
"scripts": {
"build": "tsup",
"dev": "pnpm run dev:storybook",
"dev:storybook": "storybook dev -p 6003 --no-open",
"dev:unit": "vitest watch",
"ts:check": "tsc --noEmit",
"lint:ts": "tsc --noEmit",
"test:unit": "vitest run",
"test:screen": "PLAYWRIGHT_SERVER=dev:storybook PLAYWRIGHT_PORT=6003 playwright test",
"test:screen:update": "pnpm run test:screen --update-snapshots"
Expand Down
9 changes: 1 addition & 8 deletions packages/ui-kit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,5 @@ UI component library created with [shadcn/ui](https://ui.shadcn.com/docs/compone

## Development

```bash
# Start Storybook
pnpm dev

# Run tests
pnpm test:unit
pnpm test:screen
```
See [the root README](../../README.md) for a list of available scripts

3 changes: 1 addition & 2 deletions packages/ui-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
"type": "module",
"sideEffects": ["**/*.css"],
"scripts": {
"dev": "pnpm run dev:storybook",
"dev:storybook": "storybook dev -p 6001 --no-open",
"dev:unit": "vitest watch",
"ts:check": "tsc --noEmit",
"lint:ts": "tsc --noEmit",
"test:unit": "vitest run",
"test:screen": "PLAYWRIGHT_SERVER=dev:storybook PLAYWRIGHT_PORT=6001 playwright test",
"test:screen:update": "pnpm run test:screen --update-snapshots"
Expand Down
2 changes: 1 addition & 1 deletion packages/web-audio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"type": "module",
"scripts": {
"ts:check": "tsc --noEmit"
"lint:ts": "tsc --noEmit"
},
"exports": {
"./draw": "./src/draw/index.ts",
Expand Down
Loading
Loading