https://github.com/albinpk/melos_brick
A mason brick for creating melos project structure
https://github.com/albinpk/melos_brick
brick cli dart mason melos
Last synced: 3 months ago
JSON representation
A mason brick for creating melos project structure
- Host: GitHub
- URL: https://github.com/albinpk/melos_brick
- Owner: albinpk
- License: mit
- Created: 2024-11-11T16:11:08.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-11-14T14:10:22.000Z (7 months ago)
- Last Synced: 2025-01-27T15:45:56.678Z (5 months ago)
- Topics: brick, cli, dart, mason, melos
- Language: Dart
- Homepage: https://brickhub.dev/bricks/melos
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# melos
[](https://github.com/felangel/mason)
This Mason brick bootstraps a Melos project structure, supporting both monorepos and poly-repositories. Use this brick to quickly set up a multi-package workspace for your Dart and Flutter projects.
## Variables
| Variable | Type | Description | Default |
| ---------- | ------- | --------------------------- | ---------------------- |
| `name` | String | Your project name | _(Prompted)_ |
| `packages` | Array | List of packages to include | `["packages", "apps"]` |
| `isMono` | Boolean | Is this a monorepo? | `true` |### Variable Details
- **`name`**: The name of your project.
- **`packages`**: An array specifying the directories for your packages. Common directories include `"packages"` for reusable packages and `"apps"` for end-user applications.
- **`isMono`**: Set this to `true` if creating a monorepo structure, or `false` for a poly-repository setup.## Usage
1. **Install Mason** (if you haven’t already):
```bash
dart pub global activate mason_cli
```2. **Add the Brick**:
```bash
mason add melos -g
```3. **Generate the Project**:
Run the following command and follow the prompts to customize your project:
```bash
mason make melos
```## Notes
- This brick is helpful for initializing Melos projects with a custom directory structure.
- You may want to customize the resulting workspace in `melos.yaml` based on your project’s requirements.