chore: streamline ignore rules

This commit is contained in:
amblued 2026-08-22 10:34:28 +08:00
parent fe9a9bdf64
commit ee6560e0d9
3 changed files with 53 additions and 48 deletions

View file

@ -1,13 +1,27 @@
web/node_modules # Build and local output
web/dist /build/
.git /bin/
.github /tmp/
build/ /memos
tmp/ /memos.exe
memos coverage.out
/.pnpm-store/
/.worktrees/
# Not used by the image build
/web/
/docs/
/.github/
*.md *.md
.gitignore /.gitignore
.golangci.yaml /.dockerignore
.dockerignore /.golangci.yaml
docs/
.DS_Store # Local metadata and secrets
/.git/
/.env
/.env.*
/.idea/
/.vscode/
/.claude/
**/.DS_Store

51
.gitignore vendored
View file

@ -1,33 +1,24 @@
# temp folder # Generated output
tmp /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/
# Frontend asset # Local development files
web/dist
# Build artifacts
build/
bin/
memos
.DS_Store
# Jetbrains
.idea
# Docker Compose Environment File
.env .env
.env.*
dist !.env.example
.DS_Store
# VSCode settings .idea/
.vscode .vscode/
/.worktrees/
# Git worktrees # Project-scoped pnpm store, created under whichever directory pnpm runs in
.worktrees/ # when --config.store-dir is set without an existing store; it contains a
# symlink back to the workspace.
# Local pnpm store (project-scoped, created when --config.store-dir is set
# without an existing store; contains a symlink back to the workspace).
.pnpm-store/ .pnpm-store/
# Frontend test coverage output (Vitest + @vitest/coverage-v8).
web/coverage/

12
web/.gitignore vendored
View file

@ -1,7 +1,7 @@
node_modules # Generated output
.pnpm-store node_modules/
.DS_Store coverage/
dist /src/types/proto/store/
dist-ssr
# Machine-local overrides (Vite convention: .env.local, .env.*.local, ...)
*.local *.local
src/types/proto/store