Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tejasq/add-gitignore
An interactive CLI tool that adds a .gitignore to your projects.
https://github.com/tejasq/add-gitignore
cli git gitignore interactive nodejs
Last synced: 7 days ago
JSON representation
An interactive CLI tool that adds a .gitignore to your projects.
- Host: GitHub
- URL: https://github.com/tejasq/add-gitignore
- Owner: TejasQ
- License: mit
- Created: 2018-05-05T20:06:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-20T22:02:18.000Z (12 months ago)
- Last Synced: 2024-10-16T23:59:29.015Z (20 days ago)
- Topics: cli, git, gitignore, interactive, nodejs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/add-gitignore
- Size: 1.3 MB
- Stars: 674
- Watchers: 8
- Forks: 14
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# add-gitignore
This tiny CLI script that generates a `.gitignore` file for your projects.
![add-gitignore demo](https://raw.githubusercontent.com/TejasQ/add-gitignore/master/demo.gif)
## Usage
You'll want to make sure you have [NodeJS](https://nodejs.org/en/) installed on your computer. Then, setup is as simple as:
* `npx add-gitignore`
If you've got an older version of node that doesn't yet have [`npx`](https://www.npmjs.com/package/npx), here's a more traditional setup:
* `npm i -g add-gitignore`
* `add-gitignore macOS Emacs node # or whatever you need`Alternatively, running just `add-gitignore` gives you a nice multi-select interface from which you can choose what to ignore, and using the `--help` flag helps you out.
## Special Thanks
* [Joe Blau](https://github.com/joeblau) for [gitignore.io](https://gitignore.io).
* [Fabien Bernard](https://www.github.com/fabien0102) for the suggestion of a tool like this.
* [Sindre Sorhus](https://www.github.com/sindresorhus) for the open source tools that this uses ([ora](https://github.com/sindresorhus/ora), [meow](https://github.com/sindresorhus/meow)).I hope this makes your life easier.
Made with ❤️.