Skip to content

Commit

Permalink
chore: add --if-present for workspace-wide commands, prepare for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ferferga authored Dec 29, 2024
1 parent eec0ad4 commit 929a22e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/__quality_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ jobs:
matrix:
command:
- lint
- test
- check:types
include:
- workspace: frontend
command: analyze:cycles
- analyze:cycles

steps:
- name: Checkout ⬇️
Expand All @@ -56,7 +55,7 @@ jobs:
run: npm ci --no-audit

- name: Run ${{ matrix.command }} ⚙️
run: npm run ${{ matrix.command }} ${{ matrix.workspace && format('-w {0}', matrix.workspace) || '' }}
run: npm run ${{ matrix.command }}

commits_checks:
name: Commit linting 💬✅
Expand Down
5 changes: 2 additions & 3 deletions package-lock.json

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

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
"yarn": "yarn is not supported. Please use npm"
},
"scripts": {
"lint": "npm run lint --workspaces",
"lint:fix": "npm run lint:fix --workspaces",
"check:types": "npm run check:types --workspaces"
"lint": "npm run lint -ws --if-present",
"lint:fix": "npm run lint:fix -ws --if-present",
"check:types": "npm run check:types -ws --if-present",
"analyze:cycles": "npm run analyze:cycles -ws --if-present",
"test": "npm run test -ws --if-present"
},
"devDependencies": {
"@eslint/config-inspector": "0.6.0",
Expand Down
8 changes: 2 additions & 6 deletions packaging/tauri/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
{
"name": "@jellyfin-vue/tauri",
"name": "@jellyfin-vue/tauri-packaging",
"private": true,
"version": "0.0.0",
"scripts": {
"start": "npm run gen-icon && tauri dev",
"gen-icon": "tauri icon ../../frontend/public/icon.svg",
"build": "npm run gen-icon && tauri build",
"clean": "git clean -fxd",
"lint": "true",
"lint:fix": "true",
"check:types": "true"
"clean": "git clean -fxd"
},
"dependencies": {
"@jellyfin-vue/frontend": "*"
Expand Down

0 comments on commit 929a22e

Please sign in to comment.