create-apppaaaul 2.0.7 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +20 -20
  2. package/dist/index.js +0 -0
  3. package/dist/index.js.map +1 -1
  4. package/dist/templates/nextjs-ts-clean/project/.editorconfig +9 -9
  5. package/dist/templates/nextjs-ts-clean/project/.vscode/launch.json +28 -28
  6. package/dist/templates/nextjs-ts-clean/project/.vscode/settings.json +8 -8
  7. package/dist/templates/nextjs-ts-clean/project/README.md +15 -15
  8. package/dist/templates/nextjs-ts-clean/project/next.config.mjs +13 -13
  9. package/dist/templates/nextjs-ts-clean/project/package.json +47 -47
  10. package/dist/templates/nextjs-ts-clean/project/pnpm-lock.yaml +5463 -5463
  11. package/dist/templates/nextjs-ts-clean/project/postcss.config.js +6 -6
  12. package/dist/templates/nextjs-ts-clean/project/src/app/globals.css +76 -76
  13. package/dist/templates/nextjs-ts-clean/project/src/app/layout.tsx +25 -25
  14. package/dist/templates/nextjs-ts-clean/project/src/app/page.tsx +5 -5
  15. package/dist/templates/nextjs-ts-clean/project/src/components/ui/button.tsx +49 -49
  16. package/dist/templates/nextjs-ts-clean/project/src/lib/utils.ts +6 -6
  17. package/dist/templates/nextjs-ts-clean/project/tailwind.config.ts +79 -79
  18. package/dist/templates/nextjs-ts-clean/project/tsconfig.json +26 -26
  19. package/dist/templates/nextjs-ts-landing/project/.editorconfig +9 -9
  20. package/dist/templates/nextjs-ts-landing/project/.vscode/launch.json +28 -28
  21. package/dist/templates/nextjs-ts-landing/project/.vscode/settings.json +8 -8
  22. package/dist/templates/nextjs-ts-landing-drizzle/project/.editorconfig +9 -9
  23. package/dist/templates/nextjs-ts-landing-drizzle/project/.vscode/launch.json +28 -28
  24. package/dist/templates/nextjs-ts-landing-drizzle/project/.vscode/settings.json +8 -8
  25. package/dist/templates/nextjs-ts-landing-drizzle/project/README.md +15 -15
  26. package/dist/templates/nextjs-ts-landing-drizzle/project/components.json +16 -16
  27. package/dist/templates/nextjs-ts-landing-drizzle/project/drizzle.config.ts +11 -11
  28. package/dist/templates/nextjs-ts-landing-drizzle/project/next.config.mjs +10 -10
  29. package/dist/templates/nextjs-ts-landing-drizzle/project/package.json +56 -56
  30. package/dist/templates/nextjs-ts-landing-drizzle/project/pnpm-lock.yaml +6248 -6248
  31. package/dist/templates/nextjs-ts-landing-drizzle/project/postcss.config.js +6 -6
  32. package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/api/auth/[...nextauth]/route.ts +3 -3
  33. package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/globals.css +47 -47
  34. package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/layout.tsx +20 -20
  35. package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/page.tsx +5 -5
  36. package/dist/templates/nextjs-ts-landing-drizzle/project/src/auth.ts +79 -79
  37. package/dist/templates/nextjs-ts-landing-drizzle/project/src/components/ui/button.tsx +49 -49
  38. package/dist/templates/nextjs-ts-landing-drizzle/project/src/db/index.ts +25 -25
  39. package/dist/templates/nextjs-ts-landing-drizzle/project/src/db/schema.ts +93 -93
  40. package/dist/templates/nextjs-ts-landing-drizzle/project/src/lib/utils.ts +6 -6
  41. package/dist/templates/nextjs-ts-landing-drizzle/project/tailwind.config.ts +80 -80
  42. package/dist/templates/nextjs-ts-landing-drizzle/project/tsconfig.json +27 -27
  43. package/dist/templates/nextjs-ts-landing-prisma/project/.editorconfig +9 -9
  44. package/dist/templates/nextjs-ts-landing-prisma/project/.vscode/launch.json +28 -28
  45. package/dist/templates/nextjs-ts-landing-prisma/project/.vscode/settings.json +8 -8
  46. package/dist/templates/nextjs-ts-landing-prisma/project/README.md +15 -15
  47. package/dist/templates/nextjs-ts-landing-prisma/project/components.json +16 -16
  48. package/dist/templates/nextjs-ts-landing-prisma/project/next.config.mjs +10 -10
  49. package/dist/templates/nextjs-ts-landing-prisma/project/package.json +57 -57
  50. package/dist/templates/nextjs-ts-landing-prisma/project/postcss.config.mjs +4 -4
  51. package/dist/templates/nextjs-ts-landing-prisma/project/src/app/api/auth/[...nextauth]/route.ts +3 -3
  52. package/dist/templates/nextjs-ts-landing-prisma/project/src/app/globals.css +116 -116
  53. package/dist/templates/nextjs-ts-landing-prisma/project/src/app/layout.tsx +20 -20
  54. package/dist/templates/nextjs-ts-landing-prisma/project/src/app/page.tsx +5 -5
  55. package/dist/templates/nextjs-ts-landing-prisma/project/src/auth.ts +79 -79
  56. package/dist/templates/nextjs-ts-landing-prisma/project/src/components/ui/button.tsx +49 -49
  57. package/dist/templates/nextjs-ts-landing-prisma/project/src/lib/db.ts +10 -10
  58. package/dist/templates/nextjs-ts-landing-prisma/project/src/lib/utils.ts +6 -6
  59. package/dist/templates/nextjs-ts-landing-prisma/project/tailwind.config.ts +80 -80
  60. package/dist/templates/nextjs-ts-landing-prisma/project/tsconfig.json +27 -27
  61. package/package.json +43 -43
  62. package/dist/templates/nextjs-ts-landing/project/.eslintrc.cjs +0 -101
  63. package/dist/templates/nextjs-ts-landing-prisma/project/pnpm-lock.yaml +0 -5854
  64. package/dist/templates/nextjs-ts-landing-prisma/project/pnpm-workspace.yaml +0 -6
  65. package/dist/templates/nextjs-ts-landing-prisma/project/prisma/migrations/20250329125127_init/migration.sql +0 -25
  66. package/dist/templates/nextjs-ts-landing-prisma/project/prisma/migrations/migration_lock.toml +0 -3
  67. package/dist/templates/nextjs-ts-landing-prisma/project/prisma/schema.prisma +0 -24
