@sugerio/miso-cli
v0.0.9
Published
`miso` is a CLI tool designed for Salesforce LWC (Lightning Web Components) development, integrating modern frontend technologies like React and Vite to help developers quickly initialize, develop, and build LWC projects.
Downloads
332
Readme
miso Scaffolding
miso is a CLI tool designed for Salesforce LWC (Lightning Web Components) development, integrating modern frontend technologies like React and Vite to help developers quickly initialize, develop, and build LWC projects.
Installation
It is recommended to install globally using pnpm, npm, or yarn:
npm install -g @sugerio/miso-cli
# or
pnpm add -g @sugerio/miso-cli
# or
yarn global add @sugerio/miso-cliQuick Start
Initialize miso configuration in your Salesforce project root directory:
miso init- This will generate a
.misodirectory and amiso.config.mjsconfiguration file. - You can customize the React sub-application directory name.
- This will generate a
Log in to Salesforce:
miso login [alias]- The
aliasparameter specifies the organization alias.
- The
Start the development server:
miso dev- Launches a local development environment with hot reloading.
Build for production:
miso build- Outputs the build artifacts to the
force-app/main/default/lwcdirectory.
- Outputs the build artifacts to the
Supported Commands
miso init
Initializes miso configuration and template files, with support for overwriting existing configurations.miso login [alias]
Logs in to a Salesforce organization and saves session information.miso dev
Starts a local development server, automatically proxying the/aurainterface.miso build
Builds production-ready code, outputting to the Salesforce LWC directory.
Directory Structure After Initialization
.miso/
├── index.html
├── App.tsx
├── main.tsx
├── eslint.config.js
├── public/
└── components/
miso.config.mjsDependencies
- Node.js 16+
- Vite
- React
- Salesforce CLI (recommended)
Development Recommendations
- It is recommended to use alongside the official Salesforce CLI tools.
- Supports TypeScript; see
tsconfig.jsonfor type configurations. - You can customize the template content in the
.misodirectory according to your needs.
If you need badges, contribution guidelines, FAQs, or any other additions, please let me know!
