Skip to content

Commit

Permalink
refactor: Dart format
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 committed Feb 23, 2024
1 parent b374765 commit bca92c1
Show file tree
Hide file tree
Showing 64 changed files with 471 additions and 934 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,27 @@ Tags: scoreboard, wrestling, scoring, bracket, mat, team fight, competition, tou

## Setup & Installation

Wrestling Scoreboard is a monorepo.
Therefor it uses [Melos](https://github.com/invertase/melos) to manage the project and dependencies.
All the commands can be found in the [melos.yaml](melos.yaml) file.

To install Melos, run the following command from your terminal:

```bash
flutter pub global activate melos
```

Next, at the root of your locally cloned repository bootstrap the projects dependencies:

```bash
melos bs
```

To format your code, call:
```bash
melos format
```

Please read the documentation for setting up the according components:
- [Server](wrestling_scoreboard_server/README.md)
- [Database](wrestling_scoreboard_server/database/README.md)
Expand Down
4 changes: 2 additions & 2 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ scripts:
description: Run `flutter analyze` for all packages.

format:
run: melos exec dart format . --fix
run: melos exec dart format . --fix -l 120
description: Run `dart format` for all packages.

format-check:
run: melos exec dart format . --set-exit-if-changed
run: melos exec dart format . --set-exit-if-changed -l 120
description: Run `dart format` checks for all packages.

dartdoc:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:wrestling_scoreboard_client/platform/html.dart' if (dart.library.html) 'dart:html'; //
import 'package:wrestling_scoreboard_client/platform/html.dart' if (dart.library.html) 'dart:html';

import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 24 additions & 54 deletions wrestling_scoreboard_client/lib/provider/data_provider.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bca92c1

Please sign in to comment.