@junojs/cli
v0.4.0
Published
CLI tool for JunoJS scaffolding and management
Maintainers
Readme
@junojs/cli
Providing the lightning-fast command-line interface for JunoJS, the AI-native reactive engine. Scaffold projects, generate components, and manage your full-stack development workflow with ease.
✨ Features
- 🚀 Instant Scaffolding: Create a new, pre-configured JunoJS project in seconds.
- 🏗️ Smart Generators: Quickly spin up components and services with boilerplate-free code.
- 📦 Manifest System: Auto-discovery of project structure for optimized builds.
- ⚡ Dev & Build Pipeline: Integrated support for Vite-powered dev server and production builds with Static Site Generation (SSG).
🚀 Installation
Install the CLI globally to access the juno command anywhere:
npm install -g @junojs/cli🛠️ Usage
🆕 Create a New Project
Initialize a fresh JunoJS workspace with all base dependencies:
juno new my-awesome-app
cd my-awesome-app
npm install
juno dev🏗️ Generators
Speed up your development by generating boilerplate for UI components or business logic services.
Generate a Component
Creates a .ts logic file and a .html template in src/components.
juno generate component user-profile
# Shortcut
juno g c user-profileGenerate a Service
Creates a singleton service class in src/services.
juno generate service auth
# Shortcut
juno g s auth⚡ Development & Production
juno dev: Starts the Vite development server.juno build: Compiles your application and runs the Static Site Generation (SSG) builder.juno preview: Serves your production build locally for final verification.juno build:static: Runs only the Static Site Generation process.
📋 Manifest Discovery
Generate or update the junojs.manifest.json file which tracks all components and services in your project:
juno manifest📜 License
MIT © JunoJS Team
