Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: streamline ignore rules

ambluedee6560e0d9c7
diff --git a/.dockerignore b/.dockerignore
index d465134d4..eec0f9fd4 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -1,13 +1,27 @@
-web/node_modules
-web/dist
-.git
-.github
-build/
-tmp/
-memos
+# Build and local output
+/build/
+/bin/
+/tmp/
+/memos
+/memos.exe
+coverage.out
+/.pnpm-store/
+/.worktrees/
+
+# Not used by the image build
+/web/
+/docs/
+/.github/
*.md
-.gitignore
-.golangci.yaml
-.dockerignore
-docs/
-.DS_Store
\ No newline at end of file
+/.gitignore
+/.dockerignore
+/.golangci.yaml
+
+# Local metadata and secrets
+/.git/
+/.env
+/.env.*
+/.idea/
+/.vscode/
+/.claude/
+**/.DS_Store
diff --git a/.gitignore b/.gitignore
index 6b0f27999..1cfc6e0e6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,33 +1,24 @@
-# temp folder
-tmp
-
-# Frontend asset
-web/dist
-
-# Build artifacts
-build/
-bin/
-memos
-
-.DS_Store
-
-# Jetbrains
-.idea
-
-# Docker Compose Environment File
+# Generated output
+/build/
+/bin/
+/tmp/
+/memos
+/memos.exe
+coverage.out
+# Frontend bundles: web/dist from `pnpm build`, and
+# server/router/frontend/dist from `pnpm release`, which go:embed bakes
+# into the binary.
+dist/
+
+# Local development files
.env
-
-dist
-
-# VSCode settings
-.vscode
-
-# Git worktrees
-.worktrees/
-
-# Local pnpm store (project-scoped, created when --config.store-dir is set
-# without an existing store; contains a symlink back to the workspace).
+.env.*
+!.env.example
+.DS_Store
+.idea/
+.vscode/
+/.worktrees/
+# Project-scoped pnpm store, created under whichever directory pnpm runs in
+# when --config.store-dir is set without an existing store; it contains a
+# symlink back to the workspace.
.pnpm-store/
-
-# Frontend test coverage output (Vitest + @vitest/coverage-v8).
-web/coverage/
diff --git a/web/.gitignore b/web/.gitignore
index 0e8b17df0..9ff3962c1 100644
--- a/web/.gitignore
+++ b/web/.gitignore
@@ -1,7 +1,7 @@
-node_modules
-.pnpm-store
-.DS_Store
-dist
-dist-ssr
+# Generated output
+node_modules/
+coverage/
+/src/types/proto/store/
+
+# Machine-local overrides (Vite convention: .env.local, .env.*.local, ...)
*.local
-src/types/proto/store