@rindrics/initrepo
v0.3.1
Published
setup GitHub repo with dev tools
Readme
@rindrics/initrepo
CLI tool for rapid repository setup with CI/CD, code quality tools, and release automation via tagpr.
Usage
Create a new project
# Using npx (recommended)
npx @rindrics/initrepo init my-super-project
# Using pnpm
pnpm dlx @rindrics/initrepo init my-super-project
# Non-interactive mode
npx @rindrics/initrepo init my-super-project --devcode --create-repo --privateOptions:
-d, --devcode- Use devcode mode (addsprivate: trueto package.json)--create-repo- Create GitHub repository with tagpr labels-p, --private- Make GitHub repository private-a, --author <name>- Package author
To create a GitHub repository, set GITHUB_TOKEN:
# Using GitHub CLI
GITHUB_TOKEN=$(gh auth token) npx @rindrics/initrepo init my-project --create-repoPrepare for release
When ready to publish, convert your devcode project:
cd my-super-project
npx @rindrics/initrepo prepare-release @scope/my-packageThis will:
- Update
package.jsonname and removeprivate: true - Configure workflows for
PAT_FOR_TAGPR - Report any unmanaged occurrences of the devcode name for manual review
Setup for automated releases
Create a PAT at https://github.com/settings/tokens/new
- Permissions:
repo(orpublic_repo),workflow - Add as repository secret:
PAT_FOR_TAGPR
- Permissions:
Configure npm for GitHub Actions publishing
- Go to npmjs.com → Package Settings → Publishing access
- Add your repository to trusted publishers
License
MIT
