generator-bsync

npm init for yeoman

Usage no npm install needed!

<script type="module">
  import generatorBsync from 'https://cdn.skypack.dev/generator-bsync';
</script>

README

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'
  }
}