Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-common

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-common

Yeoman generator

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

generator-common Build Status

A Yeoman composable generator to scaffold out default app files for other generators

Usage

In the generator that would like to use this one, add the following code in a method that is in yeoman.generators.Base.extend:

  this.composeWith('common', {
    options: {}
  });

Using options:

  this.composeWith('common', {
    options: {
      'skip-messages': true,
      jshintrc: false,
      gitignore: false,
      editorconfig: true,
      gitattributes: true,
      'test-jshintrc': false
    }
  });

Example generator:

var yeoman = require('yeoman-generator');
module.exports = yeoman.generators.Base.extend({
  setupRoot: function () {
    this.composeWith('common', {
      options: {
        'skip-messages': true,
        jshintrc: false,
        gitignore: false,
        editorconfig: true,
        gitattributes: true,
        'test-jshintrc': true
      }
    });
  },

  doOtherThings: function () {
    this.copy('app');
  }
});

Options

skip-messages

Default: false Display the usage messages. Set to false for quieter output


editorconfig

Default: true

Set to true to create a .editorconfig file or false to skip it

gitattributes

Default: true

Set to true to create a .gitattributes file or false to skip it

gitignore

Default: true

Set to true to create a .gitignore file or false to skip it

jshintrc

Default: true

Set to true to create a .jshintrc file or false to skip it

test-jshintrc

Default: true

Set to true to create a test folder and a .jshintrc file in that folder. False does not create the folder or file

Keywords

FAQs

Package last updated on 09 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc