Skip to content

docs: add contributing guide - #4

Merged
TrivCodez merged 2 commits into
IN3PIRE:mainfrom
jordansilly77-stack:docs/contributing-guide
Jul 8, 2026
Merged

TrivCodez merged 2 commits into
IN3PIRE:mainfrom
jordansilly77-stack:docs/contributing-guide

Conversation

@jordansilly77-stack

Copy link
Copy Markdown
Contributor

Summary

  • Add a root CONTRIBUTING.md for local setup, environment configuration, development commands, testing, and PR expectations.
  • Document the current TypeScript CLI structure and Neon credential handling.
  • Include guidance for GitHub Packages setup without requiring it for source development.

Validation

  • npm run build
  • npm test (currently exits with no test files found)

@TrivCodez TrivCodez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CONTRIBUTING.md review

The guide covers all the major areas a new contributor needs — prerequisites, local setup, project structure, workflows, code style, testing, and issue reporting. The project structure section accurately reflects the current codebase layout, and the security reminders about not committing secrets are clear and well-placed.

A few areas that could be tightened up:

Commit message language — The commit message is in Chinese (新增贡献指南文档). Since this is an English-language project, commit messages should be in English to keep the log consistent. For squash-merging this PR, the title/message can be adjusted at merge time, but worth keeping in mind for future commits.

cp .env.example .env # if an example file is added later — This instruction tells someone to copy a file that doesn't exist yet. Either add the .env.example as part of this PR (even if it's just a template), or just document the variables inline without referencing a file that isn't there. As written, it reads like a TODO that made it into the docs.

Branch naming example in the PR process section — Step 2 uses git checkout -b docs/contributing-guide, which is this PR's branch name. A generic placeholder like git checkout -b fix/short-description or git checkout -b my-feature would be more helpful and avoid the self-reference.

~/.npmrc with >> appending — The guide appends GitHub Packages config to the user's global .npmrc using >>. This will create duplicate lines if the commands are run more than once. Consider either using > (overwrite) with the full block, suggesting a project-level .npmrc file instead, or using grep/contains guard logic. A project .npmrc checked into the repo (containing just the registry scope) would also simplify setup for contributors.

NEON_PROJECT_ID can be set via CLI — The guide shows NEON_PROJECT_ID=your-neon-project-id as an environment variable, which is correct. It's worth noting alongside the auth commands that npm run dev -- auth set-project <project-id> persists the project ID to config, so the env var is only needed if you prefer not to persist it.

CLI version in bug reports — The issue template requests Node.js/npm versions but doesn't ask for the CLI version itself. Adding npx @in3pire/db --version (or equivalent) to the issue template would help triage.

None of these are blockers — the guide is solid overall and gives contributors a clear on-ramp. The structure and technical accuracy are the important parts, and those are right.

@TrivCodez TrivCodez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All points from the previous review have been addressed:

  • Branch naming example uses fix/short-description — no longer self-referential.
  • .env.example reference removed — no dangling file reference.
  • .npmrc setup uses a project-level file with cat > .npmrc — no global config duplication.
  • CLI version included in issue template checklist.
  • NEON_PROJECT_ID persistence noted alongside env variable setup.

The guide is comprehensive and accurate. Ready to merge.

@TrivCodez
TrivCodez merged commit 879a02e into IN3PIRE:main Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants