0.2.18 • Published 9 years ago

generator-curio v0.2.18

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

Curió Generator

     ______              _   _   
    / ____/__  __ _____ (_)_//_ 
   / /    / / / // ___// // __ \
  / /___ / /_/ // /   / // /_/ /
  \____/ \__,_//_/   /_/ \____/                                

A Yeoman generator to scaffold a Curió framework application.

Instalation

npm install -g yo
npm install -g generator-curio

Generating a new Curió Application

mkdir app
cd app
yo curio

It generates the below structure:

├── srv .......................................... backend dev files
│   ├── mdl ...................................... domain model files
│   │   └── model.uml
│   ├── rel ...................................... report files
│   │   └── sps .................................. StyleVision project files
│   │   └── xslt ................................. generated xslt files
│   ├── sql ...................................... sql scripts
│   │   ├── deploy ............................... deploy scripts
│   │   └── alter ................................ db evolution scritps
│   └── src ...................................... backend source code
│       ├── ngu .................................. business class units
│       │   └── nguVersaoBanco.pas   
│       ├── ucu .................................. use case units
│       │   └── ucuAppMain.pas
│       ├── lib
│       │   └── acuRegisterModelMappings.pas ..... model-to-code mapping
│       ├── app.dpr .............................. delphi main project
│       ├── svuApp.pas
│       ├── svuApp.dfm
│       ├── mainmenu.xml ......................... win32 GUI menu design
│       └── VersionInfo.rc .......................
└── cli .......................................... front-end dev files
    └── win ...................................... front-end win32 source code
        ├── itu .................................. interface form units
        │   └── ituAppMain.pas
        └── App.dpk .............................. delphi win32 main project 

Generating form interfaces (it's)

yo curio:itu CadastrarPessoa

####Generated files:

    └── cli
        └── win
            └── itu
                ├── ituCadastrarPessoa.pas 
                └── ituCadastrarPessoa.dfm

It also includes the new form as a dependency in your dpk file (and dproj, if exists):

contains
    ituCadastrarPessoa in 'itu\ituCadastrarPessoa.pas' {itCadastrarPessoa},
    ...

Generating reports (rit's)

yo curio:report RelatorioPessoa

####Generated files:

    └── cli
    │   └── win
    │       └── itu
    │           ├── ituRelatorioPessoa.pas
    │           └── ituRelatorioPessoa.dfm
    └── srv 
        └── rel
            └── sps
                └── RelatorioPessoa.sps                

Generating search units (suc's)

yo curio:sucu Pessoa

####Generated files:

    ├── cli
    │   └── win
    │       └── siu
    │           ├── siuPessoa.pas
    │           └── siuPessoa.dfm
    │  
    └── srv
        └── src
            └── sucu
                └── sucuPessoa.pas

Generating CRUD units (suc's)

yo curio:crud CadastroLivro

? Qual o nome da classe (sem ng) do CRUD? Livro
? Qual o código da GUI? 908
? Onde deseja gerar a itu? cli/win/itu
? Qual o código do Caso de Uso? 2370
? Onde deseja gerar a ucu? srv/src/ucu

####Generated files:

    ├── cli
    │   └── win
    │       └── itu
    │           ├── ituCadastroLivro.pas
    │           └── ituCadastroLivro.dfm
    │  
    └── srv
        └── src
            └── ucu
                └── ucuCadastroLivro.pas
0.2.18

9 years ago

0.2.17

10 years ago

0.2.16

10 years ago

0.2.15

10 years ago

0.2.14

10 years ago

0.2.13

10 years ago

0.2.12

10 years ago

0.2.11

10 years ago

0.2.10

10 years ago

0.2.9

10 years ago

0.2.7

10 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago