generator-glu

0.0.2 • Public • Published

generator-glu

Yeoman generator

Getting Started

What is Yeoman?

Trick question. It's not a thing. It's this guy:

Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.

Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.

npm install -g yo

Yeoman Generators

Yeoman travels light. He didn't pack any generators when he moved in. You can think of a generator like a plug-in. You get to choose what type of application you wish to create, such as a Backbone application or even a Chrome extension.

To install generator-glu from npm, run:

npm install -g generator-glu

App generator

This command will bootstrap the current directory for GLU project...

yo glu

Subgenerators

Note: If you didn't use yo glu command to bootstrap your project, you have to place the .yo-rc.json file with the following content

{
    "generator-glu": {}
}

in the project root directory, in order for subgenerators to work properly.

Action

yo glu:action name

Executing the command will create the following files:

   create src/actions/NameActions.js
   create src/actions/NameActionCreator.js

Api

yo glu:api name

Executing the command will create the following files:

   create src/apis/NameApi.js

Component

yo glu:component name

Executing the command will create the following files:

   create src/components/name/NameView.js
   create src/components/name/NameViewController.js
   create src/components/name/NameViewEvents.js

Component with React view (React Component)

yo glu:reactcomponent name

Executing the command will create the following files:

   create src/components/name/NameView.js
   create src/components/name/NameViewController.js
   create src/components/name/NameViewEvents.js
   create src/components/name/NameViewReact.js

Page

yo glu:page name

Executing the command will create the following files:

   create src/pages/name/NameView.js
   create src/pages/name/NameViewController.js

Store

yo glu:store name

Executing the command will create the following files:

   create src/stores/NameStore.js

View

yo glu:view name

Executing the command will create the following files:

   create NameView.js

React view

yo glu:reactview name

Executing the command will create the following files:

   create NameViewReact.js

View controller

yo glu:viewcontroller name

Executing the command will create the following files:

   create NameViewController.js

View events

yo glu:viewevents name

Executing the command will create the following files:

   create NameViewEvents.js

License

MIT

generator-glu

Readme

Keywords

Package Sidebar

Install

npm i generator-glu

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • adnanh