From 3a5bb77d796814fcbc52df11a263a3b872ae56a4 Mon Sep 17 00:00:00 2001 From: Wahyu Kurniawan Date: Wed, 17 Jan 2024 21:59:33 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20format=20error=20and=20ci?= =?UTF-8?q?=20setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 6 +- README.md | 5 +- apps/auth-proxy/package.json | 8 +- apps/auth-proxy/tsconfig.json | 2 +- apps/expo/package.json | 10 +- apps/expo/tsconfig.json | 8 +- apps/nextjs/package.json | 18 +- apps/nextjs/src/app/_components/posts.tsx | 4 +- apps/nextjs/tailwind.config.ts | 1 + apps/nextjs/tsconfig.json | 6 +- configs/eslint/package.json | 4 +- configs/eslint/tsconfig.json | 4 +- configs/prettier/index.js | 2 +- configs/prettier/package.json | 2 +- configs/prettier/tsconfig.json | 4 +- configs/tailwind/functions/hexToRGB.ts | 7 +- configs/tailwind/package.json | 10 +- ...{taliwind.config.ts => tailwind.config.ts} | 0 configs/tailwind/tsconfig.json | 4 +- package.json | 4 +- packages/api/package.json | 12 +- packages/api/tsconfig.json | 4 +- packages/auth/package.json | 8 +- packages/auth/tsconfig.json | 4 +- packages/db/package.json | 6 +- packages/db/tsconfig.json | 4 +- packages/ui/package.json | 8 +- packages/ui/tsconfig.json | 4 +- packages/validators/package.json | 6 +- packages/validators/tsconfig.json | 4 +- pnpm-lock.yaml | 519 +++++++++--------- turbo/generators/templates/package.json.hbs | 6 +- 32 files changed, 339 insertions(+), 355 deletions(-) rename configs/tailwind/{taliwind.config.ts => tailwind.config.ts} (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0b20b7..8baf9c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v4 - name: Setup - uses: ./tooling/github/setup + uses: ./configs/github/setup - name: Copy env shell: bash @@ -40,7 +40,7 @@ jobs: - uses: actions/checkout@v4 - name: Setup - uses: ./tooling/github/setup + uses: ./configs/github/setup - name: Format run: pnpm format @@ -51,7 +51,7 @@ jobs: - uses: actions/checkout@v4 - name: Setup - uses: ./tooling/github/setup + uses: ./configs/github/setup - name: Typecheck run: pnpm typecheck diff --git a/README.md b/README.md index 3f341b6..8047e76 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ packages | └─ Tailwind CSS └─ utils └─ Utility functions -tooling +configs ├─ eslint ├─ github ├─ prettier @@ -76,7 +76,6 @@ Let's deploy the Next.js application to [Vercel](https://vercel.com/). If you ha 2. Done! Your app should successfully deploy. - ## References - [Turborepo](https://turbo.build/repo) @@ -88,4 +87,4 @@ MIT License
-© 2023 Wahyu Kurniawan \ No newline at end of file +© 2023 Wahyu Kurniawan diff --git a/apps/auth-proxy/package.json b/apps/auth-proxy/package.json index 3ecf2ab..68f1c5b 100644 --- a/apps/auth-proxy/package.json +++ b/apps/auth-proxy/package.json @@ -14,10 +14,10 @@ "@auth/core": "^0.20.0" }, "devDependencies": { - "@acme/eslint-config": "workspace:^0.2.0", - "@acme/prettier-config": "workspace:^0.1.0", - "@acme/tailwind-config": "workspace:^0.1.0", - "@acme/tsconfig": "workspace:^0.1.0", + "@acme/eslint-config": "workspace:*", + "@acme/prettier-config": "workspace:*", + "@acme/tailwind-config": "workspace:*", + "@acme/tsconfig": "workspace:*", "eslint": "^8.56.0", "nitropack": "^2.8.1", "prettier": "^3.1.1", diff --git a/apps/auth-proxy/tsconfig.json b/apps/auth-proxy/tsconfig.json index a2aaadc..af6ac67 100644 --- a/apps/auth-proxy/tsconfig.json +++ b/apps/auth-proxy/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "@acme/tsconfig/base.json", - "include": ["routes"] + "include": ["routes"], } diff --git a/apps/expo/package.json b/apps/expo/package.json index aa97fa3..00ebacc 100644 --- a/apps/expo/package.json +++ b/apps/expo/package.json @@ -37,11 +37,11 @@ "superjson": "2.2.1" }, "devDependencies": { - "@acme/api": "workspace:^0.1.0", - "@acme/eslint-config": "workspace:^0.2.0", - "@acme/prettier-config": "workspace:^0.1.0", - "@acme/tailwind-config": "workspace:^0.1.0", - "@acme/tsconfig": "workspace:^0.1.0", + "@acme/api": "workspace:*", + "@acme/eslint-config": "workspace:*", + "@acme/prettier-config": "workspace:*", + "@acme/tailwind-config": "workspace:*", + "@acme/tsconfig": "workspace:*", "@babel/core": "^7.23.7", "@babel/preset-env": "^7.23.7", "@babel/runtime": "^7.23.7", diff --git a/apps/expo/tsconfig.json b/apps/expo/tsconfig.json index 2294f4f..a82f6fd 100644 --- a/apps/expo/tsconfig.json +++ b/apps/expo/tsconfig.json @@ -3,11 +3,11 @@ "compilerOptions": { "baseUrl": ".", "paths": { - "~/*": ["./src/*"] + "~/*": ["./src/*"], }, "jsx": "react-native", "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json", - "types": ["nativewind/types"] + "types": ["nativewind/types"], }, "include": [ "src", @@ -15,7 +15,7 @@ "index.tsx", "*.js", ".expo/types/**/*.ts", - "expo-env.d.ts" + "expo-env.d.ts", ], - "exclude": ["node_modules"] + "exclude": ["node_modules"], } diff --git a/apps/nextjs/package.json b/apps/nextjs/package.json index 9dcb1e8..d14143c 100644 --- a/apps/nextjs/package.json +++ b/apps/nextjs/package.json @@ -14,11 +14,11 @@ "with-env": "dotenv -e ../../.env --" }, "dependencies": { - "@acme/api": "workspace:^0.1.0", - "@acme/auth": "workspace:^0.1.0", - "@acme/db": "workspace:^0.1.0", - "@acme/ui": "workspace:^0.1.0", - "@acme/validators": "workspace:^0.1.0", + "@acme/api": "workspace:*", + "@acme/auth": "workspace:*", + "@acme/db": "workspace:*", + "@acme/ui": "workspace:*", + "@acme/validators": "workspace:*", "@t3-oss/env-nextjs": "^0.7.1", "@tanstack/react-query": "^5.17.7", "@tanstack/react-query-devtools": "^5.17.7", @@ -34,10 +34,10 @@ "zod": "^3.22.4" }, "devDependencies": { - "@acme/eslint-config": "workspace:^0.2.0", - "@acme/prettier-config": "workspace:^0.1.0", - "@acme/tailwind-config": "workspace:^0.1.0", - "@acme/tsconfig": "workspace:^0.1.0", + "@acme/eslint-config": "workspace:*", + "@acme/prettier-config": "workspace:*", + "@acme/tailwind-config": "workspace:*", + "@acme/tsconfig": "workspace:*", "@types/node": "^20.10.6", "@types/react": "^18.2.46", "@types/react-dom": "^18.2.18", diff --git a/apps/nextjs/src/app/_components/posts.tsx b/apps/nextjs/src/app/_components/posts.tsx index e35153c..f6d0dcd 100644 --- a/apps/nextjs/src/app/_components/posts.tsx +++ b/apps/nextjs/src/app/_components/posts.tsx @@ -47,7 +47,7 @@ export function CreatePostForm() {
{ + onSubmit={form.handleSubmit((data) => { createPost.mutate(data); })} > @@ -138,8 +138,8 @@ export function PostCard(props: {