UNPKG

create-esmx

Version:

A scaffold tool for creating Esmx projects

81 lines (57 loc) • 1.79 kB
# {{projectName}} An Esmx project with Vue 3 and Client-Side Rendering. ## šŸ“¦ Tech Stack - **Framework**: [Esmx](https://esmx.dev) - Next generation micro-frontend framework based on native ESM - **UI Framework**: Vue 3 - **Build Tool**: Rspack - **Type Checking**: TypeScript - **Rendering Mode**: Client-Side Rendering (CSR) ## šŸš€ Quick Start ### Install Dependencies ```bash {{installCommand}} ``` ### Development Environment ```bash {{devCommand}} ``` Visit http://localhost:3000 to see the development environment. ### Production Build ```bash {{buildCommand}} ``` ### Start Production Server ```bash {{startCommand}} ``` ### Type Generation ```bash {{buildTypeCommand}} ``` ### Type Checking ```bash {{lintTypeCommand}} ``` ## šŸ“ Project Structure ``` {{projectName}}/ ā”œā”€ā”€ src/ │ ā”œā”€ā”€ app.vue # Main application component with Esmx and Vue logos │ ā”œā”€ā”€ components/ # UI components │ │ └── hello-world.vue # Example component with counter functionality │ ā”œā”€ā”€ create-app.ts # Vue instance creation │ ā”œā”€ā”€ entry.client.ts # Client-side entry │ ā”œā”€ā”€ entry.node.ts # Node.js environment entry point │ └── entry.server.ts # CSR HTML shell (no SSR) ā”œā”€ā”€ package.json ā”œā”€ā”€ tsconfig.json └── README.md ``` ## šŸ”§ Configuration Details - `entry.client.ts` - Responsible for client-side interaction and dynamic updates - `entry.node.ts` - Handles development environment setup and tooling - `entry.server.ts` - Generates the HTML shell for CSR (no SSR) ## šŸ“š Additional Resources - [Esmx Official Documentation](https://esmx.dev) - [Vue Documentation](https://vuejs.org) - [TypeScript Documentation](https://www.typescriptlang.org)