Add .gitignore files to quickstart templates (#4609)

Fixes #4582

Templates created via `spacetime init` were missing `.gitignore` files,
causing build artifacts like `node_modules`, `target/`, `bin/`, `obj/`,
`dist/`, `.next/`, etc. to show up in git diffs when users initialize a
project inside a git repository.

Adds `.gitignore` files to the 15 templates that were missing one:

| Template | Ignores |
|----------|---------|
| Node/TS (`basic-ts`, `browser-ts`, `bun-ts`, `chat-react-ts`,
`deno-ts`, `nodejs-ts`, `react-ts`, `vue-ts`) | `node_modules`, `dist`,
`*.log` |
| Next.js (`nextjs-ts`) | `node_modules`, `.next`, `out`, `dist`,
`*.log` |
| Svelte (`svelte-ts`) | `node_modules`, `dist`, `.svelte-kit`, `*.log`
|
| Rust (`basic-rs`, `chat-console-rs`) | `target` |
| C# (`basic-cs`, `chat-console-cs`) | `bin`, `obj` |
| C++ (`basic-cpp`) | `target`, `build` |

All files also include `spacetime.local.json` and `.DS_Store`.

The 5 templates that already had `.gitignore` files (`angular-ts`,
`keynote-2`, `nuxt-ts`, `remix-ts`, `tanstack-ts`) are left unchanged.

Co-authored-by: clockwork-labs-bot <clockwork-labs-bot@users.noreply.github.com>
This commit is contained in:
clockwork-labs-bot
2026-03-30 17:02:56 -04:00
committed by GitHub
parent ad70ef5c05
commit cd65a0785d
15 changed files with 101 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
target
build
.DS_Store
spacetime.local.json
+6
View File
@@ -0,0 +1,6 @@
bin
obj
.DS_Store
spacetime.local.json
+5
View File
@@ -0,0 +1,5 @@
target
.DS_Store
spacetime.local.json
+7
View File
@@ -0,0 +1,7 @@
node_modules
dist
*.log
.DS_Store
spacetime.local.json
+7
View File
@@ -0,0 +1,7 @@
node_modules
dist
*.log
.DS_Store
spacetime.local.json
+7
View File
@@ -0,0 +1,7 @@
node_modules
dist
*.log
.DS_Store
spacetime.local.json
+6
View File
@@ -0,0 +1,6 @@
bin
obj
.DS_Store
spacetime.local.json
+5
View File
@@ -0,0 +1,5 @@
target
.DS_Store
spacetime.local.json
+7
View File
@@ -0,0 +1,7 @@
node_modules
dist
*.log
.DS_Store
spacetime.local.json
+7
View File
@@ -0,0 +1,7 @@
node_modules
dist
*.log
.DS_Store
spacetime.local.json
+9
View File
@@ -0,0 +1,9 @@
node_modules
.next
out
dist
*.log
.DS_Store
spacetime.local.json
+7
View File
@@ -0,0 +1,7 @@
node_modules
dist
*.log
.DS_Store
spacetime.local.json
+7
View File
@@ -0,0 +1,7 @@
node_modules
dist
*.log
.DS_Store
spacetime.local.json
+8
View File
@@ -0,0 +1,8 @@
node_modules
dist
.svelte-kit
*.log
.DS_Store
spacetime.local.json
+7
View File
@@ -0,0 +1,7 @@
node_modules
dist
*.log
.DS_Store
spacetime.local.json