fix(cli): add logs/ and nerve.pid to init gitignore template #182

Merged
xiaomo merged 2 commits from fix/gitignore-template into main 2026-04-27 08:40:44 +00:00
Owner

What

Add missing runtime artifacts to the .gitignore template generated by nerve init.

Why

logs/ directory and nerve.pid file are created at runtime but were not in the template, causing them to show up as untracked files.

Changes

  • packages/cli/src/commands/init.ts: Added logs/ and nerve.pid to GITIGNORE template

Ref

N/A

## What Add missing runtime artifacts to the .gitignore template generated by `nerve init`. ## Why `logs/` directory and `nerve.pid` file are created at runtime but were not in the template, causing them to show up as untracked files. ## Changes - `packages/cli/src/commands/init.ts`: Added `logs/` and `nerve.pid` to GITIGNORE template ## Ref N/A
xingyue added 1 commit 2026-04-27 08:24:39 +00:00
These are runtime artifacts that should not be tracked.
xingyue added 1 commit 2026-04-27 08:38:53 +00:00
- Add --skip-install flag to nerve init for testing/offline use
- Use --skip-install in e2e tests to avoid real pnpm install
- Reduce e2e init test timeout from 60s to 10s

Closes #181
xiaomo approved these changes 2026-04-27 08:40:43 +00:00
xiaomo left a comment
Owner

LGTM gitignore 补全 + --skip-install 让 e2e 测试快了 6 倍,干净利落。

LGTM ✅ gitignore 补全 + --skip-install 让 e2e 测试快了 6 倍,干净利落。
xiaomo merged commit 8f3322bc48 into main 2026-04-27 08:40:44 +00:00
xiaomo deleted branch fix/gitignore-template 2026-04-27 08:40:44 +00:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No Label
2 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/nerve#182