Browse Source

tool: use melos

pull/336/head
Nikolas Rimikis 2 years ago
parent
commit
af6ddb3615
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 6
      .gitignore
  2. 13
      melos.yaml
  3. 10
      packages/app/pubspec.lock
  4. 20
      packages/app/pubspec.yaml
  5. 27
      packages/app/pubspec_overrides.yaml
  6. 12
      packages/neon/neon/pubspec.yaml
  7. 15
      packages/neon/neon/pubspec_overrides.yaml
  8. 21
      packages/neon/neon_files/pubspec.yaml
  9. 14
      packages/neon/neon_files/pubspec_overrides.yaml
  10. 16
      packages/neon/neon_news/pubspec.yaml
  11. 17
      packages/neon/neon_news/pubspec_overrides.yaml
  12. 16
      packages/neon/neon_notes/pubspec.yaml
  13. 17
      packages/neon/neon_notes/pubspec_overrides.yaml
  14. 8
      packages/neon/neon_notifications/pubspec.yaml
  15. 12
      packages/neon/neon_notifications/pubspec_overrides.yaml
  16. 7
      packages/nextcloud/README.md
  17. 8
      packages/nextcloud/pubspec.yaml
  18. 6
      packages/nextcloud/pubspec_overrides.yaml
  19. 7
      pubspec.yaml

6
.gitignore vendored

@ -0,0 +1,6 @@
.dart_tool/
pubspec.lock
# Melos reccomends not adding them to vcs but we need them as we don't use melos in CI
# **/pubspec_overrides.yaml

13
melos.yaml

