@infini-soft/kli v0.0.40
✨ 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
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago