Skip to content

Commit

Permalink
Set up melos
Browse files Browse the repository at this point in the history
  • Loading branch information
halildurmus committed Jul 24, 2024
1 parent 2a53dc9 commit 8a87195
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
**/.packages

# IntelliJ related files.
*.iml
**/.idea/

# Visual Studio Code related files.
Expand Down
3 changes: 1 addition & 2 deletions examples/explorer/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ dependencies:
url: https://github.com/google/flutter-desktop-embedding.git
path: plugins/menubar
path_provider: ^2.1.3
win32:
path: ../../packages/win32
win32: ^5.5.1

dev_dependencies:
lints: ^4.0.0
Expand Down
4 changes: 4 additions & 0 deletions examples/explorer/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# melos_managed_dependency_overrides: win32
dependency_overrides:
win32:
path: ..\\..\\packages\\win32
3 changes: 1 addition & 2 deletions examples/service_manager_cli/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ environment:

dependencies:
ffi: ^2.1.2
win32:
path: ../../packages/win32
win32: ^5.5.1

dev_dependencies:
lints: ^4.0.0
Expand Down
4 changes: 4 additions & 0 deletions examples/service_manager_cli/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# melos_managed_dependency_overrides: win32
dependency_overrides:
win32:
path: ..\\..\\packages\\win32
3 changes: 1 addition & 2 deletions examples/task_manager/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ dependencies:
ffi: ^2.1.2
flutter:
sdk: flutter
win32:
path: ../../packages/win32
win32: ^5.5.1

dev_dependencies:
flutter_lints: ^4.0.0
Expand Down
4 changes: 4 additions & 0 deletions examples/task_manager/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# melos_managed_dependency_overrides: win32
dependency_overrides:
win32:
path: ..\\..\\packages\\win32
15 changes: 15 additions & 0 deletions melos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: win32
repository: https://github.com/halildurmus/win32

packages:
- packages/*
- examples/*

command:
version:
releaseUrl: true

scripts:
generate:
run: tools\generate --no-test
description: Build all generated files for package:win32.
4 changes: 4 additions & 0 deletions packages/generator/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# melos_managed_dependency_overrides: win32
dependency_overrides:
win32:
path: ..\\win32
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ dev_dependencies:
args: ^2.5.0
ffi: ^2.1.2
lints: ^4.0.0
melos: ^6.1.0
win32:
path: packages/win32

0 comments on commit 8a87195

Please sign in to comment.