From 786b3340822f424237ecb4c317ea42dbd7d282fc Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Sun, 14 Jan 2024 23:49:15 -0700 Subject: [PATCH] Setup Turborepo. --- .gitignore | 6 ++++- apps/client/package.json | 8 ++++++ apps/e2e/package.json | 8 ++++++ apps/server/package.json | 8 ++++++ apps/workers/package.json | 8 ++++++ libs/client/features/package.json | 8 ++++++ libs/client/shared/package.json | 8 ++++++ libs/design-system/package.json | 4 +++ libs/finicity-api/package.json | 8 ++++++ libs/server/features/package.json | 8 ++++++ libs/server/shared/package.json | 8 ++++++ libs/shared/package.json | 8 ++++++ package.json | 9 +++++++ turbo.json | 7 ++++++ yarn.lock | 42 +++++++++++++++++++++++++++++++ 15 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 apps/client/package.json create mode 100644 apps/e2e/package.json create mode 100644 apps/server/package.json create mode 100644 apps/workers/package.json create mode 100644 libs/client/features/package.json create mode 100644 libs/client/shared/package.json create mode 100644 libs/finicity-api/package.json create mode 100644 libs/server/features/package.json create mode 100644 libs/server/shared/package.json create mode 100644 libs/shared/package.json create mode 100644 turbo.json diff --git a/.gitignore b/.gitignore index 659edc84..06128c0d 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ exceptions.log error.log combined.log /tools/output +tsconfig.tsbuildinfo # System Files .DS_Store @@ -53,4 +54,7 @@ Thumbs.db migrations.json # Shouldn't happen, but backup since we have a script that generates these locally -*.pem \ No newline at end of file +*.pem + +# Turborepo +.turbo diff --git a/apps/client/package.json b/apps/client/package.json new file mode 100644 index 00000000..84fd4b26 --- /dev/null +++ b/apps/client/package.json @@ -0,0 +1,8 @@ +{ + "name": "@maybe/client-app", + "version": "0.0.1", + "scripts": { + "lint": "eslint .", + "check-types": "tsc --noEmit --pretty" + } +} diff --git a/apps/e2e/package.json b/apps/e2e/package.json new file mode 100644 index 00000000..3503519f --- /dev/null +++ b/apps/e2e/package.json @@ -0,0 +1,8 @@ +{ + "name": "@maybe/e2e-app", + "version": "0.0.1", + "scripts": { + "lint": "eslint .", + "check-types": "tsc --noEmit --pretty" + } +} diff --git a/apps/server/package.json b/apps/server/package.json new file mode 100644 index 00000000..b2ed70c9 --- /dev/null +++ b/apps/server/package.json @@ -0,0 +1,8 @@ +{ + "name": "@maybe/server-app", + "version": "0.0.1", + "scripts": { + "lint": "eslint .", + "check-types": "tsc --noEmit --pretty -p tsconfig.app.json" + } +} diff --git a/apps/workers/package.json b/apps/workers/package.json new file mode 100644 index 00000000..e021752e --- /dev/null +++ b/apps/workers/package.json @@ -0,0 +1,8 @@ +{ + "name": "@maybe/workers-app", + "version": "0.0.1", + "scripts": { + "lint": "eslint .", + "check-types": "tsc --noEmit --pretty -p tsconfig.app.json" + } +} diff --git a/libs/client/features/package.json b/libs/client/features/package.json new file mode 100644 index 00000000..857f86d4 --- /dev/null +++ b/libs/client/features/package.json @@ -0,0 +1,8 @@ +{ + "name": "@maybe/client-features-lib", + "version": "0.0.1", + "scripts": { + "lint": "eslint .", + "check-types": "tsc --noEmit --pretty" + } +} diff --git a/libs/client/shared/package.json b/libs/client/shared/package.json new file mode 100644 index 00000000..d493875e --- /dev/null +++ b/libs/client/shared/package.json @@ -0,0 +1,8 @@ +{ + "name": "@maybe/client-shared-lib", + "version": "0.0.1", + "scripts": { + "lint": "eslint .", + "check-types": "tsc --noEmit --pretty" + } +} diff --git a/libs/design-system/package.json b/libs/design-system/package.json index 0c575688..cac9eff0 100644 --- a/libs/design-system/package.json +++ b/libs/design-system/package.json @@ -1,6 +1,10 @@ { "name": "@maybe-finance/design-system", "version": "0.0.1", + "scripts": { + "lint": "eslint .", + "check-types": "tsc --noEmit --pretty" + }, "nx": { "targets": { "build": { diff --git a/libs/finicity-api/package.json b/libs/finicity-api/package.json new file mode 100644 index 00000000..9941a418 --- /dev/null +++ b/libs/finicity-api/package.json @@ -0,0 +1,8 @@ +{ + "name": "@maybe-finance/finicity-api", + "version": "0.0.1", + "scripts": { + "lint": "eslint .", + "check-types": "tsc --noEmit --pretty" + } +} diff --git a/libs/server/features/package.json b/libs/server/features/package.json new file mode 100644 index 00000000..de4321fb --- /dev/null +++ b/libs/server/features/package.json @@ -0,0 +1,8 @@ +{ + "name": "@maybe-finance/server-features-lib", + "version": "0.0.1", + "scripts": { + "lint": "eslint .", + "check-types": "tsc --noEmit --pretty" + } +} diff --git a/libs/server/shared/package.json b/libs/server/shared/package.json new file mode 100644 index 00000000..fb221463 --- /dev/null +++ b/libs/server/shared/package.json @@ -0,0 +1,8 @@ +{ + "name": "@maybe-finance/server-shared-lib", + "version": "0.0.1", + "scripts": { + "lint": "eslint .", + "check-types": "tsc --noEmit --pretty" + } +} diff --git a/libs/shared/package.json b/libs/shared/package.json new file mode 100644 index 00000000..8058b42e --- /dev/null +++ b/libs/shared/package.json @@ -0,0 +1,8 @@ +{ + "name": "@maybe-finance/shared-lib", + "version": "0.0.1", + "scripts": { + "lint": "eslint .", + "check-types": "tsc --noEmit --pretty" + } +} diff --git a/package.json b/package.json index 518f953f..b369d50a 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,14 @@ "seed": "ts-node --transpile-only prisma/seed.ts" }, "private": true, + "workspaces": [ + "apps/*", + "libs/client/*", + "libs/design-system", + "libs/finicity-api", + "libs/server/*", + "libs/shared" + ], "dependencies": { "@auth/prisma-adapter": "^1.0.14", "@bull-board/express": "^4.6.4", @@ -247,6 +255,7 @@ "ts-jest": "28.0.5", "ts-node": "10.9.1", "ts-toolbelt": "^9.6.0", + "turbo": "^1.11.3", "typescript": "4.8.4", "url-loader": "^4.1.1", "wait-on": "^6.0.1", diff --git a/turbo.json b/turbo.json new file mode 100644 index 00000000..2651084b --- /dev/null +++ b/turbo.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://turbo.build/schema.json", + "pipeline": { + "check-types": {}, + "lint": {} + } +} diff --git a/yarn.lock b/yarn.lock index 70375fc9..8e7b923e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19374,6 +19374,48 @@ tunnel-agent@^0.6.0: dependencies: safe-buffer "^5.0.1" +turbo-darwin-64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-darwin-64/-/turbo-darwin-64-1.11.3.tgz#fb51f6fa030ee7a169d383b5f4f7641df6a3bdb8" + integrity sha512-IsOOg2bVbIt3o/X8Ew9fbQp5t1hTHN3fGNQYrPQwMR2W1kIAC6RfbVD4A9OeibPGyEPUpwOH79hZ9ydFH5kifw== + +turbo-darwin-arm64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-darwin-arm64/-/turbo-darwin-arm64-1.11.3.tgz#f936cc7ba5565bd9be1ddc8ef4f15284044a63a5" + integrity sha512-FsJL7k0SaPbJzI/KCnrf/fi3PgCDCjTliMc/kEFkuWVA6Httc3Q4lxyLIIinz69q6JTx8wzh6yznUMzJRI3+dg== + +turbo-linux-64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-linux-64/-/turbo-linux-64-1.11.3.tgz#86f56a91c05eea512a187079f7f7f860d8168be6" + integrity sha512-SvW7pvTVRGsqtSkII5w+wriZXvxqkluw5FO/MNAdFw0qmoov+PZ237+37/NgArqE3zVn1GX9P6nUx9VO+xcQAg== + +turbo-linux-arm64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-linux-arm64/-/turbo-linux-arm64-1.11.3.tgz#0001dab6ded89154e2a5be21e87720daba953056" + integrity sha512-YhUfBi1deB3m+3M55X458J6B7RsIS7UtM3P1z13cUIhF+pOt65BgnaSnkHLwETidmhRh8Dl3GelaQGrB3RdCDw== + +turbo-windows-64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-windows-64/-/turbo-windows-64-1.11.3.tgz#8d03c4fd8a46b81f2aecf60fc9845674c84d15a8" + integrity sha512-s+vEnuM2TiZuAUUUpmBHDr6vnNbJgj+5JYfnYmVklYs16kXh+EppafYQOAkcRIMAh7GjV3pLq5/uGqc7seZeHA== + +turbo-windows-arm64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-windows-arm64/-/turbo-windows-arm64-1.11.3.tgz#cc436d1462f5450e97f985ba6d8d447272bb97db" + integrity sha512-ZR5z5Zpc7cASwfdRAV5yNScCZBsgGSbcwiA/u3farCacbPiXsfoWUkz28iyrx21/TRW0bi6dbsB2v17swa8bjw== + +turbo@^1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo/-/turbo-1.11.3.tgz#3bd823043585e1acfe125727bcecd4f91ef2103b" + integrity sha512-RCJOUFcFMQNIGKSjC9YmA5yVP1qtDiBA0Lv9VIgrXraI5Da1liVvl3VJPsoDNIR9eFMyA/aagx1iyj6UWem5hA== + optionalDependencies: + turbo-darwin-64 "1.11.3" + turbo-darwin-arm64 "1.11.3" + turbo-linux-64 "1.11.3" + turbo-linux-arm64 "1.11.3" + turbo-windows-64 "1.11.3" + turbo-windows-arm64 "1.11.3" + tweetnacl@^0.14.3, tweetnacl@~0.14.0: version "0.14.5" resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"