From 9c1ee6dbacb19f33b0c5cfe40dc50dfdb631a9f8 Mon Sep 17 00:00:00 2001 From: crypblizz <45455218+crypblizz8@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:34:38 +0100 Subject: [PATCH] chore: fix --- package.json | 2 +- src/functions/createNextJsProject.ts | 76 ++++++++++++++-------------- 2 files changed, 40 insertions(+), 38 deletions(-) diff --git a/package.json b/package.json index 7680612..7f4d5e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nillion/create-nillion-app", - "version": "0.1.0-rc.16", + "version": "0.1.0-rc.25", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "type": "module", diff --git a/src/functions/createNextJsProject.ts b/src/functions/createNextJsProject.ts index 66dd30c..06aa54e 100644 --- a/src/functions/createNextJsProject.ts +++ b/src/functions/createNextJsProject.ts @@ -19,44 +19,46 @@ export function createNextJsProject(rootDir: string): void { fs.cpSync(examplesPath, nextAppPath, { recursive: true }); const gitignorePath = path.join(nextAppPath, ".gitignore"); - const gitignoreContent = `# Dependencies - /node_modules - /.pnp - .pnp.js - .yarn/install-state.gz + const gitignoreContent = [ + "# Dependencies", + "/node_modules", + "/.pnp", + ".pnp.js", + ".yarn/install-state.gz", + "", + "# 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", + "", + "# Nada venv", + "nada/.venv/", + ].join("\n"); - # 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 - - # Nada venv - nada/.venv/ - `; fs.writeFileSync(gitignorePath, gitignoreContent); setupNadaFolder(process.cwd());