@ -0,0 +1,13 @@
name: nextcloud-neon
repository: https://github.com/provokateurin/nextcloud-neon
sdkPath: .fvm/flutter_sdk
packages:
- packages/*
- packages/dynamite/*
- packages/neon/*
ide:
intellij:
enabled: false

10
packages/app/pubspec.lock

@ -146,7 +146,7 @@ packages:
source: hosted source: hosted
version: "0.7.8" version: "0.7.8"
dynamite_runtime: dynamite_runtime:
dependency: transitive dependency: "direct overridden"
description: description:
path: "../dynamite/dynamite_runtime" path: "../dynamite/dynamite_runtime"
relative: true relative: true
@ -177,7 +177,7 @@ packages:
source: hosted source: hosted
version: "6.1.4" version: "6.1.4"
file_icons: file_icons:
dependency: transitive dependency: "direct overridden"
description: description:
path: "../file_icons" path: "../file_icons"
relative: true relative: true
@ -534,7 +534,7 @@ packages:
source: hosted source: hosted
version: "1.0.0" version: "1.0.0"
nextcloud: nextcloud:
dependency: transitive dependency: "direct overridden"
description: description:
path: "../nextcloud" path: "../nextcloud"
relative: true relative: true
@ -790,7 +790,7 @@ packages:
source: hosted source: hosted
version: "0.1.6" version: "0.1.6"
settings: settings:
dependency: transitive dependency: "direct overridden"
description: description:
path: "../settings" path: "../settings"
relative: true relative: true
@ -882,7 +882,7 @@ packages:
source: sdk source: sdk
version: "0.0.99" version: "0.0.99"
sort_box: sort_box:
dependency: transitive dependency: "direct overridden"
description: description:
path: "../sort_box" path: "../sort_box"
relative: true relative: true

20
packages/app/pubspec.yaml

@ -11,15 +11,25 @@ dependencies:
sdk: flutter sdk: flutter
flutter_native_splash: ^2.2.19 flutter_native_splash: ^2.2.19
neon: neon:
path: ../neon/neon git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/neon/neon
neon_files: neon_files:
path: ../neon/neon_files git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/neon/neon_files
neon_news: neon_news:
path: ../neon/neon_news git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/neon/neon_news
neon_notes: neon_notes:
path: ../neon/neon_notes git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/neon/neon_notes
neon_notifications: neon_notifications:
path: ../neon/neon_notifications git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/neon/neon_notifications
shared_preferences: ^2.1.1 shared_preferences: ^2.1.1
dev_dependencies: dev_dependencies:

27
packages/app/pubspec_overrides.yaml

@ -0,0 +1,27 @@
# melos_managed_dependency_overrides: dynamite_runtime,file_icons,neon,neon_files,neon_news,neon_notes,neon_notifications,nextcloud,settings,sort_box,wakelock_windows
dependency_overrides:
dynamite_runtime:
path: ../dynamite/dynamite_runtime
file_icons:
path: ../file_icons
neon:
path: ../neon/neon
neon_files:
path: ../neon/neon_files
neon_news:
path: ../neon/neon_news
neon_notes:
path: ../neon/neon_notes
neon_notifications:
path: ../neon/neon_notifications
nextcloud:
path: ../nextcloud
settings:
path: ../settings
sort_box:
path: ../sort_box
wakelock_windows:
git:
url: https://github.com/creativecreatorormaybenot/wakelock
ref: 094b4a74c31e547c11525bcc050dbd06b02a1f67
path: wakelock_windows

12
packages/neon/neon/pubspec.yaml

@ -26,7 +26,9 @@ dependencies:
json_annotation: ^4.8.1 json_annotation: ^4.8.1
material_design_icons_flutter: ^6.0.7096 material_design_icons_flutter: ^6.0.7096
nextcloud: nextcloud:
path: ../../nextcloud git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/nextcloud
package_info_plus: ^4.0.0 package_info_plus: ^4.0.0
path: ^1.8.3 path: ^1.8.3
path_provider: ^2.0.15 path_provider: ^2.0.15
@ -35,10 +37,14 @@ dependencies:
quick_actions: ^1.0.3 quick_actions: ^1.0.3
rxdart: ^0.27.7 rxdart: ^0.27.7
settings: settings:
path: ../../settings git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/settings
shared_preferences: ^2.1.1 shared_preferences: ^2.1.1
sort_box: sort_box:
path: ../../sort_box git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/sort_box
sqflite: ^2.2.8+2 sqflite: ^2.2.8+2
sqflite_common_ffi: ^2.2.5 sqflite_common_ffi: ^2.2.5
tray_manager: ^0.2.0 tray_manager: ^0.2.0

15
packages/neon/neon/pubspec_overrides.yaml

@ -0,0 +1,15 @@
# melos_managed_dependency_overrides: dynamite_runtime,nextcloud,settings,sort_box,wakelock_windows
dependency_overrides:
dynamite_runtime:
path: ../../dynamite/dynamite_runtime
nextcloud:
path: ../../nextcloud
settings:
path: ../../settings
sort_box:
path: ../../sort_box
wakelock_windows:
git:
url: https://github.com/creativecreatorormaybenot/wakelock
ref: 094b4a74c31e547c11525bcc050dbd06b02a1f67
path: wakelock_windows

21
packages/neon/neon_files/pubspec.yaml

@ -9,7 +9,9 @@ environment:
dependencies: dependencies:
collection: ^1.17.0 collection: ^1.17.0
file_icons: file_icons:
path: ../../file_icons git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/file_icons
file_picker: ^5.3.0 file_picker: ^5.3.0
filesize: ^2.0.1 filesize: ^2.0.1
flutter: flutter:
@ -18,18 +20,27 @@ dependencies:
intersperse: ^2.0.0 intersperse: ^2.0.0
material_design_icons_flutter: ^6.0.7096 material_design_icons_flutter: ^6.0.7096
neon: neon:
path: ../neon git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/neon/neon
nextcloud: nextcloud:
path: ../../nextcloud git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/nextcloud
open_file: ^3.3.1 open_file: ^3.3.1
path: ^1.8.3 path: ^1.8.3
provider: ^6.0.5 provider: ^6.0.5
queue: ^3.1.0+2 queue: ^3.1.0+2
rxdart: ^0.27.7 rxdart: ^0.27.7
settings: settings:
path: ../../settings git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/settings
share_plus: ^7.0.0
sort_box: sort_box:
path: ../../sort_box git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/sort_box
dev_dependencies: dev_dependencies:
nit_picking: nit_picking:

14
packages/neon/neon_files/pubspec_overrides.yaml

@ -0,0 +1,14 @@
# melos_managed_dependency_overrides: dynamite_runtime,file_icons,neon,nextcloud,settings,sort_box
dependency_overrides:
dynamite_runtime:
path: ../../dynamite/dynamite_runtime
file_icons:
path: ../../file_icons
neon:
path: ../neon
nextcloud:
path: ../../nextcloud
settings:
path: ../../settings
sort_box:
path: ../../sort_box

16
packages/neon/neon_news/pubspec.yaml

@ -13,16 +13,24 @@ dependencies:
html: ^0.15.3 html: ^0.15.3
material_design_icons_flutter: ^6.0.7096 material_design_icons_flutter: ^6.0.7096
neon: neon:
path: ../neon git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/neon/neon
nextcloud: nextcloud:
path: ../../nextcloud git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/nextcloud
provider: ^6.0.5 provider: ^6.0.5
rxdart: ^0.27.7 rxdart: ^0.27.7
settings: settings:
path: ../../settings git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/settings
share_plus: ^7.0.0 share_plus: ^7.0.0
sort_box: sort_box:
path: ../../sort_box git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/sort_box
url_launcher: ^6.1.11 url_launcher: ^6.1.11
wakelock: ^0.6.2 wakelock: ^0.6.2
webview_flutter: ^4.2.0 webview_flutter: ^4.2.0

17
packages/neon/neon_news/pubspec_overrides.yaml

@ -0,0 +1,17 @@
# melos_managed_dependency_overrides: dynamite_runtime,neon,nextcloud,settings,sort_box,wakelock_windows
dependency_overrides:
dynamite_runtime:
path: ../../dynamite/dynamite_runtime
neon:
path: ../neon
nextcloud:
path: ../../nextcloud
settings:
path: ../../settings
sort_box:
path: ../../sort_box
wakelock_windows:
git:
url: https://github.com/creativecreatorormaybenot/wakelock
ref: 094b4a74c31e547c11525bcc050dbd06b02a1f67
path: wakelock_windows

16
packages/neon/neon_notes/pubspec.yaml

@ -13,16 +13,24 @@ dependencies:
flutter_markdown: ^0.6.14 flutter_markdown: ^0.6.14
material_design_icons_flutter: ^6.0.7096 material_design_icons_flutter: ^6.0.7096
neon: neon:
path: ../neon git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/neon/neon
nextcloud: nextcloud:
path: ../../nextcloud git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/nextcloud
provider: ^6.0.5 provider: ^6.0.5
queue: ^3.1.0+2 queue: ^3.1.0+2
rxdart: ^0.27.7 rxdart: ^0.27.7
settings: settings:
path: ../../settings git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/settings
sort_box: sort_box:
path: ../../sort_box git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/sort_box
url_launcher: ^6.1.11 url_launcher: ^6.1.11
wakelock: ^0.6.2 wakelock: ^0.6.2

17
packages/neon/neon_notes/pubspec_overrides.yaml

@ -0,0 +1,17 @@
# melos_managed_dependency_overrides: dynamite_runtime,neon,nextcloud,settings,sort_box,wakelock_windows
dependency_overrides:
dynamite_runtime:
path: ../../dynamite/dynamite_runtime
neon:
path: ../neon
nextcloud:
path: ../../nextcloud
settings:
path: ../../settings
sort_box:
path: ../../sort_box
wakelock_windows:
git:
url: https://github.com/creativecreatorormaybenot/wakelock
ref: 094b4a74c31e547c11525bcc050dbd06b02a1f67
path: wakelock_windows

8
packages/neon/neon_notifications/pubspec.yaml

@ -11,9 +11,13 @@ dependencies:
sdk: flutter sdk: flutter
material_design_icons_flutter: ^6.0.7096 material_design_icons_flutter: ^6.0.7096
neon: neon:
path: ../neon git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/neon/neon
nextcloud: nextcloud:
path: ../../nextcloud git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/nextcloud
provider: ^6.0.5 provider: ^6.0.5
rxdart: ^0.27.7 rxdart: ^0.27.7

12
packages/neon/neon_notifications/pubspec_overrides.yaml

@ -0,0 +1,12 @@
# melos_managed_dependency_overrides: dynamite_runtime,neon,nextcloud,settings,sort_box
dependency_overrides:
dynamite_runtime:
path: ../../dynamite/dynamite_runtime
neon:
path: ../neon
nextcloud:
path: ../../nextcloud
settings:
path: ../../settings
sort_box:
path: ../../sort_box

7
packages/nextcloud/README.md

@ -15,6 +15,13 @@ dependencies:
url: https://github.com/provokateurin/nextcloud-neon url: https://github.com/provokateurin/nextcloud-neon
path: packages/nextcloud path: packages/nextcloud
ref: $COMMIT ref: $COMMIT
dependency_overrides:
dynamite_runtime:
git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/dynamite/dynamite_runtime
ref: $COMMIT
``` ```
You can either remove the `ref` or use a commit hash. It's not recommended to remove it, because then the version will be updated very often. You can either remove the `ref` or use a commit hash. It's not recommended to remove it, because then the version will be updated very often.

8
packages/nextcloud/pubspec.yaml

@ -12,7 +12,9 @@ dependencies:
crypto: ^3.0.3 crypto: ^3.0.3
crypton: ^2.0.5 crypton: ^2.0.5
dynamite_runtime: dynamite_runtime:
path: ../dynamite/dynamite_runtime git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/dynamite/dynamite_runtime
intl: ^0.18.0 intl: ^0.18.0
universal_io: ^2.2.0 universal_io: ^2.2.0
version: ^3.0.2 version: ^3.0.2
@ -24,7 +26,9 @@ dev_dependencies:
built_value_generator: ^8.5.0 built_value_generator: ^8.5.0
coverage: ^1.6.3 coverage: ^1.6.3
dynamite: dynamite:
path: ../dynamite/dynamite git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/dynamite/dynamite
nit_picking: nit_picking:
git: git:
url: https://github.com/stack11/dart_nit_picking url: https://github.com/stack11/dart_nit_picking

6
packages/nextcloud/pubspec_overrides.yaml

@ -0,0 +1,6 @@
# melos_managed_dependency_overrides: dynamite,dynamite_runtime
dependency_overrides:
dynamite:
path: ../dynamite/dynamite
dynamite_runtime:
path: ../dynamite/dynamite_runtime

7
pubspec.yaml

@ -0,0 +1,7 @@
name: neon_workspace
publish_to: none
environment:
sdk: '>=3.0.0 <4.0.0'
dev_dependencies:
melos: ^3.0.1
Loading…
Cancel
Save