create-esmx
Version:
A scaffold tool for creating Esmx projects
86 lines (60 loc) ⢠1.99 kB
Markdown
# {{projectName}}
An Esmx project demonstrating Shared Modules solution for micro-frontend architecture.
## š¦ Tech Stack
- **Framework**: [Esmx](https://esmx.dev) - Next generation micro-frontend framework based on native ESM
- **Solution Focus**: Shared Modules for multi-framework environments
- **Build Tool**: Rspack
- **Type Checking**: TypeScript
## šÆ Core Features
- **Module Sharing**: Share modules across different framework versions
- **Zero Overhead**: Native ESM-based sharing with no runtime cost
- **Version Isolation**: Safe module sharing between framework versions
- **SSR Compatible**: Full server-side rendering support with shared modules
## š 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/
ā āāā entry.client.ts # Client-side entry
ā āāā entry.node.ts # Node.js environment entry point
ā āāā entry.server.ts # Server-side rendering functions
ā āāā vue/
ā ā āāā index.ts # Vue 3 shared modules
ā āāā vue2/
ā āāā index.ts # Vue 2 shared modules
āāā package.json
āāā tsconfig.json
āāā README.md
```
## š§ Configuration Details
- `entry.client.ts` - Responsible for client-side shared module consistency checking
- `entry.node.ts` - Handles shared module configuration and scope mapping
- `entry.server.ts` - Manages shared module rendering and HTML generation
## š Additional Resources
- [Esmx Official Documentation](https://esmx.dev)
- [TypeScript Documentation](https://www.typescriptlang.org)