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: about 1 month 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 (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-10T15:09:00.000Z (about 1 year ago)
- Last Synced: 2025-07-22T19:31:34.466Z (11 months ago)
- Topics: brick, cli, dart, mason, melos
- Language: Dart
- Homepage: https://brickhub.dev/bricks/melos
- Size: 19.5 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.