0.0.40 • Published 2 years ago

@infini-soft/kli v0.0.40

Weekly downloads
-
License
INFINISOFT
Repository
github
Last release
2 years ago

✨ Micro Front-End Command Line Interface - Module Federation - React 18 - Mono Repo

  • Module Federation
    • Strongly typed
  • Federated Components
    • Create / Build / Deploy / Use / Remove
  • Typescrcipt / Css / Less
  • Monorepo
  • Yarn workspace
  • React 18 / Webpack 5 boilerplate

🔥 Usage - Without installing

Creates a new repo from git template using cli and npx.

$ npx @infini-soft/kli mono create myrepo

📦 Install

$ yarn global add @infini-soft/kli
or
$ npm install @infini-soft/kli -g

🔨 Usage

$ kli --help

Kitchen Line Interface v0.0.38
Powered 🚀 by Infinisoft      


Usage
$ kli <commands> <subcommands> [arguments] [--options]

options
--debug                     - Verbose mode
--help                      - Usage
--version                   - Version
--dry-run                   - Simulate the execution without changing anything
--skeleton                  - Console log json skeleton for the command input
--input <json file>         - Customized json skeleton for input
--tag <argument_tag>        - Scoped execution. Execute only if object infinisoft.tag in package.json equals argument_tag


commands      subcommands     arguments         descriptions
-----------------------------------------------------------------------------------------------------
mono          create          <target>          - Create new monorepo to <target> folder.

component     create          <json input>      - Create new federated component
              build                             - Build component dev
                              [--prod]          - Build component prod
                              [--watch]         - Watch mode, rebuild code (without types)
                              [--types]         - Type definition build, can be combined with --watch mode
                              [--deploy]        - Deploy after build, if running in watch mode, deploys every build

              deploy                            - Deploy component on cloud (No build)
              use             <name>            - Add module to container
              remove          <name>            - removes module from container


library       create          <json input>      - Create new federated library
                              [--no-mf]         - Create new library without module federation
              build                             - Build library dev
                              [--prod]          - Build library prod
              deploy                            - Deploy library on cloud
              use             <name>            - Add module to container
              remove          <name>            - removes module from container

config        update                            Copies all files from <root>/dev/config into current folder.

task                                            Tasks are javascript files created under <root>/dev/tasks.
                                                These tasks are meant to be executed in batch by lerna in each package context.
              run             <task>            - Run a javascript task
              create          <task>            - Create a javascript task
              remove          <task>            - delete a javascript task

$

Examples

Create new mono repo

$ kli mono create my-new-repo

Change parameters within skeleton.json then run command below.

$ kli mono create skeleton.json

Create new federated react component

$ kli component create --skeleton

Component sample json input skeleton
{ name: 'appname', component: 'ButtonA', port: 8088 }

Use our test federated component Run following command, it will configure test1 hosted component on our registry. Without any package installation, you will be able to use it.

$ kli component use test1

Stay tuned

Alot more to come soon

Powered 🚀 by Infinisoft Inc. Wanna cook the future? Come in the kitchen https://www.kitchen.infini-soft.com

0.0.40

2 years ago

0.0.38

2 years ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.33

2 years ago

0.0.34

2 years ago

0.0.35

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.4-canary.12

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.2-canary.10

2 years ago

0.0.2-alpha.1

2 years ago

0.0.2-canary.8

2 years ago

0.0.1-canary.3

2 years ago

0.0.1-canary.20

2 years ago

0.0.1-canary.19

2 years ago