generator-lob

2.0.0 • Public • Published

Generator

Lob's Yeoman generator for creating Node modules.

Installation

$ yarn install --global generator-lob

Usage

To generate a complete repository:

$ yo lob

To generate a portion of a repository, you may use a sub-generator.

Sub-Generators

Config yo lob:config

Continuous Integration yo lob:ci

Lint yo lob:lint

Node Version yo lob:node-version

Release yo lob:release

Test yo lob:test

Config

$ yo lob:config
  • Prompts for whether to generate a config directory
  • Generates a config/index.js file that reads an object of config variables from one of config/developments.js, config/production.js, config/staging.js, or config/test.js based on the NODE_ENV. Initializes each environment's config file to export an empty object.

Continuous Integration

$ yo lob:ci
  • Prompts for a CI platform (CircleCI or Travis) and Node version and composes a .yml file accordingly

Lint

$ yo lob:lint

Node Version

$ yo lob:node-version
  • Prompts for a node version and uses it in a .node-version file

Release

$ yo lob:release
  • Installs generate-changelog
  • Adds yarn scripts for release:patch, release:minor, and release:major

Test

$ yo lob:test

Extension

To learn more about building generators, read the Yeoman Guide to Authoring Generators. New sub-generators can be added in the generators/ folder and made available as a yo lob:SUB command through the index.js file. To modify the list of sub-generators that are run as part of the default yo lob command, modify the generators/index.js file.

Readme

Keywords

Package Sidebar

Install

npm i generator-lob

Weekly Downloads

2

Version

2.0.0

License

MIT

Unpacked Size

16.2 kB

Total Files

20

Last publish

Collaborators

  • pkamatlob
  • philthelobster
  • ngnasr1123_lob
  • jayteelob
  • erik.forsman-lob
  • jkleung11
  • tanya.sah
  • hunteryoakum
  • rdimouro7373
  • lobstertroy
  • joshnkoy
  • michel_lob
  • haroutrs
  • kjones_lob
  • eamon-barisone
  • nathanielwaldschmidtlob
  • zach.reed
  • richpodrazalob
  • kencrim
  • jorgelob
  • nick-place-lob
  • andrew.guterres
  • hanqingchen-lob
  • juan.frissdekereki
  • mmorgan-lob
  • karankwatra-lob
  • joey-bates-lob
  • luke.birdeau
  • mg-lob
  • vmangwani
  • sachinlob
  • nick.perri
  • siddharthpant92
  • bethqiang
  • kplob
  • samkitsheth95
  • erin-doyle
  • jfdavidson
  • meussdorffer
  • shannamurry
  • amaan_lob
  • team.platform.lob.com
  • elijah-lob
  • jlowsley-lob
  • barnabygo
  • james.cho
  • douglaje
  • lob-owner
  • graeme.lowe.lob