1. Implementation
- [x] 1.1 Add a
writeGitignore(absoluteOutDir)helper (or inline the write) insrc/plugin.tsthat writes<absoluteOutDir>/.gitignorewith the standard ignore-all-except-self content - [x] 1.2 Call the gitignore write at the end of the
tryblock ingenerateOpenSpecPages(), after all page files are written
2. Tests
- [x] 2.1 Add a test in
src/__tests__/plugin.test.ts(or equivalent) that verifies<outDir>/.gitignoreexists with the correct content aftergenerateOpenSpecPages()runs - [x] 2.2 Add a test that verifies re-running
generateOpenSpecPages()overwrites a modified.gitignorewith the canonical content (idempotency)
3. Documentation
- [x] 3.1 Update
README.mdto note that the output directory is automatically gitignored and that a manualdocs/openspecentry in.gitignoreis no longer required