Skip to content

Commit

Permalink
ci(repo): refactor pr ci using turborepo
Browse files Browse the repository at this point in the history
  • Loading branch information
bambanah committed Sep 12, 2024
1 parent 1992566 commit 2e84312
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
HUSKY: 0

jobs:
lint-test-build:
pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -21,6 +21,4 @@ jobs:

- run: pnpm install --frozen-lockfile

- run: pnpm lint
# - run: pnpm test
- run: pnpm build
- run: pnpm run ci
2 changes: 1 addition & 1 deletion deemix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"dev": "tsup src/index.ts --format esm --dts --watch",
"build": "tsup src/index.ts --format esm --dts",
"lint:ts": "tsc --noEmit"
"type-check": "tsc --noEmit"
},
"author": "RemixDev",
"license": "GPL-3.0-or-later",
Expand Down
2 changes: 1 addition & 1 deletion deezer-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build": "tsc",
"test": "vitest run",
"test:watch": "vitest",
"lint:ts": "tsc --noEmit"
"type-check": "tsc --noEmit"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"dev": "electron .",
"build": "node ./scripts/build.mjs --mode production",
"package": "electron-forge package",
"make": "electron-forge make"
"make": "electron-forge make",
"type-check": "tsc --noEmit"
},
"devDependencies": {
"@electron-forge/cli": "^7.3.1",
Expand Down
1 change: 0 additions & 1 deletion gui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"strict": false,
"esModuleInterop": true,
"declaration": true,
"emitDeclarationOnly": true,
"resolveJsonModule": true,
"rootDir": "./src",
"outDir": "./dist"
Expand Down
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@
"dev": "pnpm -r --parallel --filter=!deemix-gui dev",
"dev:gui": "pnpm -C gui dev",
"build": "turbo run build",
"lint": "turbo run lint",
"type-check": "turbo run type-check",
"test": "turbo run test",
"package": "turbo run package",
"make": "turbo run make",
"build:gui": "pnpm build && pnpm -C gui build",
"start": "pnpm -C webui start",
"test": "pnpm -C webui test",
"lint": "run-s lint:*",
"lint:es": "eslint .",
"lint:ts": "pnpm -r lint:ts",
"ci": "turbo run lint type-check build",
"prepare": "husky"
},
"devDependencies": {
Expand Down
16 changes: 14 additions & 2 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
{
"$schema": "https://turborepo.org/schema.json",
"tasks": {
"lint": {
"outputs": []
},
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
},
"type-check": {
"dependsOn": ["^build"],
"outputs": []
},
"test": {
"dependsOn": ["^build"]
},
"package": {
"dependsOn": ["build", "^package"]
"dependsOn": ["build", "^build"],
"outputs": ["dist/**", "out/**"]
},
"make": {
"dependsOn": ["build", "^make"]
"dependsOn": ["build", "^build"],
"outputs": ["dist/**", "out/**"]
}
}
}
6 changes: 3 additions & 3 deletions webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"test": "jest",
"test-watch": "jest --watch",
"testlang": "node ./tests/testlang.js",
"lint:ts": "run-p lint:client lint:server",
"lint:client": "vue-tsc --noEmit -p src/client/tsconfig.json",
"lint:server": "tsc --noEmit -p src/server/tsconfig.json"
"type-check": "run-p type-check:*",
"type-check:client": "vue-tsc --noEmit -p src/client/tsconfig.json",
"type-check:server": "tsc --noEmit -p src/server/tsconfig.json"
},
"nodemonConfig": {
"watch": [
Expand Down

0 comments on commit 2e84312

Please sign in to comment.