ignore-cmd
v0.0.4
Published
SHELL SCRIPT. Add paths to .gitignore .npmignore from CLI
Downloads
2
Maintainers
Readme
PROJECT STATUS: Works. Linux only. API Could change.
CURRENT VERSION: 0.0.4
FOLLOWS SEMVER: Not yet.
DEFAULT BRANCH: develop
ignore-cmd
SHELL SCRIPT
Add paths to .gitignore .npmignore from CLI.
Creates the ignore file if not exists (e.g. creates .gitignore
).
Currently only adds items.
Install
$ npm install -g ignore-cmd
Usage
Usage: ignore <flag> <path> [...paths]
flag -g add to .gitignore
-n add to .npmignore
-b add to both
path The path you want to ignore (e.g. /node_modules/)
paths Ignore multiple paths
Examples
Ignore node_modules/ in (g)it:
$ ignore -g node_modules/
Ignore multiple paths in (b)oth gitignore and npmignore:
$ ignore -b drafts/ playground/ todo.txt