generates-gitignore

0.1.1 • Public • Published

Generates: Gitignore

A Generates generator that creates a customizeable .gitignore file

CLI usage

  1. Install generates-gitignore globally:
npm install -g generates-gitignore
  1. Run generates-gitignore:
generates-gitignore

Mixin usage

  1. Install generates-gitignore locally:
npm install --save generates-gitignore
  1. Pass generates-gitignore as a mixin:
import { Generator } from 'generates'
import GeneratesGitignore from 'generates-gitignore'
 
export default class GeneratesNodeModule extends Generator {
  constructor (data) {
    super(data, [GeneratesGitignore])
}

Options

A CLI argument with no flag allows you to choose a template for the .gitignore:

generates-gitignore node

Multiple templates can be specified separated by a space:

generates-gitignore node cypress

Templates

  1. base - (Default) Includes an OS-generated files section (.DS_Store).
  2. node - Includes an Application dependencies section (node_modules).
  3. ide - Includes an IDE files section (.vscode and .idea).
  4. cypress - Includes a Cypress section.

Readme

Keywords

none

Package Sidebar

Install

npm i generates-gitignore

Weekly Downloads

0

Version

0.1.1

License

ISC

Unpacked Size

6.49 kB

Total Files

9

Last publish

Collaborators

  • ianwalter