Skip to content

Commit

Permalink
ci(mobile): update melos + all pubspec yml
Browse files Browse the repository at this point in the history
  • Loading branch information
harrytran998 committed May 9, 2024
1 parent 6eaae7c commit 15f36fe
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 19 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"connectrpc",
"consola",
"CRDT",
"cupertino",
"cyclop",
"dartz",
"Datasources",
"datetime",
"deploysentinel",
Expand All @@ -48,7 +51,9 @@
"favicons",
"fiboup",
"firebaseui",
"flushbar",
"fontaine",
"formz",
"Freemium",
"gapcursor",
"generatable",
Expand Down
33 changes: 33 additions & 0 deletions apps/mobile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,36 @@ We'll handle the generation of required files for 🚀 your onboarding!

8. Localization
Using this library to handle multi-languages. Follow this guide to understand and config languages files


##- How to run project


1. Install flutter + dart
2. Install proto + moon

```bash
# A version manager for all your favorite languages and tools. A unified toolchain.
curl -fsSL https://moonrepo.dev/install/proto.sh | bash
proto install bun
proto install rust
proto plugin add buf "source:https://raw.githubusercontent.com/stk0vrfl0w/proto-toml-plugins/main/plugins/buf.toml"
proto install buf
proto plugin add moon "source:https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml"
proto install moon
flutter pub get

```

3. Install `melos` to manage packages

```bash
dart pub global activate melos
export PATH="$PATH":"$HOME/.pub-cache/bin"
```

4. Run

```bash
moon run :test --query "language=dart" # Run test
```
24 changes: 16 additions & 8 deletions apps/mobile/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,23 @@ fileGroups:
- "pubspec.*"

tasks:
build:
command: "bun script/build.ts"
pub.get:
command: "flutter"
args: "pub get"
inputs:
- "@group(app)"
- "@group(sources)"
dev:
command: "vite"
- '@group(app)'
local: true

start:
command: "bun server/index.ts"
pub.outdated:
command: "melos"
args: "outdated"
inputs:
- '@group(app)'
local: true

test:
command: "melos"
args: "test"
inputs:
- '@group(app)'
local: true
8 changes: 0 additions & 8 deletions apps/mobile/packages/ddd_core/lib/dđ_core.dart

This file was deleted.

5 changes: 3 additions & 2 deletions apps/mobile/packages/ddd_core/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies:
another_flushbar: ^1.12.30
calendar_time: ^2.2.0
collection: ^1.17.1
cyclop: ^0.6.2
cyclop: ^0.7.0
cupertino_icons: ^1.0.2
dartz: ^0.10.1
dio: ^5.2.1+1
Expand All @@ -22,4 +22,5 @@ dependencies:
injectable: ^2.1.2

dev_dependencies:
test: ^1.24.0
flutter_test:
sdk: flutter
1 change: 0 additions & 1 deletion apps/mobile/packages/logger/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
4 changes: 4 additions & 0 deletions apps/mobile/packages/ui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ dependencies:
another_flushbar: ^1.12.30
get_it: ^7.7.0
injectable: ^2.1.2

dev_dependencies:
flutter_test:
sdk: flutter

0 comments on commit 15f36fe

Please sign in to comment.