0.0.37 • Published 3 years ago

generator-studio v0.0.37

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

#Studio Template Generator

##Getting started

install Yeoman and generator-studio globally

npm install yo -g
npm install generator-studio -g

##How it works

To create the project template run the following

##studio

yo studio {AppName}

Where {AppName} is the name of the application

###Flags

--is-story  // specifies that the project 
            // will include storybook libs 
            // so it will copy relevant files

--src-dir {directory}   // in case the src files will 
                        // need to sit on a different 
                        // directory specifies the directory

--exclude-public    // flag if the public folder 
                    // should be excluded when 
                    // generating the project

##Controller To create a controller run the following

yo studio:ctrl {CtrlName}

Where {CtrlName} is the name of the controller

##Page To create a page run the following

yo studio:page {PageName}

Where {PageName} is the name of the page

###Flags

--add-reducer // this flag will also create a file Reducer.ts

##UI Component To create a ui component run the following

yo studio:ui {UiName}

Where {UiName} is the name of the ui component

###Flags

--folder {folderName}   // specify a folder name 
                        // under under components for files to be generated
                        // default value "ui"

##Presentation Component (Functional component) To create a ui component run the following

yo studio:pr {PrName}

Where {PrName} is the name of the functional component

###Flags

--folder {folderName}   // specify a folder name 
                        // under under components for files to be generated
                        // default value "ui"

##Higher Order Component To create a higher order component run the following

yo studio:hoc {PrName}

Where {PrName} is the name of the functional component

###Flags

--folder {folderName}   // specify a folder name 
                        // under under components for files to be generated
                        // default value "ui"

##Model Script To create a model scafolding template run the following

yo studio:model {ModelName}

Where {ModelName} is the name of the model

0.0.37

3 years ago

0.0.36

3 years ago

0.0.34

4 years ago

0.0.35

4 years ago

0.0.31

4 years ago

0.0.32

4 years ago

0.0.33

4 years ago

0.0.30

4 years ago

0.0.29

4 years ago

0.0.27

4 years ago

0.0.28

4 years ago

0.0.26

4 years ago

0.0.25

4 years ago

0.0.24

4 years ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago