Class: NamedBase

yo-utils/lib/base. NamedBase

new NamedBase()

Source:
Example
var yoUtils = require('yo-utils');

var Generator = yoUtils.NamedBase.extend({

  constructor: function() {
    yoUtils.NamedBase.apply(this, arguments);
  }

});

module.exports = Generator;

Extends

Members

appname :String

The generated app's name, slugified and humanized. Either the name listed in bower.json is used or the basename of the present working directory.

Type:
  • String
Inherited From:
Source:
Example
// My Awesome Webpage
this.appname === 'my-awesome-webpage'

cameledName :String

The camelCased name argument

Type:
  • String
Inherited From:
Source:
Example
// yo generator some-thing
this.cameledName === 'someThing'

classedName :String

The Classed name argument

Type:
  • String
Inherited From:
Source:
Example
// yo generator thing
this.classedName === 'Thing'

pluralizedName :String

The pluralized name argument

Type:
  • String
Inherited From:
Source:
Example
// yo generator thing
this.pluralizedName === 'things'

scriptAppName :String

The generated app's script name, camel cased and suffixed with App.

Type:
  • String
Inherited From:
Source:
Example
// My Todo List
this.scriptAppName === 'myTodoListApp'