Skip to content

Commit

Permalink
♻️ Switch from pm2 to turborepo
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Aug 31, 2024
1 parent 8f4455a commit 7f27d27
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 59 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ packages/wallet/next-env.d.ts
# sst
.sst

.idea
.idea

# Turbo tmp stuff
.turbo
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion example/news-interactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"license": "MIT",
"scripts": {
"next-dev-https": "next dev --experimental-https",
"next-dev-https": "next dev --experimental-https --port 3011",
"dev": "sst bind bun run next-dev-https",
"build": "sst bind next build --experimental-turbo",
"start": "sst bind next start",
Expand Down
2 changes: 1 addition & 1 deletion example/wallet-ethcc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"license": "MIT",
"scripts": {
"next-dev-https": "next dev --experimental-https",
"next-dev-https": "next dev --experimental-https --port 3012",
"dev": "sst bind bun run next-dev-https",
"build": "sst bind next build --experimental-turbo",
"start": "sst bind next start",
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
"type": "module",
"license": "GNU GPL 3.0",
"scripts": {
"dev": "pm2 start pm2.config.cjs",
"dev:stop": "pm2 stop all",
"dev:restart": "pm2 restart all",
"dev:gui": "pm2 plus",
"dev": "turbo dev",
"dev:infra": "sst dev",
"lint": "biome lint .",
"format:check": "biome check .",
"format": "biome check --write .",
Expand All @@ -32,13 +30,16 @@
"@types/node": "^22.0.0",
"knip": "^5.27.0",
"npm-check-updates": "^16.14.20",
"pm2": "^5.4.2",
"rimraf": "^6.0.1",
"sst": "2.43.6",
"typescript": "^5.5.4"
},
"workspaces": [
"packages/*",
"example/*"
]
],
"dependencies": {
"turbo": "^2.1.1"
},
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"license": "GNU GPL 3.0",
"scripts": {
"next-dev-https": "next dev --experimental-https",
"next-dev-https": "next dev --experimental-https --port 3001",
"dev": "sst bind bun run next-dev-https",
"build": "sst bind next build --experimental-turbo",
"start": "sst bind next start",
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"license": "GNU GPL 3.0",
"scripts": {
"next-dev-https": "next dev --experimental-https",
"next-dev-https": "next dev --experimental-https --port 3000",
"dev": "sst bind bun run next-dev-https",
"build": "sst bind next build",
"start": "sst bind next start",
Expand Down
48 changes: 0 additions & 48 deletions pm2.config.cjs

This file was deleted.

34 changes: 34 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"//#dev:infra": {
"outputs": [".sst/**", "!.sst/cache/**", "!.sst/debug.log"],
"inputs": ["iac/**"]
},
"@frak-labs/nexus-sdk#build": {
"outputs": ["dist/**"],
"inputs": ["src/**"]
},
"build": {
"dependsOn": [
"@frak-labs/nexus-sdk#build",
"//#dev:infra",
"^build"
],
"outputs": [
".next/**",
"!.next/cache/**",
".open-next/**",
"!..open-next/cache/**"
]
},
"typecheck": {
"dependsOn": ["^typecheck"]
},
"dev": {
"dependsOn": ["@frak-labs/nexus-sdk#build"],
"persistent": true,
"cache": false
}
}
}

0 comments on commit 7f27d27

Please sign in to comment.