2.1.4 • Published 3 years ago

lazy-generator v2.1.4

Weekly downloads
60
License
MIT
Repository
-
Last release
3 years ago

Lazy Generator

Get up and running

$ npm install -g lazy-generator

Or clone this project to your local then run

$ git clone git@github.com:mrhieu/generator.git && cd generator
$ npm install -g
$ npm link

Usage

$ generator <framework> <type> <name> [dest]

Options:

-h, --help  output usage information

framework 'angularjs' or 'ionicReact'

type  'component' or 'directive' or 'react'

name  must be in camelCase

dest  by default it is `src/app/shared/components/` or `src/app/shared/reactWrappers/`

Example

AngularJS Component

$ generator angularjs component datePick

This will create a new folder src/app/shared/components/datePick

React component in Angularjs

$ generator angularjs react demoThisThat

This will create this folder structure

src/app/dashboard
    |--reactComponents
        |--demoThisThat
            |--demoThisThat.jsx
            |--demoThisThat.scss
src/app/shared
    |--reactWrappers
        |--demoThisThat
            |--demoThisThatWrapper.component.js
            |--demoThisThatWrapper.ctrl.js

To use the component in the View

  ...
  <demo-this-that-wrapper></demo-this-that-wrapper>

Ionic React Component

$ generator ionicReact component demoThisThat
2.1.4

3 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.0

6 years ago

0.0.1

6 years ago