From 6eee4021d199aeac6c9e98b774b2a3cf3411cdf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Thu, 21 Sep 2023 21:35:36 +0900 Subject: [PATCH 01/26] refactor: Use correct directory (#3) --- swc-plugins/.eslintrc.json | 3 + swc-plugins/.gitignore | 35 ++++++++++ swc-plugins/app/favicon.ico | Bin 0 -> 25931 bytes swc-plugins/app/globals.css | 27 ++++++++ swc-plugins/app/layout.tsx | 22 +++++++ swc-plugins/app/page.tsx | 113 +++++++++++++++++++++++++++++++++ swc-plugins/next.config.js | 4 ++ swc-plugins/package.json | 25 ++++++++ swc-plugins/postcss.config.js | 6 ++ swc-plugins/public/next.svg | 1 + swc-plugins/public/vercel.svg | 1 + swc-plugins/tailwind.config.ts | 20 ++++++ swc-plugins/tsconfig.json | 27 ++++++++ 13 files changed, 284 insertions(+) create mode 100644 swc-plugins/.eslintrc.json create mode 100644 swc-plugins/.gitignore create mode 100644 swc-plugins/app/favicon.ico create mode 100644 swc-plugins/app/globals.css create mode 100644 swc-plugins/app/layout.tsx create mode 100644 swc-plugins/app/page.tsx create mode 100644 swc-plugins/next.config.js create mode 100644 swc-plugins/package.json create mode 100644 swc-plugins/postcss.config.js create mode 100644 swc-plugins/public/next.svg create mode 100644 swc-plugins/public/vercel.svg create mode 100644 swc-plugins/tailwind.config.ts create mode 100644 swc-plugins/tsconfig.json diff --git a/swc-plugins/.eslintrc.json b/swc-plugins/.eslintrc.json new file mode 100644 index 0000000..bffb357 --- /dev/null +++ b/swc-plugins/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/swc-plugins/.gitignore b/swc-plugins/.gitignore new file mode 100644 index 0000000..8f322f0 --- /dev/null +++ b/swc-plugins/.gitignore @@ -0,0 +1,35 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/swc-plugins/app/favicon.ico b/swc-plugins/app/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..718d6fea4835ec2d246af9800eddb7ffb276240c GIT binary patch literal 25931 zcmeHv30#a{`}aL_*G&7qml|y<+KVaDM2m#dVr!KsA!#An?kSQM(q<_dDNCpjEux83 zLb9Z^XxbDl(w>%i@8hT6>)&Gu{h#Oeyszu?xtw#Zb1mO{pgX9699l+Qppw7jXaYf~-84xW z)w4x8?=youko|}Vr~(D$UXIbiXABHh`p1?nn8Po~fxRJv}|0e(BPs|G`(TT%kKVJAdg5*Z|x0leQq0 zkdUBvb#>9F()jo|T~kx@OM8$9wzs~t2l;K=woNssA3l6|sx2r3+kdfVW@e^8e*E}v zA1y5{bRi+3Z`uD3{F7LgFJDdvm;nJilkzDku>BwXH(8ItVCXk*-lSJnR?-2UN%hJ){&rlvg`CDTj z)Bzo!3v7Ou#83zEDEFcKt(f1E0~=rqeEbTnMvWR#{+9pg%7G8y>u1OVRUSoox-ovF z2Ydma(;=YuBY(eI|04{hXzZD6_f(v~H;C~y5=DhAC{MMS>2fm~1H_t2$56pc$NH8( z5bH|<)71dV-_oCHIrzrT`2s-5w_+2CM0$95I6X8p^r!gHp+j_gd;9O<1~CEQQGS8) zS9Qh3#p&JM-G8rHekNmKVewU;pJRcTAog68KYo^dRo}(M>36U4Us zfgYWSiHZL3;lpWT=zNAW>Dh#mB!_@Lg%$ms8N-;aPqMn+C2HqZgz&9~Eu z4|Kp<`$q)Uw1R?y(~S>ePdonHxpV1#eSP1B;Ogo+-Pk}6#0GsZZ5!||ev2MGdh}_m z{DeR7?0-1^zVs&`AV6Vt;r3`I`OI_wgs*w=eO%_#7Kepl{B@xiyCANc(l zzIyd4y|c6PXWq9-|KM8(zIk8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FdvkYBni^aLbUk>BajeWIOcmHP#8S)*2U~QKI%S zyrLmtPqb&TphJ;>yAxri#;{uyk`JJqODDw%(Z=2`1uc}br^V%>j!gS)D*q*f_-qf8&D;W1dJgQMlaH5er zN2U<%Smb7==vE}dDI8K7cKz!vs^73o9f>2sgiTzWcwY|BMYHH5%Vn7#kiw&eItCqa zIkR2~Q}>X=Ar8W|^Ms41Fm8o6IB2_j60eOeBB1Br!boW7JnoeX6Gs)?7rW0^5psc- zjS16yb>dFn>KPOF;imD}e!enuIniFzv}n$m2#gCCv4jM#ArwlzZ$7@9&XkFxZ4n!V zj3dyiwW4Ki2QG{@i>yuZXQizw_OkZI^-3otXC{!(lUpJF33gI60ak;Uqitp74|B6I zgg{b=Iz}WkhCGj1M=hu4#Aw173YxIVbISaoc z-nLZC*6Tgivd5V`K%GxhBsp@SUU60-rfc$=wb>zdJzXS&-5(NRRodFk;Kxk!S(O(a0e7oY=E( zAyS;Ow?6Q&XA+cnkCb{28_1N8H#?J!*$MmIwLq^*T_9-z^&UE@A(z9oGYtFy6EZef LrJugUA?W`A8`#=m literal 0 HcmV?d00001 diff --git a/swc-plugins/app/globals.css b/swc-plugins/app/globals.css new file mode 100644 index 0000000..fd81e88 --- /dev/null +++ b/swc-plugins/app/globals.css @@ -0,0 +1,27 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +:root { + --foreground-rgb: 0, 0, 0; + --background-start-rgb: 214, 219, 220; + --background-end-rgb: 255, 255, 255; +} + +@media (prefers-color-scheme: dark) { + :root { + --foreground-rgb: 255, 255, 255; + --background-start-rgb: 0, 0, 0; + --background-end-rgb: 0, 0, 0; + } +} + +body { + color: rgb(var(--foreground-rgb)); + background: linear-gradient( + to bottom, + transparent, + rgb(var(--background-end-rgb)) + ) + rgb(var(--background-start-rgb)); +} diff --git a/swc-plugins/app/layout.tsx b/swc-plugins/app/layout.tsx new file mode 100644 index 0000000..ae84562 --- /dev/null +++ b/swc-plugins/app/layout.tsx @@ -0,0 +1,22 @@ +import './globals.css' +import type { Metadata } from 'next' +import { Inter } from 'next/font/google' + +const inter = Inter({ subsets: ['latin'] }) + +export const metadata: Metadata = { + title: 'Create Next App', + description: 'Generated by create next app', +} + +export default function RootLayout({ + children, +}: { + children: React.ReactNode +}) { + return ( + + {children} + + ) +} diff --git a/swc-plugins/app/page.tsx b/swc-plugins/app/page.tsx new file mode 100644 index 0000000..7a8286b --- /dev/null +++ b/swc-plugins/app/page.tsx @@ -0,0 +1,113 @@ +import Image from 'next/image' + +export default function Home() { + return ( +
+
+

+ Get started by editing  + app/page.tsx +

+ +
+ +
+ Next.js Logo +
+ + +
+ ) +} diff --git a/swc-plugins/next.config.js b/swc-plugins/next.config.js new file mode 100644 index 0000000..767719f --- /dev/null +++ b/swc-plugins/next.config.js @@ -0,0 +1,4 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = {} + +module.exports = nextConfig diff --git a/swc-plugins/package.json b/swc-plugins/package.json new file mode 100644 index 0000000..e9a7755 --- /dev/null +++ b/swc-plugins/package.json @@ -0,0 +1,25 @@ +{ + "name": "swc-plugins", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "next dev -p 30000", + "build": "next build", + "start": "next start", + "lint": "next lint" + }, + "dependencies": { + "@types/node": "20.6.3", + "@types/react": "18.2.22", + "@types/react-dom": "18.2.7", + "autoprefixer": "10.4.16", + "eslint": "8.49.0", + "eslint-config-next": "13.5.2", + "next": "13.5.2", + "postcss": "8.4.30", + "react": "18.2.0", + "react-dom": "18.2.0", + "tailwindcss": "3.3.3", + "typescript": "5.2.2" + } +} diff --git a/swc-plugins/postcss.config.js b/swc-plugins/postcss.config.js new file mode 100644 index 0000000..33ad091 --- /dev/null +++ b/swc-plugins/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/swc-plugins/public/next.svg b/swc-plugins/public/next.svg new file mode 100644 index 0000000..5174b28 --- /dev/null +++ b/swc-plugins/public/next.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/swc-plugins/public/vercel.svg b/swc-plugins/public/vercel.svg new file mode 100644 index 0000000..d2f8422 --- /dev/null +++ b/swc-plugins/public/vercel.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/swc-plugins/tailwind.config.ts b/swc-plugins/tailwind.config.ts new file mode 100644 index 0000000..c7ead80 --- /dev/null +++ b/swc-plugins/tailwind.config.ts @@ -0,0 +1,20 @@ +import type { Config } from 'tailwindcss' + +const config: Config = { + content: [ + './pages/**/*.{js,ts,jsx,tsx,mdx}', + './components/**/*.{js,ts,jsx,tsx,mdx}', + './app/**/*.{js,ts,jsx,tsx,mdx}', + ], + theme: { + extend: { + backgroundImage: { + 'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))', + 'gradient-conic': + 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))', + }, + }, + }, + plugins: [], +} +export default config diff --git a/swc-plugins/tsconfig.json b/swc-plugins/tsconfig.json new file mode 100644 index 0000000..c714696 --- /dev/null +++ b/swc-plugins/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] +} From 8a71a2e1cd0c9d5f666e5fbc58db1c262cb17f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Thu, 21 Sep 2023 22:14:38 +0900 Subject: [PATCH 02/26] feat: Merge stc docs into the monorepo (#4) --- swc-plugins/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swc-plugins/package.json b/swc-plugins/package.json index e9a7755..1de50be 100644 --- a/swc-plugins/package.json +++ b/swc-plugins/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev -p 30000", + "dev": "next dev -p 50000", "build": "next build", "start": "next start", "lint": "next lint" From 250dd7b715e4723281b00bad35b28cd713942647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Fri, 22 Sep 2023 14:29:28 +0900 Subject: [PATCH 03/26] chore: Configure `changeset` (#16) --- swc-plugins/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/swc-plugins/package.json b/swc-plugins/package.json index 1de50be..a84831c 100644 --- a/swc-plugins/package.json +++ b/swc-plugins/package.json @@ -1,6 +1,5 @@ { - "name": "swc-plugins", - "version": "0.1.0", + "name": "@dudykr/swc-plugin-registry", "private": true, "scripts": { "dev": "next dev -p 50000", From 43d22295e79d9365f1fef5898c7d4f4c852c7e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 25 Sep 2023 00:46:52 +0900 Subject: [PATCH 04/26] refactor: Rename `swc-plugins` as `swc-plugin-registry` (#17) --- .../.eslintrc.json | 0 .../.gitignore | 0 .../app/favicon.ico | Bin .../app/globals.css | 0 swc-plugin-registry/app/layout.tsx | 22 ++++++++++++++++++ .../app/page.tsx | 20 ++++++++-------- swc-plugin-registry/next.config.js | 4 ++++ .../package.json | 0 .../postcss.config.js | 2 +- .../public/next.svg | 0 .../public/vercel.svg | 0 swc-plugin-registry/tailwind.config.ts | 20 ++++++++++++++++ .../tsconfig.json | 0 swc-plugins/app/layout.tsx | 22 ------------------ swc-plugins/next.config.js | 4 ---- swc-plugins/tailwind.config.ts | 20 ---------------- 16 files changed, 57 insertions(+), 57 deletions(-) rename {swc-plugins => swc-plugin-registry}/.eslintrc.json (100%) rename {swc-plugins => swc-plugin-registry}/.gitignore (100%) rename {swc-plugins => swc-plugin-registry}/app/favicon.ico (100%) rename {swc-plugins => swc-plugin-registry}/app/globals.css (100%) create mode 100644 swc-plugin-registry/app/layout.tsx rename {swc-plugins => swc-plugin-registry}/app/page.tsx (83%) create mode 100644 swc-plugin-registry/next.config.js rename {swc-plugins => swc-plugin-registry}/package.json (100%) rename {swc-plugins => swc-plugin-registry}/postcss.config.js (96%) rename {swc-plugins => swc-plugin-registry}/public/next.svg (100%) rename {swc-plugins => swc-plugin-registry}/public/vercel.svg (100%) create mode 100644 swc-plugin-registry/tailwind.config.ts rename {swc-plugins => swc-plugin-registry}/tsconfig.json (100%) delete mode 100644 swc-plugins/app/layout.tsx delete mode 100644 swc-plugins/next.config.js delete mode 100644 swc-plugins/tailwind.config.ts diff --git a/swc-plugins/.eslintrc.json b/swc-plugin-registry/.eslintrc.json similarity index 100% rename from swc-plugins/.eslintrc.json rename to swc-plugin-registry/.eslintrc.json diff --git a/swc-plugins/.gitignore b/swc-plugin-registry/.gitignore similarity index 100% rename from swc-plugins/.gitignore rename to swc-plugin-registry/.gitignore diff --git a/swc-plugins/app/favicon.ico b/swc-plugin-registry/app/favicon.ico similarity index 100% rename from swc-plugins/app/favicon.ico rename to swc-plugin-registry/app/favicon.ico diff --git a/swc-plugins/app/globals.css b/swc-plugin-registry/app/globals.css similarity index 100% rename from swc-plugins/app/globals.css rename to swc-plugin-registry/app/globals.css diff --git a/swc-plugin-registry/app/layout.tsx b/swc-plugin-registry/app/layout.tsx new file mode 100644 index 0000000..5732299 --- /dev/null +++ b/swc-plugin-registry/app/layout.tsx @@ -0,0 +1,22 @@ +import "./globals.css"; +import type { Metadata } from "next"; +import { Inter } from "next/font/google"; + +const inter = Inter({ subsets: ["latin"] }); + +export const metadata: Metadata = { + title: "Create Next App", + description: "Generated by create next app", +}; + +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + + {children} + + ); +} diff --git a/swc-plugins/app/page.tsx b/swc-plugin-registry/app/page.tsx similarity index 83% rename from swc-plugins/app/page.tsx rename to swc-plugin-registry/app/page.tsx index 7a8286b..5842fc6 100644 --- a/swc-plugins/app/page.tsx +++ b/swc-plugin-registry/app/page.tsx @@ -1,9 +1,9 @@ -import Image from 'next/image' +import Image from "next/image"; export default function Home() { return (
-
- ) + ); } diff --git a/swc-plugin-registry/next.config.js b/swc-plugin-registry/next.config.js new file mode 100644 index 0000000..658404a --- /dev/null +++ b/swc-plugin-registry/next.config.js @@ -0,0 +1,4 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = {}; + +module.exports = nextConfig; diff --git a/swc-plugins/package.json b/swc-plugin-registry/package.json similarity index 100% rename from swc-plugins/package.json rename to swc-plugin-registry/package.json diff --git a/swc-plugins/postcss.config.js b/swc-plugin-registry/postcss.config.js similarity index 96% rename from swc-plugins/postcss.config.js rename to swc-plugin-registry/postcss.config.js index 33ad091..12a703d 100644 --- a/swc-plugins/postcss.config.js +++ b/swc-plugin-registry/postcss.config.js @@ -3,4 +3,4 @@ module.exports = { tailwindcss: {}, autoprefixer: {}, }, -} +}; diff --git a/swc-plugins/public/next.svg b/swc-plugin-registry/public/next.svg similarity index 100% rename from swc-plugins/public/next.svg rename to swc-plugin-registry/public/next.svg diff --git a/swc-plugins/public/vercel.svg b/swc-plugin-registry/public/vercel.svg similarity index 100% rename from swc-plugins/public/vercel.svg rename to swc-plugin-registry/public/vercel.svg diff --git a/swc-plugin-registry/tailwind.config.ts b/swc-plugin-registry/tailwind.config.ts new file mode 100644 index 0000000..7e4bd91 --- /dev/null +++ b/swc-plugin-registry/tailwind.config.ts @@ -0,0 +1,20 @@ +import type { Config } from "tailwindcss"; + +const config: Config = { + content: [ + "./pages/**/*.{js,ts,jsx,tsx,mdx}", + "./components/**/*.{js,ts,jsx,tsx,mdx}", + "./app/**/*.{js,ts,jsx,tsx,mdx}", + ], + theme: { + extend: { + backgroundImage: { + "gradient-radial": "radial-gradient(var(--tw-gradient-stops))", + "gradient-conic": + "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", + }, + }, + }, + plugins: [], +}; +export default config; diff --git a/swc-plugins/tsconfig.json b/swc-plugin-registry/tsconfig.json similarity index 100% rename from swc-plugins/tsconfig.json rename to swc-plugin-registry/tsconfig.json diff --git a/swc-plugins/app/layout.tsx b/swc-plugins/app/layout.tsx deleted file mode 100644 index ae84562..0000000 --- a/swc-plugins/app/layout.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import './globals.css' -import type { Metadata } from 'next' -import { Inter } from 'next/font/google' - -const inter = Inter({ subsets: ['latin'] }) - -export const metadata: Metadata = { - title: 'Create Next App', - description: 'Generated by create next app', -} - -export default function RootLayout({ - children, -}: { - children: React.ReactNode -}) { - return ( - - {children} - - ) -} diff --git a/swc-plugins/next.config.js b/swc-plugins/next.config.js deleted file mode 100644 index 767719f..0000000 --- a/swc-plugins/next.config.js +++ /dev/null @@ -1,4 +0,0 @@ -/** @type {import('next').NextConfig} */ -const nextConfig = {} - -module.exports = nextConfig diff --git a/swc-plugins/tailwind.config.ts b/swc-plugins/tailwind.config.ts deleted file mode 100644 index c7ead80..0000000 --- a/swc-plugins/tailwind.config.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type { Config } from 'tailwindcss' - -const config: Config = { - content: [ - './pages/**/*.{js,ts,jsx,tsx,mdx}', - './components/**/*.{js,ts,jsx,tsx,mdx}', - './app/**/*.{js,ts,jsx,tsx,mdx}', - ], - theme: { - extend: { - backgroundImage: { - 'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))', - 'gradient-conic': - 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))', - }, - }, - }, - plugins: [], -} -export default config From d1877d89a627e82965c53db55da5f6adf6fb2462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 25 Sep 2023 00:51:55 +0900 Subject: [PATCH 05/26] chore: Update deps (#18) --- swc-plugin-registry/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swc-plugin-registry/package.json b/swc-plugin-registry/package.json index a84831c..6800371 100644 --- a/swc-plugin-registry/package.json +++ b/swc-plugin-registry/package.json @@ -8,7 +8,7 @@ "lint": "next lint" }, "dependencies": { - "@types/node": "20.6.3", + "@types/node": "20.6.4", "@types/react": "18.2.22", "@types/react-dom": "18.2.7", "autoprefixer": "10.4.16", From dc1bdaa6f53fd829fa3447367f59ef2a276dcc2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Fri, 6 Oct 2023 17:43:16 +0900 Subject: [PATCH 06/26] feat: Add `stc-playground` (#20) --- stc-playground/.eslintrc.json | 3 + stc-playground/.gitignore | 35 +++++++++ stc-playground/README.md | 36 ++++++++++ stc-playground/app/favicon.ico | Bin 0 -> 25931 bytes stc-playground/app/globals.css | 27 +++++++ stc-playground/app/layout.tsx | 22 ++++++ stc-playground/app/page.tsx | 113 ++++++++++++++++++++++++++++++ stc-playground/next.config.js | 4 ++ stc-playground/package.json | 27 +++++++ stc-playground/postcss.config.js | 6 ++ stc-playground/public/next.svg | 1 + stc-playground/public/vercel.svg | 1 + stc-playground/tailwind.config.ts | 20 ++++++ stc-playground/tsconfig.json | 27 +++++++ 14 files changed, 322 insertions(+) create mode 100644 stc-playground/.eslintrc.json create mode 100644 stc-playground/.gitignore create mode 100644 stc-playground/README.md create mode 100644 stc-playground/app/favicon.ico create mode 100644 stc-playground/app/globals.css create mode 100644 stc-playground/app/layout.tsx create mode 100644 stc-playground/app/page.tsx create mode 100644 stc-playground/next.config.js create mode 100644 stc-playground/package.json create mode 100644 stc-playground/postcss.config.js create mode 100644 stc-playground/public/next.svg create mode 100644 stc-playground/public/vercel.svg create mode 100644 stc-playground/tailwind.config.ts create mode 100644 stc-playground/tsconfig.json diff --git a/stc-playground/.eslintrc.json b/stc-playground/.eslintrc.json new file mode 100644 index 0000000..bffb357 --- /dev/null +++ b/stc-playground/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/stc-playground/.gitignore b/stc-playground/.gitignore new file mode 100644 index 0000000..8f322f0 --- /dev/null +++ b/stc-playground/.gitignore @@ -0,0 +1,35 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/stc-playground/README.md b/stc-playground/README.md new file mode 100644 index 0000000..c403366 --- /dev/null +++ b/stc-playground/README.md @@ -0,0 +1,36 @@ +This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). + +## Getting Started + +First, run the development server: + +```bash +npm run dev +# or +yarn dev +# or +pnpm dev +# or +bun dev +``` + +Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. + +This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. + +## Learn More + +To learn more about Next.js, take a look at the following resources: + +- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. +- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. + +You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! + +## Deploy on Vercel + +The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. + +Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. diff --git a/stc-playground/app/favicon.ico b/stc-playground/app/favicon.ico new file mode 100644 index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%Vn7#kiw&eItCqa zIkR2~Q}>X=Ar8W|^Ms41Fm8o6IB2_j60eOeBB1Br!boW7JnoeX6Gs)?7rW0^5psc- zjS16yb>dFn>KPOF;imD}e!enuIniFzv}n$m2#gCCv4jM#ArwlzZ$7@9&XkFxZ4n!V zj3dyiwW4Ki2QG{@i>yuZXQizw_OkZI^-3otXC{!(lUpJF33gI60ak;Uqitp74|B6I zgg{b=Iz}WkhCGj1M=hu4#Aw173YxIVbISaoc z-nLZC*6Tgivd5V`K%GxhBsp@SUU60-rfc$=wb>zdJzXS&-5(NRRodFk;Kxk!S(O(a0e7oY=E( zAyS;Ow?6Q&XA+cnkCb{28_1N8H#?J!*$MmIwLq^*T_9-z^&UE@A(z9oGYtFy6EZef LrJugUA?W`A8`#=m literal 0 HcmV?d00001 diff --git a/stc-playground/app/globals.css b/stc-playground/app/globals.css new file mode 100644 index 0000000..fd81e88 --- /dev/null +++ b/stc-playground/app/globals.css @@ -0,0 +1,27 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +:root { + --foreground-rgb: 0, 0, 0; + --background-start-rgb: 214, 219, 220; + --background-end-rgb: 255, 255, 255; +} + +@media (prefers-color-scheme: dark) { + :root { + --foreground-rgb: 255, 255, 255; + --background-start-rgb: 0, 0, 0; + --background-end-rgb: 0, 0, 0; + } +} + +body { + color: rgb(var(--foreground-rgb)); + background: linear-gradient( + to bottom, + transparent, + rgb(var(--background-end-rgb)) + ) + rgb(var(--background-start-rgb)); +} diff --git a/stc-playground/app/layout.tsx b/stc-playground/app/layout.tsx new file mode 100644 index 0000000..5732299 --- /dev/null +++ b/stc-playground/app/layout.tsx @@ -0,0 +1,22 @@ +import "./globals.css"; +import type { Metadata } from "next"; +import { Inter } from "next/font/google"; + +const inter = Inter({ subsets: ["latin"] }); + +export const metadata: Metadata = { + title: "Create Next App", + description: "Generated by create next app", +}; + +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + + {children} + + ); +} diff --git a/stc-playground/app/page.tsx b/stc-playground/app/page.tsx new file mode 100644 index 0000000..5842fc6 --- /dev/null +++ b/stc-playground/app/page.tsx @@ -0,0 +1,113 @@ +import Image from "next/image"; + +export default function Home() { + return ( +
+
+

+ Get started by editing  + app/page.tsx +

+ +
+ +
+ Next.js Logo +
+ + +
+ ); +} diff --git a/stc-playground/next.config.js b/stc-playground/next.config.js new file mode 100644 index 0000000..658404a --- /dev/null +++ b/stc-playground/next.config.js @@ -0,0 +1,4 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = {}; + +module.exports = nextConfig; diff --git a/stc-playground/package.json b/stc-playground/package.json new file mode 100644 index 0000000..2d54e40 --- /dev/null +++ b/stc-playground/package.json @@ -0,0 +1,27 @@ +{ + "name": "stc-playground", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "next lint" + }, + "dependencies": { + "react": "^18", + "react-dom": "^18", + "next": "13.5.4" + }, + "devDependencies": { + "typescript": "^5", + "@types/node": "^20", + "@types/react": "^18", + "@types/react-dom": "^18", + "autoprefixer": "^10", + "postcss": "^8", + "tailwindcss": "^3", + "eslint": "^8", + "eslint-config-next": "13.5.4" + } +} diff --git a/stc-playground/postcss.config.js b/stc-playground/postcss.config.js new file mode 100644 index 0000000..12a703d --- /dev/null +++ b/stc-playground/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; diff --git a/stc-playground/public/next.svg b/stc-playground/public/next.svg new file mode 100644 index 0000000..5174b28 --- /dev/null +++ b/stc-playground/public/next.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/stc-playground/public/vercel.svg b/stc-playground/public/vercel.svg new file mode 100644 index 0000000..d2f8422 --- /dev/null +++ b/stc-playground/public/vercel.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/stc-playground/tailwind.config.ts b/stc-playground/tailwind.config.ts new file mode 100644 index 0000000..7e4bd91 --- /dev/null +++ b/stc-playground/tailwind.config.ts @@ -0,0 +1,20 @@ +import type { Config } from "tailwindcss"; + +const config: Config = { + content: [ + "./pages/**/*.{js,ts,jsx,tsx,mdx}", + "./components/**/*.{js,ts,jsx,tsx,mdx}", + "./app/**/*.{js,ts,jsx,tsx,mdx}", + ], + theme: { + extend: { + backgroundImage: { + "gradient-radial": "radial-gradient(var(--tw-gradient-stops))", + "gradient-conic": + "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", + }, + }, + }, + plugins: [], +}; +export default config; diff --git a/stc-playground/tsconfig.json b/stc-playground/tsconfig.json new file mode 100644 index 0000000..c714696 --- /dev/null +++ b/stc-playground/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] +} From 1e006cedfdbbefaeba20f042709f7ef10482ba30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Wed, 7 Feb 2024 20:55:23 +0900 Subject: [PATCH 07/26] refactor: Remove obsolete packages (#25) --- stc-playground/.eslintrc.json | 3 - stc-playground/.gitignore | 35 --------- stc-playground/README.md | 36 ---------- stc-playground/app/favicon.ico | Bin 25931 -> 0 bytes stc-playground/app/globals.css | 27 ------- stc-playground/app/layout.tsx | 22 ------ stc-playground/app/page.tsx | 113 ------------------------------ stc-playground/next.config.js | 4 -- stc-playground/package.json | 27 ------- stc-playground/postcss.config.js | 6 -- stc-playground/public/next.svg | 1 - stc-playground/public/vercel.svg | 1 - stc-playground/tailwind.config.ts | 20 ------ stc-playground/tsconfig.json | 27 ------- swc-plugin-registry/package.json | 6 +- 15 files changed, 3 insertions(+), 325 deletions(-) delete mode 100644 stc-playground/.eslintrc.json delete mode 100644 stc-playground/.gitignore delete mode 100644 stc-playground/README.md delete mode 100644 stc-playground/app/favicon.ico delete mode 100644 stc-playground/app/globals.css delete mode 100644 stc-playground/app/layout.tsx delete mode 100644 stc-playground/app/page.tsx delete mode 100644 stc-playground/next.config.js delete mode 100644 stc-playground/package.json delete mode 100644 stc-playground/postcss.config.js delete mode 100644 stc-playground/public/next.svg delete mode 100644 stc-playground/public/vercel.svg delete mode 100644 stc-playground/tailwind.config.ts delete mode 100644 stc-playground/tsconfig.json diff --git a/stc-playground/.eslintrc.json b/stc-playground/.eslintrc.json deleted file mode 100644 index bffb357..0000000 --- a/stc-playground/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "next/core-web-vitals" -} diff --git a/stc-playground/.gitignore b/stc-playground/.gitignore deleted file mode 100644 index 8f322f0..0000000 --- a/stc-playground/.gitignore +++ /dev/null @@ -1,35 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# local env files -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts diff --git a/stc-playground/README.md b/stc-playground/README.md deleted file mode 100644 index c403366..0000000 --- a/stc-playground/README.md +++ /dev/null @@ -1,36 +0,0 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). - -## Getting Started - -First, run the development server: - -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. - -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. diff --git a/stc-playground/app/favicon.ico b/stc-playground/app/favicon.ico deleted file mode 100644 index 718d6fea4835ec2d246af9800eddb7ffb276240c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 25931 zcmeHv30#a{`}aL_*G&7qml|y<+KVaDM2m#dVr!KsA!#An?kSQM(q<_dDNCpjEux83 zLb9Z^XxbDl(w>%i@8hT6>)&Gu{h#Oeyszu?xtw#Zb1mO{pgX9699l+Qppw7jXaYf~-84xW z)w4x8?=youko|}Vr~(D$UXIbiXABHh`p1?nn8Po~fxRJv}|0e(BPs|G`(TT%kKVJAdg5*Z|x0leQq0 zkdUBvb#>9F()jo|T~kx@OM8$9wzs~t2l;K=woNssA3l6|sx2r3+kdfVW@e^8e*E}v zA1y5{bRi+3Z`uD3{F7LgFJDdvm;nJilkzDku>BwXH(8ItVCXk*-lSJnR?-2UN%hJ){&rlvg`CDTj z)Bzo!3v7Ou#83zEDEFcKt(f1E0~=rqeEbTnMvWR#{+9pg%7G8y>u1OVRUSoox-ovF z2Ydma(;=YuBY(eI|04{hXzZD6_f(v~H;C~y5=DhAC{MMS>2fm~1H_t2$56pc$NH8( z5bH|<)71dV-_oCHIrzrT`2s-5w_+2CM0$95I6X8p^r!gHp+j_gd;9O<1~CEQQGS8) zS9Q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4S}i zM9{fMPWo%4wYDG~BZ18BD+}h|GQKc-g^{++3MY>}W_uq7jGHx{mwE9fZiPCoxN$+7 zrODGGJrOkcPQUB(FD5aoS4g~7#6NR^ma7-!>mHuJfY5kTe6PpNNKC9GGRiu^L31uG z$7v`*JknQHsYB!Tm_W{a32TM099djW%5e+j0Ve_ct}IM>XLF1Ap+YvcrLV=|CKo6S zb+9Nl3_YdKP6%Cxy@6TxZ>;4&nTneadr z_ES90ydCev)LV!dN=#(*f}|ZORFdvkYBni^aLbUk>BajeWIOcmHP#8S)*2U~QKI%S zyrLmtPqb&TphJ;>yAxri#;{uyk`JJqODDw%(Z=2`1uc}br^V%>j!gS)D*q*f_-qf8&D;W1dJgQMlaH5er zN2U<%Smb7==vE}dDI8K7cKz!vs^73o9f>2sgiTzWcwY|BMYHH5%Vn7#kiw&eItCqa zIkR2~Q}>X=Ar8W|^Ms41Fm8o6IB2_j60eOeBB1Br!boW7JnoeX6Gs)?7rW0^5psc- zjS16yb>dFn>KPOF;imD}e!enuIniFzv}n$m2#gCCv4jM#ArwlzZ$7@9&XkFxZ4n!V zj3dyiwW4Ki2QG{@i>yuZXQizw_OkZI^-3otXC{!(lUpJF33gI60ak;Uqitp74|B6I zgg{b=Iz}WkhCGj1M=hu4#Aw173YxIVbISaoc z-nLZC*6Tgivd5V`K%GxhBsp@SUU60-rfc$=wb>zdJzXS&-5(NRRodFk;Kxk!S(O(a0e7oY=E( zAyS;Ow?6Q&XA+cnkCb{28_1N8H#?J!*$MmIwLq^*T_9-z^&UE@A(z9oGYtFy6EZef LrJugUA?W`A8`#=m diff --git a/stc-playground/app/globals.css b/stc-playground/app/globals.css deleted file mode 100644 index fd81e88..0000000 --- a/stc-playground/app/globals.css +++ /dev/null @@ -1,27 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; - -:root { - --foreground-rgb: 0, 0, 0; - --background-start-rgb: 214, 219, 220; - --background-end-rgb: 255, 255, 255; -} - -@media (prefers-color-scheme: dark) { - :root { - --foreground-rgb: 255, 255, 255; - --background-start-rgb: 0, 0, 0; - --background-end-rgb: 0, 0, 0; - } -} - -body { - color: rgb(var(--foreground-rgb)); - background: linear-gradient( - to bottom, - transparent, - rgb(var(--background-end-rgb)) - ) - rgb(var(--background-start-rgb)); -} diff --git a/stc-playground/app/layout.tsx b/stc-playground/app/layout.tsx deleted file mode 100644 index 5732299..0000000 --- a/stc-playground/app/layout.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import "./globals.css"; -import type { Metadata } from "next"; -import { Inter } from "next/font/google"; - -const inter = Inter({ subsets: ["latin"] }); - -export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", -}; - -export default function RootLayout({ - children, -}: { - children: React.ReactNode; -}) { - return ( - - {children} - - ); -} diff --git a/stc-playground/app/page.tsx b/stc-playground/app/page.tsx deleted file mode 100644 index 5842fc6..0000000 --- a/stc-playground/app/page.tsx +++ /dev/null @@ -1,113 +0,0 @@ -import Image from "next/image"; - -export default function Home() { - return ( -
-
-

- Get started by editing  - app/page.tsx -

- -
- -
- Next.js Logo -
- - -
- ); -} diff --git a/stc-playground/next.config.js b/stc-playground/next.config.js deleted file mode 100644 index 658404a..0000000 --- a/stc-playground/next.config.js +++ /dev/null @@ -1,4 +0,0 @@ -/** @type {import('next').NextConfig} */ -const nextConfig = {}; - -module.exports = nextConfig; diff --git a/stc-playground/package.json b/stc-playground/package.json deleted file mode 100644 index 2d54e40..0000000 --- a/stc-playground/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "stc-playground", - "version": "0.1.0", - "private": true, - "scripts": { - "dev": "next dev", - "build": "next build", - "start": "next start", - "lint": "next lint" - }, - "dependencies": { - "react": "^18", - "react-dom": "^18", - "next": "13.5.4" - }, - "devDependencies": { - "typescript": "^5", - "@types/node": "^20", - "@types/react": "^18", - "@types/react-dom": "^18", - "autoprefixer": "^10", - "postcss": "^8", - "tailwindcss": "^3", - "eslint": "^8", - "eslint-config-next": "13.5.4" - } -} diff --git a/stc-playground/postcss.config.js b/stc-playground/postcss.config.js deleted file mode 100644 index 12a703d..0000000 --- a/stc-playground/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -}; diff --git a/stc-playground/public/next.svg b/stc-playground/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/stc-playground/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/stc-playground/public/vercel.svg b/stc-playground/public/vercel.svg deleted file mode 100644 index d2f8422..0000000 --- a/stc-playground/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/stc-playground/tailwind.config.ts b/stc-playground/tailwind.config.ts deleted file mode 100644 index 7e4bd91..0000000 --- a/stc-playground/tailwind.config.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type { Config } from "tailwindcss"; - -const config: Config = { - content: [ - "./pages/**/*.{js,ts,jsx,tsx,mdx}", - "./components/**/*.{js,ts,jsx,tsx,mdx}", - "./app/**/*.{js,ts,jsx,tsx,mdx}", - ], - theme: { - extend: { - backgroundImage: { - "gradient-radial": "radial-gradient(var(--tw-gradient-stops))", - "gradient-conic": - "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", - }, - }, - }, - plugins: [], -}; -export default config; diff --git a/stc-playground/tsconfig.json b/stc-playground/tsconfig.json deleted file mode 100644 index c714696..0000000 --- a/stc-playground/tsconfig.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "@/*": ["./*"] - } - }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] -} diff --git a/swc-plugin-registry/package.json b/swc-plugin-registry/package.json index 6800371..9d49e96 100644 --- a/swc-plugin-registry/package.json +++ b/swc-plugin-registry/package.json @@ -8,13 +8,13 @@ "lint": "next lint" }, "dependencies": { - "@types/node": "20.6.4", - "@types/react": "18.2.22", + "@types/node": "20.11.16", + "@types/react": "18.2.55", "@types/react-dom": "18.2.7", "autoprefixer": "10.4.16", "eslint": "8.49.0", "eslint-config-next": "13.5.2", - "next": "13.5.2", + "next": "14.1.0", "postcss": "8.4.30", "react": "18.2.0", "react-dom": "18.2.0", From 710c80e6cb322ff0ef93eb73f0f1b10a72353cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Sun, 14 Apr 2024 22:13:33 +0900 Subject: [PATCH 08/26] chore: Reorganize repository (#28) --- README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ae332a8 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Apps + +Various next.js applications by Dudy. Each app contains its own README file. From ded2f7d920fa02e121888850fb1c064fb684ca15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Sun, 14 Apr 2024 23:00:59 +0900 Subject: [PATCH 09/26] chore: Configure turborepo (#32) --- swc-plugin-registry/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swc-plugin-registry/package.json b/swc-plugin-registry/package.json index 9d49e96..2cca46f 100644 --- a/swc-plugin-registry/package.json +++ b/swc-plugin-registry/package.json @@ -3,7 +3,7 @@ "private": true, "scripts": { "dev": "next dev -p 50000", - "build": "next build", + "build:next": "next build", "start": "next start", "lint": "next lint" }, From b1bf6b80a00ecd88f2ea6198e5e379d2c9971c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Tue, 16 Apr 2024 19:48:15 +0900 Subject: [PATCH 10/26] refactor: Rename `swc-plugin-registry` to `swc-plugins` (#40) --- swc-plugin-registry/package.json | 24 ------------ swc-plugin-registry/postcss.config.js | 6 --- .../.eslintrc.json | 0 .../.gitignore | 1 + swc-plugins/README.md | 36 ++++++++++++++++++ .../app/favicon.ico | Bin .../app/globals.css | 6 +++ .../app/layout.tsx | 6 +-- .../app/page.tsx | 24 ++++++------ .../next.config.mjs | 2 +- swc-plugins/package.json | 26 +++++++++++++ swc-plugins/postcss.config.mjs | 8 ++++ .../public/next.svg | 0 .../public/vercel.svg | 0 .../tailwind.config.ts | 0 .../tsconfig.json | 1 - 16 files changed, 93 insertions(+), 47 deletions(-) delete mode 100644 swc-plugin-registry/package.json delete mode 100644 swc-plugin-registry/postcss.config.js rename {swc-plugin-registry => swc-plugins}/.eslintrc.json (100%) rename {swc-plugin-registry => swc-plugins}/.gitignore (94%) create mode 100644 swc-plugins/README.md rename {swc-plugin-registry => swc-plugins}/app/favicon.ico (100%) rename {swc-plugin-registry => swc-plugins}/app/globals.css (88%) rename {swc-plugin-registry => swc-plugins}/app/layout.tsx (95%) rename {swc-plugin-registry => swc-plugins}/app/page.tsx (76%) rename swc-plugin-registry/next.config.js => swc-plugins/next.config.mjs (69%) create mode 100644 swc-plugins/package.json create mode 100644 swc-plugins/postcss.config.mjs rename {swc-plugin-registry => swc-plugins}/public/next.svg (100%) rename {swc-plugin-registry => swc-plugins}/public/vercel.svg (100%) rename {swc-plugin-registry => swc-plugins}/tailwind.config.ts (100%) rename {swc-plugin-registry => swc-plugins}/tsconfig.json (96%) diff --git a/swc-plugin-registry/package.json b/swc-plugin-registry/package.json deleted file mode 100644 index 2cca46f..0000000 --- a/swc-plugin-registry/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "@dudykr/swc-plugin-registry", - "private": true, - "scripts": { - "dev": "next dev -p 50000", - "build:next": "next build", - "start": "next start", - "lint": "next lint" - }, - "dependencies": { - "@types/node": "20.11.16", - "@types/react": "18.2.55", - "@types/react-dom": "18.2.7", - "autoprefixer": "10.4.16", - "eslint": "8.49.0", - "eslint-config-next": "13.5.2", - "next": "14.1.0", - "postcss": "8.4.30", - "react": "18.2.0", - "react-dom": "18.2.0", - "tailwindcss": "3.3.3", - "typescript": "5.2.2" - } -} diff --git a/swc-plugin-registry/postcss.config.js b/swc-plugin-registry/postcss.config.js deleted file mode 100644 index 12a703d..0000000 --- a/swc-plugin-registry/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -}; diff --git a/swc-plugin-registry/.eslintrc.json b/swc-plugins/.eslintrc.json similarity index 100% rename from swc-plugin-registry/.eslintrc.json rename to swc-plugins/.eslintrc.json diff --git a/swc-plugin-registry/.gitignore b/swc-plugins/.gitignore similarity index 94% rename from swc-plugin-registry/.gitignore rename to swc-plugins/.gitignore index 8f322f0..fd3dbb5 100644 --- a/swc-plugin-registry/.gitignore +++ b/swc-plugins/.gitignore @@ -4,6 +4,7 @@ /node_modules /.pnp .pnp.js +.yarn/install-state.gz # testing /coverage diff --git a/swc-plugins/README.md b/swc-plugins/README.md new file mode 100644 index 0000000..c403366 --- /dev/null +++ b/swc-plugins/README.md @@ -0,0 +1,36 @@ +This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). + +## Getting Started + +First, run the development server: + +```bash +npm run dev +# or +yarn dev +# or +pnpm dev +# or +bun dev +``` + +Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. + +This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. + +## Learn More + +To learn more about Next.js, take a look at the following resources: + +- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. +- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. + +You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! + +## Deploy on Vercel + +The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. + +Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. diff --git a/swc-plugin-registry/app/favicon.ico b/swc-plugins/app/favicon.ico similarity index 100% rename from swc-plugin-registry/app/favicon.ico rename to swc-plugins/app/favicon.ico diff --git a/swc-plugin-registry/app/globals.css b/swc-plugins/app/globals.css similarity index 88% rename from swc-plugin-registry/app/globals.css rename to swc-plugins/app/globals.css index fd81e88..875c01e 100644 --- a/swc-plugin-registry/app/globals.css +++ b/swc-plugins/app/globals.css @@ -25,3 +25,9 @@ body { ) rgb(var(--background-start-rgb)); } + +@layer utilities { + .text-balance { + text-wrap: balance; + } +} diff --git a/swc-plugin-registry/app/layout.tsx b/swc-plugins/app/layout.tsx similarity index 95% rename from swc-plugin-registry/app/layout.tsx rename to swc-plugins/app/layout.tsx index 5732299..3314e47 100644 --- a/swc-plugin-registry/app/layout.tsx +++ b/swc-plugins/app/layout.tsx @@ -1,6 +1,6 @@ -import "./globals.css"; import type { Metadata } from "next"; import { Inter } from "next/font/google"; +import "./globals.css"; const inter = Inter({ subsets: ["latin"] }); @@ -11,9 +11,9 @@ export const metadata: Metadata = { export default function RootLayout({ children, -}: { +}: Readonly<{ children: React.ReactNode; -}) { +}>) { return ( {children} diff --git a/swc-plugin-registry/app/page.tsx b/swc-plugins/app/page.tsx similarity index 76% rename from swc-plugin-registry/app/page.tsx rename to swc-plugins/app/page.tsx index 5842fc6..ff6a97a 100644 --- a/swc-plugin-registry/app/page.tsx +++ b/swc-plugins/app/page.tsx @@ -4,11 +4,11 @@ export default function Home() { return (
-

+

Get started by editing  app/page.tsx

-
+ -
+
-

+

Docs{" "} ->

-

+

Find in-depth information about Next.js features and API.

@@ -63,13 +63,13 @@ export default function Home() { target="_blank" rel="noopener noreferrer" > -

+

Learn{" "} ->

-

+

Learn about Next.js in an interactive course with quizzes!

@@ -80,14 +80,14 @@ export default function Home() { target="_blank" rel="noopener noreferrer" > -

+

Templates{" "} ->

-

- Explore the Next.js 13 playground. +

+ Explore starter templates for Next.js.

@@ -97,13 +97,13 @@ export default function Home() { target="_blank" rel="noopener noreferrer" > -

+

Deploy{" "} ->

-

+

Instantly deploy your Next.js site to a shareable URL with Vercel.

diff --git a/swc-plugin-registry/next.config.js b/swc-plugins/next.config.mjs similarity index 69% rename from swc-plugin-registry/next.config.js rename to swc-plugins/next.config.mjs index 658404a..4678774 100644 --- a/swc-plugin-registry/next.config.js +++ b/swc-plugins/next.config.mjs @@ -1,4 +1,4 @@ /** @type {import('next').NextConfig} */ const nextConfig = {}; -module.exports = nextConfig; +export default nextConfig; diff --git a/swc-plugins/package.json b/swc-plugins/package.json new file mode 100644 index 0000000..3818605 --- /dev/null +++ b/swc-plugins/package.json @@ -0,0 +1,26 @@ +{ + "name": "swc-plugins", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "next dev -p 50000", + "build:next": "next build", + "start": "next start", + "lint": "next lint" + }, + "dependencies": { + "react": "^18", + "react-dom": "^18", + "next": "14.2.1" + }, + "devDependencies": { + "typescript": "^5", + "@types/node": "^20", + "@types/react": "^18", + "@types/react-dom": "^18", + "postcss": "^8", + "tailwindcss": "^3.4.1", + "eslint": "^8", + "eslint-config-next": "14.2.1" + } +} diff --git a/swc-plugins/postcss.config.mjs b/swc-plugins/postcss.config.mjs new file mode 100644 index 0000000..1a69fd2 --- /dev/null +++ b/swc-plugins/postcss.config.mjs @@ -0,0 +1,8 @@ +/** @type {import('postcss-load-config').Config} */ +const config = { + plugins: { + tailwindcss: {}, + }, +}; + +export default config; diff --git a/swc-plugin-registry/public/next.svg b/swc-plugins/public/next.svg similarity index 100% rename from swc-plugin-registry/public/next.svg rename to swc-plugins/public/next.svg diff --git a/swc-plugin-registry/public/vercel.svg b/swc-plugins/public/vercel.svg similarity index 100% rename from swc-plugin-registry/public/vercel.svg rename to swc-plugins/public/vercel.svg diff --git a/swc-plugin-registry/tailwind.config.ts b/swc-plugins/tailwind.config.ts similarity index 100% rename from swc-plugin-registry/tailwind.config.ts rename to swc-plugins/tailwind.config.ts diff --git a/swc-plugin-registry/tsconfig.json b/swc-plugins/tsconfig.json similarity index 96% rename from swc-plugin-registry/tsconfig.json rename to swc-plugins/tsconfig.json index c714696..e7ff90f 100644 --- a/swc-plugin-registry/tsconfig.json +++ b/swc-plugins/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "target": "es5", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, From 0b6b2587b5d49005fb344c9c540e98375229778e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 26 Aug 2024 13:55:04 +0900 Subject: [PATCH 11/26] feat: Prepare SWC plugin registry (#41) --- swc-plugins/.eslintignore | 8 + swc-plugins/.eslintrc.json | 2 +- swc-plugins/app/api-client-provider.tsx | 35 ++ .../app/api/auth/[...nextauth]/route.ts | 2 + swc-plugins/app/api/trpc/[trpc]/route.ts | 3 + swc-plugins/app/client-providers.tsx | 13 + swc-plugins/app/globals.css | 82 ++-- swc-plugins/app/layout.tsx | 43 ++- swc-plugins/app/robots.ts | 11 + swc-plugins/components.json | 17 + swc-plugins/components/ui/accordion.tsx | 58 +++ swc-plugins/components/ui/alert-dialog.tsx | 141 +++++++ swc-plugins/components/ui/alert.tsx | 59 +++ swc-plugins/components/ui/aspect-ratio.tsx | 7 + swc-plugins/components/ui/avatar.tsx | 50 +++ swc-plugins/components/ui/badge.tsx | 36 ++ swc-plugins/components/ui/breadcrumb.tsx | 115 ++++++ swc-plugins/components/ui/button.tsx | 56 +++ swc-plugins/components/ui/calendar.tsx | 66 ++++ swc-plugins/components/ui/card.tsx | 79 ++++ swc-plugins/components/ui/carousel.tsx | 262 +++++++++++++ swc-plugins/components/ui/chart.tsx | 365 ++++++++++++++++++ swc-plugins/components/ui/checkbox.tsx | 30 ++ swc-plugins/components/ui/collapsible.tsx | 11 + swc-plugins/components/ui/command.tsx | 155 ++++++++ swc-plugins/components/ui/context-menu.tsx | 200 ++++++++++ swc-plugins/components/ui/dialog.tsx | 122 ++++++ swc-plugins/components/ui/drawer.tsx | 118 ++++++ swc-plugins/components/ui/dropdown-menu.tsx | 200 ++++++++++ swc-plugins/components/ui/form.tsx | 178 +++++++++ swc-plugins/components/ui/hover-card.tsx | 29 ++ swc-plugins/components/ui/input-otp.tsx | 71 ++++ swc-plugins/components/ui/input.tsx | 25 ++ swc-plugins/components/ui/label.tsx | 26 ++ swc-plugins/components/ui/menubar.tsx | 236 +++++++++++ swc-plugins/components/ui/navigation-menu.tsx | 128 ++++++ swc-plugins/components/ui/pagination.tsx | 117 ++++++ swc-plugins/components/ui/popover.tsx | 31 ++ swc-plugins/components/ui/progress.tsx | 28 ++ swc-plugins/components/ui/radio-group.tsx | 44 +++ swc-plugins/components/ui/resizable.tsx | 45 +++ swc-plugins/components/ui/scroll-area.tsx | 48 +++ swc-plugins/components/ui/select.tsx | 160 ++++++++ swc-plugins/components/ui/separator.tsx | 31 ++ swc-plugins/components/ui/sheet.tsx | 140 +++++++ swc-plugins/components/ui/skeleton.tsx | 15 + swc-plugins/components/ui/slider.tsx | 28 ++ swc-plugins/components/ui/sonner.tsx | 31 ++ swc-plugins/components/ui/switch.tsx | 29 ++ swc-plugins/components/ui/table.tsx | 117 ++++++ swc-plugins/components/ui/tabs.tsx | 55 +++ swc-plugins/components/ui/textarea.tsx | 24 ++ swc-plugins/components/ui/toast.tsx | 129 +++++++ swc-plugins/components/ui/toaster.tsx | 35 ++ swc-plugins/components/ui/toggle-group.tsx | 61 +++ swc-plugins/components/ui/toggle.tsx | 45 +++ swc-plugins/components/ui/tooltip.tsx | 30 ++ swc-plugins/components/ui/use-toast.ts | 194 ++++++++++ swc-plugins/lib/abilities.ts | 79 ++++ swc-plugins/lib/api/auth.ts | 42 ++ swc-plugins/lib/api/router.ts | 12 + swc-plugins/lib/api/server.ts | 176 +++++++++ swc-plugins/lib/api/users/router.ts | 11 + swc-plugins/lib/auth.ts | 12 + swc-plugins/lib/auth/user-context.tsx | 117 ++++++ swc-plugins/lib/base/index.ts | 133 +++++++ swc-plugins/lib/hooks/use-user.ts | 9 + swc-plugins/lib/prisma/.gitignore | 1 + swc-plugins/lib/prisma/client.ts | 18 + swc-plugins/lib/prisma/index.ts | 2 + swc-plugins/lib/server.ts | 176 +++++++++ swc-plugins/lib/trpc/web-client.ts | 6 + swc-plugins/lib/type-utils.ts | 10 + swc-plugins/lib/utils.ts | 6 + swc-plugins/mocks/empty.ts | 1 + swc-plugins/next.config.mjs | 7 +- swc-plugins/package.json | 98 ++++- swc-plugins/prisma/schema.prisma | 133 +++++++ swc-plugins/tailwind.config.ts | 82 +++- 79 files changed, 5543 insertions(+), 64 deletions(-) create mode 100644 swc-plugins/.eslintignore create mode 100644 swc-plugins/app/api-client-provider.tsx create mode 100644 swc-plugins/app/api/auth/[...nextauth]/route.ts create mode 100644 swc-plugins/app/api/trpc/[trpc]/route.ts create mode 100644 swc-plugins/app/client-providers.tsx create mode 100644 swc-plugins/app/robots.ts create mode 100644 swc-plugins/components.json create mode 100644 swc-plugins/components/ui/accordion.tsx create mode 100644 swc-plugins/components/ui/alert-dialog.tsx create mode 100644 swc-plugins/components/ui/alert.tsx create mode 100644 swc-plugins/components/ui/aspect-ratio.tsx create mode 100644 swc-plugins/components/ui/avatar.tsx create mode 100644 swc-plugins/components/ui/badge.tsx create mode 100644 swc-plugins/components/ui/breadcrumb.tsx create mode 100644 swc-plugins/components/ui/button.tsx create mode 100644 swc-plugins/components/ui/calendar.tsx create mode 100644 swc-plugins/components/ui/card.tsx create mode 100644 swc-plugins/components/ui/carousel.tsx create mode 100644 swc-plugins/components/ui/chart.tsx create mode 100644 swc-plugins/components/ui/checkbox.tsx create mode 100644 swc-plugins/components/ui/collapsible.tsx create mode 100644 swc-plugins/components/ui/command.tsx create mode 100644 swc-plugins/components/ui/context-menu.tsx create mode 100644 swc-plugins/components/ui/dialog.tsx create mode 100644 swc-plugins/components/ui/drawer.tsx create mode 100644 swc-plugins/components/ui/dropdown-menu.tsx create mode 100644 swc-plugins/components/ui/form.tsx create mode 100644 swc-plugins/components/ui/hover-card.tsx create mode 100644 swc-plugins/components/ui/input-otp.tsx create mode 100644 swc-plugins/components/ui/input.tsx create mode 100644 swc-plugins/components/ui/label.tsx create mode 100644 swc-plugins/components/ui/menubar.tsx create mode 100644 swc-plugins/components/ui/navigation-menu.tsx create mode 100644 swc-plugins/components/ui/pagination.tsx create mode 100644 swc-plugins/components/ui/popover.tsx create mode 100644 swc-plugins/components/ui/progress.tsx create mode 100644 swc-plugins/components/ui/radio-group.tsx create mode 100644 swc-plugins/components/ui/resizable.tsx create mode 100644 swc-plugins/components/ui/scroll-area.tsx create mode 100644 swc-plugins/components/ui/select.tsx create mode 100644 swc-plugins/components/ui/separator.tsx create mode 100644 swc-plugins/components/ui/sheet.tsx create mode 100644 swc-plugins/components/ui/skeleton.tsx create mode 100644 swc-plugins/components/ui/slider.tsx create mode 100644 swc-plugins/components/ui/sonner.tsx create mode 100644 swc-plugins/components/ui/switch.tsx create mode 100644 swc-plugins/components/ui/table.tsx create mode 100644 swc-plugins/components/ui/tabs.tsx create mode 100644 swc-plugins/components/ui/textarea.tsx create mode 100644 swc-plugins/components/ui/toast.tsx create mode 100644 swc-plugins/components/ui/toaster.tsx create mode 100644 swc-plugins/components/ui/toggle-group.tsx create mode 100644 swc-plugins/components/ui/toggle.tsx create mode 100644 swc-plugins/components/ui/tooltip.tsx create mode 100644 swc-plugins/components/ui/use-toast.ts create mode 100644 swc-plugins/lib/abilities.ts create mode 100644 swc-plugins/lib/api/auth.ts create mode 100644 swc-plugins/lib/api/router.ts create mode 100644 swc-plugins/lib/api/server.ts create mode 100644 swc-plugins/lib/api/users/router.ts create mode 100644 swc-plugins/lib/auth.ts create mode 100644 swc-plugins/lib/auth/user-context.tsx create mode 100644 swc-plugins/lib/base/index.ts create mode 100644 swc-plugins/lib/hooks/use-user.ts create mode 100644 swc-plugins/lib/prisma/.gitignore create mode 100644 swc-plugins/lib/prisma/client.ts create mode 100644 swc-plugins/lib/prisma/index.ts create mode 100644 swc-plugins/lib/server.ts create mode 100644 swc-plugins/lib/trpc/web-client.ts create mode 100644 swc-plugins/lib/type-utils.ts create mode 100644 swc-plugins/lib/utils.ts create mode 100644 swc-plugins/mocks/empty.ts create mode 100644 swc-plugins/prisma/schema.prisma diff --git a/swc-plugins/.eslintignore b/swc-plugins/.eslintignore new file mode 100644 index 0000000..318bf5e --- /dev/null +++ b/swc-plugins/.eslintignore @@ -0,0 +1,8 @@ +*.d.ts +/lib/generated +/components/ui + + +# TODO: Fix eslint config +app/ +lib/ \ No newline at end of file diff --git a/swc-plugins/.eslintrc.json b/swc-plugins/.eslintrc.json index bffb357..0e81f9b 100644 --- a/swc-plugins/.eslintrc.json +++ b/swc-plugins/.eslintrc.json @@ -1,3 +1,3 @@ { "extends": "next/core-web-vitals" -} +} \ No newline at end of file diff --git a/swc-plugins/app/api-client-provider.tsx b/swc-plugins/app/api-client-provider.tsx new file mode 100644 index 0000000..17049ea --- /dev/null +++ b/swc-plugins/app/api-client-provider.tsx @@ -0,0 +1,35 @@ +"use client"; + +import { apiClient } from "@/lib/trpc/web-client"; +import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; +import { httpBatchLink } from "@trpc/client"; +import { PropsWithChildren, useState } from "react"; +import superjson from "superjson"; + +export function ApiClientProvider({ children }: PropsWithChildren<{}>) { + const [queryClient] = useState( + () => + new QueryClient({ + defaultOptions: { + queries: { + queryKeyHashFn: (queryKey) => superjson.stringify(queryKey), + }, + }, + }) + ); + const [trpcClient] = useState(() => + apiClient.createClient({ + links: [ + httpBatchLink({ + url: "/api/trpc", + transformer: superjson, + }), + ], + }) + ); + return ( + + {children} + + ); +} diff --git a/swc-plugins/app/api/auth/[...nextauth]/route.ts b/swc-plugins/app/api/auth/[...nextauth]/route.ts new file mode 100644 index 0000000..73228a0 --- /dev/null +++ b/swc-plugins/app/api/auth/[...nextauth]/route.ts @@ -0,0 +1,2 @@ +import { handlers } from "@/lib/auth"; +export const { GET, POST } = handlers; diff --git a/swc-plugins/app/api/trpc/[trpc]/route.ts b/swc-plugins/app/api/trpc/[trpc]/route.ts new file mode 100644 index 0000000..09bbacc --- /dev/null +++ b/swc-plugins/app/api/trpc/[trpc]/route.ts @@ -0,0 +1,3 @@ +import { handler } from "@/lib/api/server"; + +export { handler as GET, handler as POST }; diff --git a/swc-plugins/app/client-providers.tsx b/swc-plugins/app/client-providers.tsx new file mode 100644 index 0000000..3780978 --- /dev/null +++ b/swc-plugins/app/client-providers.tsx @@ -0,0 +1,13 @@ +"use client"; + +import { ThemeProvider } from "next-themes"; +import { PropsWithChildren } from "react"; +import { ApiClientProvider } from "./api-client-provider"; + +export function ClientProviders({ children }: PropsWithChildren) { + return ( + + {children} + + ); +} diff --git a/swc-plugins/app/globals.css b/swc-plugins/app/globals.css index 875c01e..99a7b0c 100644 --- a/swc-plugins/app/globals.css +++ b/swc-plugins/app/globals.css @@ -2,32 +2,68 @@ @tailwind components; @tailwind utilities; -:root { - --foreground-rgb: 0, 0, 0; - --background-start-rgb: 214, 219, 220; - --background-end-rgb: 255, 255, 255; -} - -@media (prefers-color-scheme: dark) { +@layer base { :root { - --foreground-rgb: 255, 255, 255; - --background-start-rgb: 0, 0, 0; - --background-end-rgb: 0, 0, 0; + --background: 0 0% 100%; + --foreground: 222.2 84% 4.9%; + --card: 0 0% 100%; + --card-foreground: 222.2 84% 4.9%; + --popover: 0 0% 100%; + --popover-foreground: 222.2 84% 4.9%; + --primary: 222.2 47.4% 11.2%; + --primary-foreground: 210 40% 98%; + --secondary: 210 40% 96.1%; + --secondary-foreground: 222.2 47.4% 11.2%; + --muted: 210 40% 96.1%; + --muted-foreground: 215.4 16.3% 46.9%; + --accent: 210 40% 96.1%; + --accent-foreground: 222.2 47.4% 11.2%; + --destructive: 0 84.2% 60.2%; + --destructive-foreground: 210 40% 98%; + --border: 214.3 31.8% 91.4%; + --input: 214.3 31.8% 91.4%; + --ring: 222.2 84% 4.9%; + --radius: 0.5rem; + --chart-1: 12 76% 61%; + --chart-2: 173 58% 39%; + --chart-3: 197 37% 24%; + --chart-4: 43 74% 66%; + --chart-5: 27 87% 67%; } -} -body { - color: rgb(var(--foreground-rgb)); - background: linear-gradient( - to bottom, - transparent, - rgb(var(--background-end-rgb)) - ) - rgb(var(--background-start-rgb)); + .dark { + --background: 222.2 84% 4.9%; + --foreground: 210 40% 98%; + --card: 222.2 84% 4.9%; + --card-foreground: 210 40% 98%; + --popover: 222.2 84% 4.9%; + --popover-foreground: 210 40% 98%; + --primary: 210 40% 98%; + --primary-foreground: 222.2 47.4% 11.2%; + --secondary: 217.2 32.6% 17.5%; + --secondary-foreground: 210 40% 98%; + --muted: 217.2 32.6% 17.5%; + --muted-foreground: 215 20.2% 65.1%; + --accent: 217.2 32.6% 17.5%; + --accent-foreground: 210 40% 98%; + --destructive: 0 62.8% 30.6%; + --destructive-foreground: 210 40% 98%; + --border: 217.2 32.6% 17.5%; + --input: 217.2 32.6% 17.5%; + --ring: 212.7 26.8% 83.9%; + --chart-1: 220 70% 50%; + --chart-2: 160 60% 45%; + --chart-3: 30 80% 55%; + --chart-4: 280 65% 60%; + --chart-5: 340 75% 55%; + } } -@layer utilities { - .text-balance { - text-wrap: balance; +@layer base { + * { + @apply border-border; } -} + body { + @apply bg-background text-foreground; + } +} \ No newline at end of file diff --git a/swc-plugins/app/layout.tsx b/swc-plugins/app/layout.tsx index 3314e47..0d850b2 100644 --- a/swc-plugins/app/layout.tsx +++ b/swc-plugins/app/layout.tsx @@ -1,22 +1,37 @@ -import type { Metadata } from "next"; -import { Inter } from "next/font/google"; +import { Toaster } from "@/components/ui/toaster"; +import { cn } from "@/lib/utils"; +import { SessionProvider } from "next-auth/react"; +import { Manrope } from "next/font/google"; +import NextTopLoader from "nextjs-toploader"; +import { PropsWithChildren } from "react"; +import { ClientProviders } from "./client-providers"; import "./globals.css"; -const inter = Inter({ subsets: ["latin"] }); +const fontHeading = Manrope({ + subsets: ["latin"], + display: "swap", + variable: "--font-heading", +}); -export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", -}; +const fontBody = Manrope({ + subsets: ["latin"], + display: "swap", + variable: "--font-body", +}); -export default function RootLayout({ - children, -}: Readonly<{ - children: React.ReactNode; -}>) { +export default function RootLayout({ children }: PropsWithChildren) { return ( - - {children} + + + + + + {children} + + + ); } diff --git a/swc-plugins/app/robots.ts b/swc-plugins/app/robots.ts new file mode 100644 index 0000000..9442ca5 --- /dev/null +++ b/swc-plugins/app/robots.ts @@ -0,0 +1,11 @@ +import { MetadataRoute } from "next"; + +export default function robots(): MetadataRoute.Robots { + return { + rules: { + userAgent: "*", + allow: "/", + }, + // sitemap: `${BASE_URL}/sitemap.xml`, + }; +} diff --git a/swc-plugins/components.json b/swc-plugins/components.json new file mode 100644 index 0000000..15f2b02 --- /dev/null +++ b/swc-plugins/components.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "default", + "rsc": true, + "tsx": true, + "tailwind": { + "config": "tailwind.config.ts", + "css": "app/globals.css", + "baseColor": "slate", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils" + } +} \ No newline at end of file diff --git a/swc-plugins/components/ui/accordion.tsx b/swc-plugins/components/ui/accordion.tsx new file mode 100644 index 0000000..24c788c --- /dev/null +++ b/swc-plugins/components/ui/accordion.tsx @@ -0,0 +1,58 @@ +"use client" + +import * as React from "react" +import * as AccordionPrimitive from "@radix-ui/react-accordion" +import { ChevronDown } from "lucide-react" + +import { cn } from "@/lib/utils" + +const Accordion = AccordionPrimitive.Root + +const AccordionItem = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AccordionItem.displayName = "AccordionItem" + +const AccordionTrigger = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + + svg]:rotate-180", + className + )} + {...props} + > + {children} + + + +)) +AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName + +const AccordionContent = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + +
{children}
+
+)) + +AccordionContent.displayName = AccordionPrimitive.Content.displayName + +export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } diff --git a/swc-plugins/components/ui/alert-dialog.tsx b/swc-plugins/components/ui/alert-dialog.tsx new file mode 100644 index 0000000..25e7b47 --- /dev/null +++ b/swc-plugins/components/ui/alert-dialog.tsx @@ -0,0 +1,141 @@ +"use client" + +import * as React from "react" +import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog" + +import { cn } from "@/lib/utils" +import { buttonVariants } from "@/components/ui/button" + +const AlertDialog = AlertDialogPrimitive.Root + +const AlertDialogTrigger = AlertDialogPrimitive.Trigger + +const AlertDialogPortal = AlertDialogPrimitive.Portal + +const AlertDialogOverlay = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName + +const AlertDialogContent = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + + + + +)) +AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName + +const AlertDialogHeader = ({ + className, + ...props +}: React.HTMLAttributes) => ( +
+) +AlertDialogHeader.displayName = "AlertDialogHeader" + +const AlertDialogFooter = ({ + className, + ...props +}: React.HTMLAttributes) => ( +
+) +AlertDialogFooter.displayName = "AlertDialogFooter" + +const AlertDialogTitle = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName + +const AlertDialogDescription = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AlertDialogDescription.displayName = + AlertDialogPrimitive.Description.displayName + +const AlertDialogAction = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName + +const AlertDialogCancel = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName + +export { + AlertDialog, + AlertDialogPortal, + AlertDialogOverlay, + AlertDialogTrigger, + AlertDialogContent, + AlertDialogHeader, + AlertDialogFooter, + AlertDialogTitle, + AlertDialogDescription, + AlertDialogAction, + AlertDialogCancel, +} diff --git a/swc-plugins/components/ui/alert.tsx b/swc-plugins/components/ui/alert.tsx new file mode 100644 index 0000000..41fa7e0 --- /dev/null +++ b/swc-plugins/components/ui/alert.tsx @@ -0,0 +1,59 @@ +import * as React from "react" +import { cva, type VariantProps } from "class-variance-authority" + +import { cn } from "@/lib/utils" + +const alertVariants = cva( + "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", + { + variants: { + variant: { + default: "bg-background text-foreground", + destructive: + "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive", + }, + }, + defaultVariants: { + variant: "default", + }, + } +) + +const Alert = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes & VariantProps +>(({ className, variant, ...props }, ref) => ( +
+)) +Alert.displayName = "Alert" + +const AlertTitle = React.forwardRef< + HTMLParagraphElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +AlertTitle.displayName = "AlertTitle" + +const AlertDescription = React.forwardRef< + HTMLParagraphElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +AlertDescription.displayName = "AlertDescription" + +export { Alert, AlertTitle, AlertDescription } diff --git a/swc-plugins/components/ui/aspect-ratio.tsx b/swc-plugins/components/ui/aspect-ratio.tsx new file mode 100644 index 0000000..d6a5226 --- /dev/null +++ b/swc-plugins/components/ui/aspect-ratio.tsx @@ -0,0 +1,7 @@ +"use client" + +import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio" + +const AspectRatio = AspectRatioPrimitive.Root + +export { AspectRatio } diff --git a/swc-plugins/components/ui/avatar.tsx b/swc-plugins/components/ui/avatar.tsx new file mode 100644 index 0000000..51e507b --- /dev/null +++ b/swc-plugins/components/ui/avatar.tsx @@ -0,0 +1,50 @@ +"use client" + +import * as React from "react" +import * as AvatarPrimitive from "@radix-ui/react-avatar" + +import { cn } from "@/lib/utils" + +const Avatar = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +Avatar.displayName = AvatarPrimitive.Root.displayName + +const AvatarImage = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AvatarImage.displayName = AvatarPrimitive.Image.displayName + +const AvatarFallback = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName + +export { Avatar, AvatarImage, AvatarFallback } diff --git a/swc-plugins/components/ui/badge.tsx b/swc-plugins/components/ui/badge.tsx new file mode 100644 index 0000000..f000e3e --- /dev/null +++ b/swc-plugins/components/ui/badge.tsx @@ -0,0 +1,36 @@ +import * as React from "react" +import { cva, type VariantProps } from "class-variance-authority" + +import { cn } from "@/lib/utils" + +const badgeVariants = cva( + "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", + { + variants: { + variant: { + default: + "border-transparent bg-primary text-primary-foreground hover:bg-primary/80", + secondary: + "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80", + destructive: + "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80", + outline: "text-foreground", + }, + }, + defaultVariants: { + variant: "default", + }, + } +) + +export interface BadgeProps + extends React.HTMLAttributes, + VariantProps {} + +function Badge({ className, variant, ...props }: BadgeProps) { + return ( +
+ ) +} + +export { Badge, badgeVariants } diff --git a/swc-plugins/components/ui/breadcrumb.tsx b/swc-plugins/components/ui/breadcrumb.tsx new file mode 100644 index 0000000..71a5c32 --- /dev/null +++ b/swc-plugins/components/ui/breadcrumb.tsx @@ -0,0 +1,115 @@ +import * as React from "react" +import { Slot } from "@radix-ui/react-slot" +import { ChevronRight, MoreHorizontal } from "lucide-react" + +import { cn } from "@/lib/utils" + +const Breadcrumb = React.forwardRef< + HTMLElement, + React.ComponentPropsWithoutRef<"nav"> & { + separator?: React.ReactNode + } +>(({ ...props }, ref) =>