Skip to content

george-aidonidis/generator-gemod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

generator-gemod

Build Status codecov NPM version

Scaffold out a node module

Generate files with sane defaults to reduce boilerplate

gif

Install

$ yarn global add yo generator-gemod

Usage

With yo:

$ yo gemod

There are multiple command-line options available:

$ yo gemod --help

  Usage:
    yo gemod [options]

  Options:
    --help          # Print the generator's options and usage
    --org           # Publish to a GitHub organization account
    --skip-cache    # Do not remember prompt answers                      Default: false
    --skip-install  # Do not automatically install dependencies           Default: false
    --coverage      # Add jest's code coverage (uploads to codecov.io)    Default: false
    --deploy        # Adds a step to travis to deploy the module to npm   Default: false
		    # (needs `$NPM_TOKEN` env variable on travis-ci)

Development tools

  • Test things with jest
  • Lint code with xo and prettier
  • Run linting before a git commit
  • Run tests before a git push

Structure

The generated files will look like this:

β”œβ”€β”€ .git
β”œβ”€β”€ .gitignore
β”œβ”€β”€ .npmrc
β”œβ”€β”€ .prettierrc
β”œβ”€β”€ .travis.yml
β”œβ”€β”€ .travis.yml
β”œβ”€β”€ .yo-rc.json
β”œβ”€β”€ node_modules
β”œβ”€β”€ index.js
β”œβ”€β”€ index.test.js
β”œβ”€β”€ license
β”œβ”€β”€ package.json
β”œβ”€β”€ readme.md
└── yarn.lock

Contributing

  1. Fork it (https://github.com/George-Aidonidis/generator-gemod/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

License

MIT Β©

About

Boilerplate to start creating a node module πŸš€

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published