27 lines
702 B
Markdown
27 lines
702 B
Markdown
# @mintel/cli
|
|
|
|
CLI tool for managing the Mintel monorepo and scaffolding new client websites.
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
pnpm install
|
|
```
|
|
|
|
## Commands
|
|
|
|
### `init <path>`
|
|
|
|
Initializes a new website project in the specified path (relative to the monorepo root).
|
|
|
|
```bash
|
|
pnpm --filter @mintel/cli start init apps/my-new-website
|
|
```
|
|
|
|
This command will:
|
|
1. Create the project directory.
|
|
2. Generate `package.json`, `tsconfig.json`, and `eslint.config.mjs` extending `@mintel` defaults.
|
|
3. Set up a localized Next.js structure (`src/app/[locale]`).
|
|
4. Configure `next-intl` middleware and request config.
|
|
5. Inject production-ready `Dockerfile`, `docker-compose.yml`, and Gitea Actions deployment workflows.
|