Skip to content

Commit a20a15c

Browse files
committed
chore: clean up package.json scripts and ci workflow
Remove unused scripts from package.json and simplify CI commands for better maintainability and shorter execution times.
1 parent 9f9516c commit a20a15c

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
quality: [test --timeout=30000, run typecheck, run lint, run format:check, run test:e2e]
19+
quality: [test, typecheck, lint, format:check, test:e2e]
2020
runs-on: ubuntu-24.04
2121
steps:
2222
- name: Checkout
@@ -42,9 +42,9 @@ jobs:
4242
run: bunx playwright install --with-deps
4343

4444
- name: Build
45-
run: bun run build:prod
45+
run: bun build:prod
4646

47-
- name: Run test
47+
- name: Run quality step
4848
run: bun ${{matrix.quality}}
4949

5050
dependency-review:
@@ -61,7 +61,7 @@ jobs:
6161
strategy:
6262
fail-fast: false
6363
matrix:
64-
quality: [bun run quality, bun test, bun run test:e2e]
64+
quality: [quality, test, test:e2e]
6565
name: Nix Flake CI
6666
runs-on: ubuntu-latest
6767
steps:
@@ -75,7 +75,7 @@ jobs:
7575
run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun install
7676

7777
- name: Build (Nix devShell)
78-
run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun run build
78+
run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun build
7979

8080
- name: Quality checks (Nix devShell)
81-
run: nix --experimental-features 'nix-command flakes' develop .# --command -- ${{matrix.quality}}
81+
run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun ${{matrix.quality}}

‎package.json‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
"typecheck:watch": "tsc --noEmit --watch",
4646
"test:e2e": "PW_DISABLE_TS_ESM=1 NODE_ENV=test bun --bun playwright test",
4747
"test:all": "bun test && bun run test:e2e",
48-
"dev": "vite --host",
49-
"dev:server": "bun run e2e/test-web-server.ts",
5048
"build": "bun run clean && vite build",
5149
"build:dev": "vite build --mode development",
5250
"build:prod": "vite build --mode production",
@@ -59,9 +57,7 @@
5957
"lint:fix": "eslint . --ext .ts,.tsx,.js,.jsx --fix",
6058
"format": "prettier --write .",
6159
"format:check": "prettier --check .",
62-
"quality": "bun run lint && bun run format:check && bun run typecheck",
63-
"ci": "bun run quality && bun run test:all",
64-
"preview": "vite preview"
60+
"quality": "bun run lint && bun run format:check && bun run typecheck"
6561
},
6662
"devDependencies": {
6763
"@playwright/test": "1.57.0",

0 commit comments

Comments
 (0)