Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

generator-npm-init

caseyWebb78WTFPL1.5.1

npm init for yeoman

yeoman-generator, yeoman, npm, init, package, package.json

readme

generator-npm-init

Version Build Status Coverage States Dependency Status Peer Dependency Status Dev Dependency Status Downloads

Yeoman generator implementation of npm init. Useful for composition.

this.composeWith(require.resolve('generator-npm-init/app')/*, options*/)

Options

{
  // skip prompts
  'skip-name': false,
  'skip-description': false,
  'skip-version': false,
  'skip-main': false,
  'skip-test': false,
  'skip-repo': false,
  'skip-keywords': false,
  'skip-author': false,
  'skip-license': false,

  // supply alternative defaults
  name: '<%= destFolderName %>',
  version: '1.0.0',
  description: '',
  main: 'index.js',
  test: 'echo "Error: no test specified" && exit 1',
  repo: '',
  keywords: [],
  author: '',
  license: 'ISC',

  // configure run script defaults
  scripts: {
    start: 'node dist/index.js',
    build: 'webpack -p',
    watch: 'webpack-dev-server'
  }
}

changelog

1.5.1 (2019-08-16)

1.5.0 (2018-09-22)

Bug Fixes

  • Remove 'force-install' junk property (18cba9f), closes #68
  • Tweak prompts to mirror npm cli (7507df8), closes #68

Features

  • Add confirmation prompt and retries (57b66e1), closes #68
  • Intuit bugs and homepage from github info (npm cli parity) (d53dc7f)

1.4.1 (2018-07-20)

Bug Fixes

  • package: update yeoman-generator to version 3.0.0 (#65) (9bafd62)

1.4.0 (2017-08-04)

1.3.2 (2017-02-24)

1.3.1 (2016-12-29)

1.3.0 (2016-10-27)

1.2.3 (2016-09-19)

1.2.2 (2016-06-05)

1.2.1 (2016-05-09)

1.2.0 (2016-01-08)

1.1.0 (2016-01-08)

1.0.1 (2016-01-08)