@shellui/cli
v0.0.1
Published
ShellUI - a lightweight microfrontend shell to ship apps faster
Maintainers
Readme
ShellUI
A lightweight microfrontend shell to ship apps faster.
ShellUI is a CLI tool that spins up a React-based microfrontend shell. It is powered by Vite and designed to be easily configurable.
Features
- 🚀 Fast: Built on top of Vite for instant server start.
- ⚛️ React-based: The shell is a React application.
- ⚙️ Configurable: Loads configuration from
shellui.jsonin your project root. - 🔌 Injectable Config: Configuration is automatically injected into the shell application.
Installation
Install ShellUI globally or locally:
npm install -g shelluiOr install it as a dev dependency in your project:
npm install --save-dev shelluiUsage
After installation, you can use the shellui command directly:
npx shellui start [path/to/project]Or if installed globally:
shellui start [path/to/project]You can also use it via npm scripts in your package.json:
{
"scripts": {
"start": "shellui start",
"build": "shellui build"
}
}By default, it looks for configuration in the current directory.
Configuration
ShellUI looks for a shellui.json file in your project root.
Example shellui.json:
{
"port": 4000
}- port: The port number to start the server on (default:
3000).
Development
This repository contains the core logic for the shell.
bin/shellui.js: The CLI entry point.src/cli.js: Main CLI logic usingcacandvite.src/app.jsx: The shell's React application entry point.
License
MIT