package/README.md CHANGED
@@ -1,20 +1,20 @@
1
- # Create AppPaaaul
2
-
3
- Create projects as Paauldev would.
4
- Based on [appcny](https://github.com/goncy/create-appncy)
5
-
6
- ## Usage
7
-
8
- ```bash
9
- # Interactive mode
10
- pnpm create apppaaaul
11
- ```
12
-
13
- ## Installation
14
-
15
- ```bash
16
- pnpm install -g create-apppaaaul
17
- ```
18
-
19
- ## Questions?
20
-
1
+ # Create AppPaaaul
2
+
3
+ Create projects as Paauldev would.
4
+ Based on [appcny](https://github.com/goncy/create-appncy)
5
+
6
+ ## Usage
7
+
8
+ ```bash
9
+ # Interactive mode
10
+ pnpm create apppaaaul
11
+ ```
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ pnpm install -g create-apppaaaul
17
+ ```
18
+
19
+ ## Questions?
20
+
package/dist/index.js CHANGED
File without changes
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../node_modules/.pnpm/tsup@8.4.0_typescript@5.8.2_yaml@2.4.5/node_modules/tsup/assets/cjs_shims.js","../index.ts","../helpers/install.ts"],"sourcesContent":["// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () =>\n typeof document === 'undefined'\n ? new URL(`file:${__filename}`).href\n : (document.currentScript && document.currentScript.src) ||\n new URL('main.js', document.baseURI).href\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n","#!/usr/bin/env node\n\nimport path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { cp, readFile, writeFile } from \"node:fs/promises\";\nimport { exec } from \"child_process\";\nimport { promisify } from \"util\";\n\nimport { cyan, green, red } from \"picocolors\";\nimport { glob } from \"glob\";\nimport color from \"picocolors\";\nimport prompts from \"prompts\";\nimport yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\n\nimport { install } from \"./helpers/install\";\nconst execAsync = promisify(exec);\n\n// Define the templates available\nconst TEMPLATES = [\n {\n title: \"Nextjs ts with db setup Landing with prisma\",\n value: \"nextjs-ts-landing-prisma\",\n },\n {\n title: \"Nextjs ts with db setup Landing with drizzle\",\n value: \"nextjs-ts-landing-drizzle\",\n },\n {\n title: 'Nextjs ts clean',\n value: 'nextjs-ts-clean'\n }\n];\n\n// Specify CLI arguments\nconst args = yargs(hideBin(process.argv)).options({\n name: {\n alias: \"n\",\n type: \"string\",\n description: \"Name of the project\",\n },\n template: {\n alias: \"t\",\n type: \"string\",\n description: \"Template to use\",\n },\n});\n\n// Override arguments passed on the CLI\nprompts.override(args.argv);\n\nasync function main() {\n // Get the initial values for the prompts\n const {\n _: [initialName, initialProject],\n } = await args.argv;\n\n // Create the project prompt\n const project = await prompts(\n [\n {\n type: \"text\",\n name: \"name\",\n message: \"What is the name of your project?\",\n initial: initialName || \"apppaaaul-project\",\n validate: (value) => {\n if (value !== \".\" && value.match(/[^a-zA-Z0-9-_]+/g)) {\n return \"Project name can only contain letters, numbers, dashes, underscores, or be '.' for the current directory\";\n }\n\n return true;\n },\n },\n {\n type: \"select\",\n name: \"template\",\n message: `Which template would you like to use?`,\n initial: initialProject || 0,\n choices: TEMPLATES,\n },\n ],\n {\n onCancel: () => {\n console.log(\"\\nBye 👋\\n\");\n\n process.exit(0);\n },\n },\n );\n\n // Get the template folder for the selected template\n const template = path.join(\n path.dirname(fileURLToPath(import.meta.url)),\n \"templates\",\n project.template,\n );\n\n // Get the destination folder for the project\n const destination = project.name === \".\" ? process.cwd() : path.join(process.cwd(), project.name);\n\n // Copy files from the template folder to the current directory\n await cp(path.join(template, \"project\"), destination, { recursive: true });\n\n // Get all files from the destination folder\n const files = await glob(`**/*`, { nodir: true, cwd: destination, absolute: true });\n\n // Read each file and replace the tokens\n for await (const file of files) {\n const data = await readFile(file, \"utf8\");\n const draft = data.replace(/{{name}}/g, project.name);\n\n await writeFile(file, draft, \"utf8\");\n }\n\n // Log outro message\n console.log(\"\\n✨ Project created ✨\");\n\n // Run commands if a new directory was created\n if (project.name !== \".\") {\n try {\n await execAsync(`cd ${project.name}`);\n console.log(`\\n${color.green(`cd`)} ${project.name}`);\n } catch (error) {\n console.error(`Error executing commands: ${error}`);\n }\n }\n try {\n await execAsync(\"cursor .\");\n console.log(\"Installing packages. This might take a couple of minutes.\");\n console.log();\n await install();\n console.log();\n console.log(`${green(\"Success!\")} App installed successfully.`);\n console.log(cyan(\"Initializing the development server...\"));\n //TODO: Add docker-compose up, docker create db, pnpm run db:push\n await execAsync(\"pnpm dev\");\n } catch (error) {\n console.error(`Error executing commands: ${error}`);\n }\n}\n\n// Run the main function\nmain().catch(console.error);\n","import spawn from \"cross-spawn\";\nimport { yellow } from \"picocolors\";\n\nexport async function install(): Promise<void> {\n const packageManager = \"pnpm\";\n const args: string[] = [\"install\"];\n\n return new Promise((resolve, reject) => {\n /**\n * Spawn the installation process.\n */\n const child = spawn(packageManager, args, {\n stdio: \"inherit\",\n env: {\n ...process.env,\n ADBLOCK: \"1\",\n // we set NODE_ENV to development as pnpm skips dev\n // dependencies when production\n NODE_ENV: \"development\",\n DISABLE_OPENCOLLECTIVE: \"1\",\n },\n });\n\n child.on(\"close\", (code) => {\n if (code !== 0) {\n reject({ command: `${packageManager} ${args.join(\" \")}` });\n\n return;\n }\n resolve();\n });\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAM,mBAAmB,MACvB,OAAO,aAAa,cAChB,IAAI,IAAI,QAAQ,UAAU,EAAE,EAAE,OAC7B,SAAS,iBAAiB,SAAS,cAAc,OAClD,IAAI,IAAI,WAAW,SAAS,OAAO,EAAE;AAEpC,IAAM,gBAAgC,iCAAiB;;;ACT9D,uBAAiB;AACjB,sBAA8B;AAC9B,sBAAwC;AACxC,2BAAqB;AACrB,kBAA0B;AAE1B,wBAAiC;AACjC,kBAAqB;AACrB,IAAAA,qBAAkB;AAClB,qBAAoB;AACpB,mBAAkB;AAClB,qBAAwB;;;ACbxB,yBAAkB;AAGlB,eAAsB,UAAyB;AAC7C,QAAM,iBAAiB;AACvB,QAAMC,QAAiB,CAAC,SAAS;AAEjC,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AAItC,UAAM,YAAQ,mBAAAC,SAAM,gBAAgBD,OAAM;AAAA,MACxC,OAAO;AAAA,MACP,KAAK;AAAA,QACH,GAAG,QAAQ;AAAA,QACX,SAAS;AAAA;AAAA;AAAA,QAGT,UAAU;AAAA,QACV,wBAAwB;AAAA,MAC1B;A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AAAA,EAC5B,SAAS,OAAO;AACd,YAAQ,MAAM,6BAA6B,KAAK,EAAE;AAAA,EACpD;AACF;AAGA,KAAK,EAAE,MAAM,QAAQ,KAAK;","names":["import_picocolors","args","spawn","yargs","prompts","path","color"]}
1
+ {"version":3,"sources":["../node_modules/.pnpm/tsup@8.4.0_typescript@5.8.2_yaml@2.4.5/node_modules/tsup/assets/cjs_shims.js","../index.ts","../helpers/install.ts"],"sourcesContent":["// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () =>\n typeof document === 'undefined'\n ? new URL(`file:${__filename}`).href\n : (document.currentScript && document.currentScript.src) ||\n new URL('main.js', document.baseURI).href\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n","#!/usr/bin/env node\r\n\r\nimport path from \"node:path\";\r\nimport { fileURLToPath } from \"node:url\";\r\nimport { cp, readFile, writeFile } from \"node:fs/promises\";\r\nimport { exec } from \"child_process\";\r\nimport { promisify } from \"util\";\r\n\r\nimport { cyan, green, red } from \"picocolors\";\r\nimport { glob } from \"glob\";\r\nimport color from \"picocolors\";\r\nimport prompts from \"prompts\";\r\nimport yargs from \"yargs\";\r\nimport { hideBin } from \"yargs/helpers\";\r\n\r\nimport { install } from \"./helpers/install\";\r\nconst execAsync = promisify(exec);\r\n\r\n// Define the templates available\r\nconst TEMPLATES = [\r\n {\r\n title: \"Nextjs ts with db setup Landing with prisma\",\r\n value: \"nextjs-ts-landing-prisma\",\r\n },\r\n {\r\n title: \"Nextjs ts with db setup Landing with drizzle\",\r\n value: \"nextjs-ts-landing-drizzle\",\r\n },\r\n {\r\n title: 'Nextjs ts clean',\r\n value: 'nextjs-ts-clean'\r\n }\r\n];\r\n\r\n// Specify CLI arguments\r\nconst args = yargs(hideBin(process.argv)).options({\r\n name: {\r\n alias: \"n\",\r\n type: \"string\",\r\n description: \"Name of the project\",\r\n },\r\n template: {\r\n alias: \"t\",\r\n type: \"string\",\r\n description: \"Template to use\",\r\n },\r\n});\r\n\r\n// Override arguments passed on the CLI\r\nprompts.override(args.argv);\r\n\r\nasync function main() {\r\n // Get the initial values for the prompts\r\n const {\r\n _: [initialName, initialProject],\r\n } = await args.argv;\r\n\r\n // Create the project prompt\r\n const project = await prompts(\r\n [\r\n {\r\n type: \"text\",\r\n name: \"name\",\r\n message: \"What is the name of your project?\",\r\n initial: initialName || \"apppaaaul-project\",\r\n validate: (value) => {\r\n if (value !== \".\" && value.match(/[^a-zA-Z0-9-_]+/g)) {\r\n return \"Project name can only contain letters, numbers, dashes, underscores, or be '.' for the current directory\";\r\n }\r\n\r\n return true;\r\n },\r\n },\r\n {\r\n type: \"select\",\r\n name: \"template\",\r\n message: `Which template would you like to use?`,\r\n initial: initialProject || 0,\r\n choices: TEMPLATES,\r\n },\r\n ],\r\n {\r\n onCancel: () => {\r\n console.log(\"\\nBye 👋\\n\");\r\n\r\n process.exit(0);\r\n },\r\n },\r\n );\r\n\r\n // Get the template folder for the selected template\r\n const template = path.join(\r\n path.dirname(fileURLToPath(import.meta.url)),\r\n \"templates\",\r\n project.template,\r\n );\r\n\r\n // Get the destination folder for the project\r\n const destination = project.name === \".\" ? process.cwd() : path.join(process.cwd(), project.name);\r\n\r\n // Copy files from the template folder to the current directory\r\n await cp(path.join(template, \"project\"), destination, { recursive: true });\r\n\r\n // Get all files from the destination folder\r\n const files = await glob(`**/*`, { nodir: true, cwd: destination, absolute: true });\r\n\r\n // Read each file and replace the tokens\r\n for await (const file of files) {\r\n const data = await readFile(file, \"utf8\");\r\n const draft = data.replace(/{{name}}/g, project.name);\r\n\r\n await writeFile(file, draft, \"utf8\");\r\n }\r\n\r\n // Log outro message\r\n console.log(\"\\n✨ Project created ✨\");\r\n\r\n // Run commands if a new directory was created\r\n if (project.name !== \".\") {\r\n try {\r\n await execAsync(`cd ${project.name}`);\r\n console.log(`\\n${color.green(`cd`)} ${project.name}`);\r\n } catch (error) {\r\n console.error(`Error executing commands: ${error}`);\r\n }\r\n }\r\n try {\r\n await execAsync(\"cursor .\");\r\n console.log(\"Installing packages. This might take a couple of minutes.\");\r\n console.log();\r\n await install();\r\n console.log();\r\n console.log(`${green(\"Success!\")} App installed successfully.`);\r\n console.log(cyan(\"Initializing the development server...\"));\r\n //TODO: Add docker-compose up, docker create db, pnpm run db:push\r\n await execAsync(\"pnpm dev\");\r\n } catch (error) {\r\n console.error(`Error executing commands: ${error}`);\r\n }\r\n}\r\n\r\n// Run the main function\r\nmain().catch(console.error);\r\n","import spawn from \"cross-spawn\";\r\nimport { yellow } from \"picocolors\";\r\n\r\nexport async function install(): Promise<void> {\r\n const packageManager = \"pnpm\";\r\n const args: string[] = [\"install\"];\r\n\r\n return new Promise((resolve, reject) => {\r\n /**\r\n * Spawn the installation process.\r\n */\r\n const child = spawn(packageManager, args, {\r\n stdio: \"inherit\",\r\n env: {\r\n ...process.env,\r\n ADBLOCK: \"1\",\r\n // we set NODE_ENV to development as pnpm skips dev\r\n // dependencies when production\r\n NODE_ENV: \"development\",\r\n DISABLE_OPENCOLLECTIVE: \"1\",\r\n },\r\n });\r\n\r\n child.on(\"close\", (code) => {\r\n if (code !== 0) {\r\n reject({ command: `${packageManager} ${args.join(\" \")}` });\r\n\r\n return;\r\n }\r\n resolve();\r\n });\r\n });\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAM,mBAAmB,MACvB,OAAO,aAAa,cAChB,IAAI,IAAI,QAAQ,UAAU,EAAE,EAAE,OAC7B,SAAS,iBAAiB,SAAS,cAAc,OAClD,IAAI,IAAI,WAAW,SAAS,OAAO,EAAE;AAEpC,IAAM,gBAAgC,iCAAiB;;;ACT9D,uBAAiB;AACjB,sBAA8B;AAC9B,sBAAwC;AACxC,2BAAqB;AACrB,kBAA0B;AAE1B,wBAAiC;AACjC,kBAAqB;AACrB,IAAAA,qBAAkB;AAClB,qBAAoB;AACpB,mBAAkB;A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Q,IAAI,EAAE;AAAA,IACtD,SAAS,OAAO;AACd,cAAQ,MAAM,6BAA6B,KAAK,EAAE;AAAA,IACpD;AAAA,EACF;AACA,MAAI;AACF,UAAM,UAAU,UAAU;AAC1B,YAAQ,IAAI,2DAA2D;AACvE,YAAQ,IAAI;AACZ,UAAM,QAAQ;AACd,YAAQ,IAAI;AACZ,YAAQ,IAAI,OAAG,yBAAM,UAAU,CAAC,8BAA8B;AAC9D,YAAQ,QAAI,wBAAK,wCAAwC,CAAC;AAE1D,UAAM,UAAU,UAAU;AAAA,EAC5B,SAAS,OAAO;AACd,YAAQ,MAAM,6BAA6B,KAAK,EAAE;AAAA,EACpD;AACF;AAGA,KAAK,EAAE,MAAM,QAAQ,KAAK;","names":["import_picocolors","args","spawn","yargs","prompts","path","color"]}
@@ -1,9 +1,9 @@
1
- root = true
2
-
3
- [*]
4
- insert_final_newline = true
5
- charset = utf-8
6
- indent_style = space
7
- indent_size = 2
8
- trim_trailing_whitespace = true
9
- max_line_length = 80
1
+ root = true
2
+
3
+ [*]
4
+ insert_final_newline = true
5
+ charset = utf-8
6
+ indent_style = space
7
+ indent_size = 2
8
+ trim_trailing_whitespace = true
9
+ max_line_length = 80
@@ -1,28 +1,28 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "name": "Next.js: debug server-side",
6
- "type": "node-terminal",
7
- "request": "launch",
8
- "command": "pnpm dev"
9
- },
10
- {
11
- "name": "Next.js: debug client-side",
12
- "type": "chrome",
13
- "request": "launch",
14
- "url": "http://localhost:3000"
15
- },
16
- {
17
- "name": "Next.js: debug full stack",
18
- "type": "node-terminal",
19
- "request": "launch",
20
- "command": "pnpm dev",
21
- "serverReadyAction": {
22
- "pattern": "started server on .+, url: (https?://.+)",
23
- "uriFormat": "%s",
24
- "action": "debugWithChrome"
25
- }
26
- }
27
- ]
28
- }
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "name": "Next.js: debug server-side",
6
+ "type": "node-terminal",
7
+ "request": "launch",
8
+ "command": "pnpm dev"
9
+ },
10
+ {
11
+ "name": "Next.js: debug client-side",
12
+ "type": "chrome",
13
+ "request": "launch",
14
+ "url": "http://localhost:3000"
15
+ },
16
+ {
17
+ "name": "Next.js: debug full stack",
18
+ "type": "node-terminal",
19
+ "request": "launch",
20
+ "command": "pnpm dev",
21
+ "serverReadyAction": {
22
+ "pattern": "started server on .+, url: (https?://.+)",
23
+ "uriFormat": "%s",
24
+ "action": "debugWithChrome"
25
+ }
26
+ }
27
+ ]
28
+ }
@@ -1,8 +1,8 @@
1
- {
2
- "editor.formatOnSave": false,
3
- "typescript.tsdk": "node_modules\\typescript\\lib",
4
- "typescript.enablePromptUseWorkspaceTsdk": true,
5
- "editor.codeActionsOnSave": {
6
- "source.fixAll.eslint": "explicit"
7
- }
8
- }
1
+ {
2
+ "editor.formatOnSave": false,
3
+ "typescript.tsdk": "node_modules\\typescript\\lib",
4
+ "typescript.enablePromptUseWorkspaceTsdk": true,
5
+ "editor.codeActionsOnSave": {
6
+ "source.fixAll.eslint": "explicit"
7
+ }
8
+ }
@@ -1,15 +1,15 @@
1
- ## Getting Started with {{name}}
2
-
3
- First, run the development server:
4
-
5
- ```bash
6
- npm run dev
7
- # or
8
- yarn dev
9
- # or
10
- pnpm dev
11
- ```
12
-
13
- Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
14
-
15
- You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
1
+ ## Getting Started with {{name}}
2
+
3
+ First, run the development server:
4
+
5
+ ```bash
6
+ npm run dev
7
+ # or
8
+ yarn dev
9
+ # or
10
+ pnpm dev
11
+ ```
12
+
13
+ Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
14
+
15
+ You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
@@ -1,13 +1,13 @@
1
- /** @type {import('next').NextConfig} */
2
- const nextConfig = {
3
- experimental: {
4
- reactCompiler: true,
5
- },
6
- logging: {
7
- fetches: {
8
- fullUrl: true,
9
- },
10
- },
11
- };
12
-
13
- export default nextConfig;
1
+ /** @type {import('next').NextConfig} */
2
+ const nextConfig = {
3
+ experimental: {
4
+ reactCompiler: true,
5
+ },
6
+ logging: {
7
+ fetches: {
8
+ fullUrl: true,
9
+ },
10
+ },
11
+ };
12
+
13
+ export default nextConfig;
@@ -1,48 +1,48 @@
1
- {
2
- "name": "{{name}}",
3
- "version": "0.1.0",
4
- "private": true,
5
- "scripts": {
6
- "dev": "next dev --turbopack",
7
- "build": "next build",
8
- "start": "next start",
9
- "lint": "next lint"
10
- },
11
- "dependencies": {
12
- "@radix-ui/react-slot": "^1.1.2",
13
- "autoprefixer": "^10.4.21",
14
- "class-variance-authority": "^0.7.1",
15
- "clsx": "^2.1.1",
16
- "lucide-react": "^0.474.0",
17
- "next": "^15.2.4",
18
- "postcss": "^8.5.3",
19
- "react": "19.0.0",
20
- "react-dom": "19.0.0",
21
- "tailwind-merge": "^3.0.2",
22
- "tailwindcss": "^3.4.17",
23
- "tailwindcss-animate": "^1.0.7"
24
- },
25
- "devDependencies": {
26
- "@eslint/compat": "^1.2.7",
27
- "@next/eslint-plugin-next": "15.1.6",
28
- "@types/node": "^22.13.13",
29
- "@types/react": "^19.0.12",
30
- "@types/react-dom": "^19.0.4",
31
- "@vercel/style-guide": "^6.0.0",
32
- "babel-plugin-react-compiler": "19.0.0-beta-714736e-20250131",
33
- "eslint": "^9.21.0",
34
- "eslint-config-next": "^15.2.0",
35
- "eslint-config-prettier": "^10.0.2",
36
- "eslint-plugin-import": "^2.31.0",
37
- "eslint-plugin-jsx-a11y": "^6.10.2",
38
- "eslint-plugin-prettier": "^5.2.3",
39
- "eslint-plugin-react": "^7.37.4",
40
- "eslint-plugin-react-compiler": "0.0.0-experimental-c8b3f72-20240517",
41
- "eslint-plugin-react-hooks": "^5.1.0",
42
- "globals": "^15.15.0",
43
- "prettier": "^3.5.3",
44
- "prettier-plugin-tailwindcss": "^0.6.11",
45
- "typescript": "^5.8.2",
46
- "typescript-eslint": "^8.27.0"
47
- }
1
+ {
2
+ "name": "{{name}}",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "scripts": {
6
+ "dev": "next dev --turbopack",
7
+ "build": "next build",
8
+ "start": "next start",
9
+ "lint": "next lint"
10
+ },
11
+ "dependencies": {
12
+ "@radix-ui/react-slot": "^1.1.2",
13
+ "autoprefixer": "^10.4.21",
14
+ "class-variance-authority": "^0.7.1",
15
+ "clsx": "^2.1.1",
16
+ "lucide-react": "^0.474.0",
17
+ "next": "^15.2.4",
18
+ "postcss": "^8.5.3",
19
+ "react": "19.0.0",
20
+ "react-dom": "19.0.0",
21
+ "tailwind-merge": "^3.0.2",
22
+ "tailwindcss": "^3.4.17",
23
+ "tailwindcss-animate": "^1.0.7"
24
+ },
25
+ "devDependencies": {
26
+ "@eslint/compat": "^1.2.7",
27
+ "@next/eslint-plugin-next": "15.1.6",
28
+ "@types/node": "^22.13.13",
29
+ "@types/react": "^19.0.12",
30
+ "@types/react-dom": "^19.0.4",
31
+ "@vercel/style-guide": "^6.0.0",
32
+ "babel-plugin-react-compiler": "19.0.0-beta-714736e-20250131",
33
+ "eslint": "^9.21.0",
34
+ "eslint-config-next": "^15.2.0",
35
+ "eslint-config-prettier": "^10.0.2",
36
+ "eslint-plugin-import": "^2.31.0",
37
+ "eslint-plugin-jsx-a11y": "^6.10.2",
38
+ "eslint-plugin-prettier": "^5.2.3",
39
+ "eslint-plugin-react": "^7.37.4",
40
+ "eslint-plugin-react-compiler": "0.0.0-experimental-c8b3f72-20240517",
41
+ "eslint-plugin-react-hooks": "^5.1.0",
42
+ "globals": "^15.15.0",
43
+ "prettier": "^3.5.3",
44
+ "prettier-plugin-tailwindcss": "^0.6.11",
45
+ "typescript": "^5.8.2",
46
+ "typescript-eslint": "^8.27.0"
47
+ }
48
48
  }