Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

generator-npm-init

1.5.0 • Public • Published

generator-npm-init

Version Build Status Coverage States Dependency Status Peer Dependency Status Dev Dependency Status Greenkeeper 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'
  }
}

install

npm i generator-npm-init

Downloadsweekly downloads

132

version

1.5.0

license

WTFPL

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability