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());