Skip to content

Commit cd65a07

Browse files
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>
1 parent ad70ef5 commit cd65a07

File tree

15 files changed

+101
-0
lines changed

15 files changed

+101
-0
lines changed

templates/basic-cpp/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
target
2+
build
3+
4+
.DS_Store
5+
6+
spacetime.local.json

templates/basic-cs/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
bin
2+
obj
3+
4+
.DS_Store
5+
6+
spacetime.local.json

templates/basic-rs/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
target
2+
3+
.DS_Store
4+
5+
spacetime.local.json

templates/basic-ts/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
dist
3+
*.log
4+
5+
.DS_Store
6+
7+
spacetime.local.json

templates/browser-ts/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
dist
3+
*.log
4+
5+
.DS_Store
6+
7+
spacetime.local.json

templates/bun-ts/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
dist
3+
*.log
4+
5+
.DS_Store
6+
7+
spacetime.local.json
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
bin
2+
obj
3+
4+
.DS_Store
5+
6+
spacetime.local.json
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
target
2+
3+
.DS_Store
4+
5+
spacetime.local.json

templates/chat-react-ts/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
dist
3+
*.log
4+
5+
.DS_Store
6+
7+
spacetime.local.json

templates/deno-ts/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
dist
3+
*.log
4+
5+
.DS_Store
6+
7+
spacetime.local.json

0 commit comments

Comments
 (0)