ignosync
v0.0.3
Published
Create .gitignore for specific TechStacks
Readme
ignosync
A CLI to generate and maintain .gitignore using reusable templates.
What It Does
- Generates
.gitignorefrom selected templates (init) - Updates existing generated sections to the latest template content (
update) - Preserves your custom rules block at the end of the file
Install
npm install -g ignosyncQuick Start
Generate .gitignore in your current folder:
ignosync initUpdate existing generated template sections:
ignosync updateCommands
ignosync init
- Loads available templates.
- Prompts you to select one or more templates.
- Rewrites the output file.
Output file: .gitignore
ignosync update
- Reads existing section headers in your current file (
# -- <name>). - Fetches latest content for those section names.
- Rewrites generated sections while keeping your custom block.
Generated File Format
Generated content is grouped into sections:
#
# -- common
#
<content from common.ignore>
#
# -- Node.js
#
<content from template>Custom Rules Block
If your gitignore file already contains this tail block:
#
# ---
#
<your custom rules>it is preserved and appended again after generation/update.
Template Source
- Templates are fetched from the GitHub
templatesdirectory.
Development
Install dependencies:
pnpm installRun locally in dev mode:
pnpm local:run init
pnpm local:run updateNote: GIT_IGNORE_DEV=true and .gitignore-local are internal development flows, not public usage.
Build:
pnpm buildTest:
pnpm testLicense
MIT
