create-esmx
Version:
A scaffold tool for creating Esmx projects
75 lines (51 loc) ⢠1.42 kB
Markdown
# {{projectName}}
An Esmx project for Shared Packages.
## š¦ Tech Stack
- **Framework**: [Esmx](https://esmnext.com) - Next generation micro-frontend framework based on native ESM
- **Package Type**: Shared Packages
- **Build Tool**: Rspack
- **Type Checking**: TypeScript
## š Quick Start
### Install Dependencies
```bash
pnpm install
```
### Development Environment
```bash
pnpm dev
```
Visit http://localhost:3000 to see the development environment.
### Production Build
```bash
pnpm build
```
### Start Production Server
```bash
pnpm start
```
### Type Generation
```bash
pnpm build:type
```
### Type Checking
```bash
pnpm lint:type
```
## š 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
āāā package.json
āāā tsconfig.json
āāā README.md
```
## š§ Configuration Details
- `entry.client.ts` - Responsible for client-side interaction and dynamic updates
- `entry.node.ts` - Handles server-side rendering and development server configuration
- `entry.server.ts` - Manages server-side rendering process and HTML generation
## š Additional Resources
- [Esmx Official Documentation](https://esmnext.com)
- [TypeScript Documentation](https://www.typescriptlang.org)