0.5.13 • Published 3 years ago

uteam v0.5.13

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

The uteam CLI Command Line Interface is to help developers to automate the creation and deletion React-Redux & Node.js application modules and packages.

The application are base on the @uteamjs/react frontend and @uteamjs/node backend framework.

uteam CLI generate standard JSX Code from YAML definition.

Installation

$ npm install -g uteam

Command

uteam CLI allows you to execute command with different options as parameters

$ uteam <command> [--options <params> …]

Help

$ uteam [help]

The screen shows the following message:

uteam - CLI

  Create and generate @uteamjs applications from YAML definition.               
  Copyright © 2021 U Team, Inc.                                                 
  Please visit https://u.team for details.                                      

Usage

  $ uteam <command> [--<options> [string]] 

<command>

  create     Create Application or Packages             
  remove     Remove Packages                           
  generate   Generate React application from YAML       
  template   Template --update <name> to latest version 

<options>
  -a, --application string   Application <name> to be generated.                                           

  -p, --packages string[]    Package <names...> added to application.                                      

  -g, --generate string      Generate code after adding packages.                                          

  -t, --template string      Tempalate <path> used to create applications or packages.                      

                             Default @uteamjs/template/react-application                                           

  -h, --help                 Display this usage guide.                                                     
                             <YAML Generation>                                                        

  -y, --yaml string          YAML definition file, default app.yaml.                                       

  --component string         Component template                                                            

  --initComponent string     Init template                                                                 

  --exportComponent string   Export template                                                               

  --indexfile string         Index File template                                                           

  --update string            Upate template name                                                           

Examples

  1. Create application         $ uteam create --application my-cms          
  2. Create packages            $ cd ...your/application                     
                                $ uteam create --package my-package package2 
  3. Generate application       $ uteam generate                             
  -  with specified yaml file   $ uteam generate --yaml myApp 

Options

The options are in form of --name \ or -n \ where -n is the short form of --name

Create

Create an application and/or packages with yaml code generation.

$ uteam create < --application <name> | --packages <name 1> <name 2> … >
[--generate]
  • --application: Create @uteamjs/react application with \. Application is created from @uteamjs/template/react-application by default.
  • --packages <name 1> …: Create packages under \ with \<name 1>, \<name 2> ...
  • --generate: Automatically run uteam generate after each package created.

Create with template

Create either application or packages from template \

$ uteam create < --application <name> | --packages <name1> <name 2> > [--template <name>]
  • --template \: The system will search from the user specified template first. If not found, it will use the @uteamjs/template/\

Remove

Remove packages from applications.

$ uteam remove [--packages <name 1> <name 2> …]

ONLY --packages option is allowed. If you want to remove the application, just delete the application folder from the file system.

Generate

Generate complete React JSX packages from YAML. The generation options are defined in the header section of the YAML file. Run the following command under each package folder.

$ uteam generate [--yaml <file>]
  • --yaml \: The YAML file used for code generation.

Template

Since @uteamjs/template is installed under the uteam global location, it is hard to navigate to the installed folder to run npm to update the template. uteam provides the following command to update the template to the latest version.

$ uteam template --update

License

MIT - uteam installed locally for the create, update and delete of application and packages.

SasS - The Code Generation is a provided by the cli.u.team platform.

0.5.12

3 years ago

0.5.13

3 years ago

0.5.10

3 years ago

0.5.11

3 years ago

0.5.8

3 years ago

0.5.7

3 years ago

0.5.9

3 years ago

0.5.4

3 years ago

0.5.3

3 years ago

0.5.6

3 years ago

0.5.5

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago