0.0.4 • Published 7 years ago

gitignore-clean v0.0.4

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

gitignore-clean

Cleans the files listed in your .gitignore

Please this repo if you found it useful

Features

  • Choose files to ignore

Installation

npm install --save gitignore-clean

Dependencies

Usage

Assume you have the following .gitignore

node_modules/
dist/
index.js

The following will clean everything but node_modules/

import gitignoreClean from 'gitignore-clean';
import projPath from 'proj-path';
import path from 'path';

export default async function clean() {
  await gitignoreClean(path.resolve(projPath(), '.gitignore'), [ 'node_modules/' ]);
}

Support

Submit an issue

Buy Me Coffee

A ridiculous amount of coffee was consumed in the process of building this project.

Add some fuel if you'd like to keep me going!

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License

Jam Risser © 2017

Credits

Changelog

0.0.1 (2017-06-21)

  • Initial release