-
Notifications
You must be signed in to change notification settings - Fork 12
/
melos.yaml
67 lines (55 loc) · 2.24 KB
/
melos.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: metadata_god
repository: https://github.com/KRTirtho/metadata_god
packages:
- packages/**
scripts:
analyze:
exec: flutter analyze .
description: Analyze a specific package in this project.
check-format:
exec: dart format --set-exit-if-changed .
description: Check the format of a specific package in this project.
format:
exec: dart format .
description: Format a specific package in this project.
version:
description: Updates version numbers in all build files
run: bash scripts/version.sh
build:
run: melos run build:apple && melos run build:android && melos run build:other
description: Build all native libraries for the project.
build:apple:
run: bash scripts/build-apple.sh
description: Build the XCFramework for iOS and macOS.
build:android:
run: bash scripts/build-android.sh
description: Build the .tar.gz for Android.
build:other:
run: bash scripts/build-other.sh
description: Build the .tar.gz for all other platforms.
copylib:linux:
run: |
CURR_VERSION=v`awk '/^version: /{print $2}' packages/metadata_god/pubspec.yaml`
cp platform-build/other.tar.gz packages/metadata_god/linux/$CURR_VERSION.tar.gz
copylib:windows:
run: |
CURR_VERSION=v`awk '/^version: /{print $2}' packages/metadata_god/pubspec.yaml`
cp platform-build/other.tar.gz packages/metadata_god/windows/$CURR_VERSION.tar.gz
copylib:macos:
run: |
CURR_VERSION=v`awk '/^version: /{print $2}' packages/metadata_god/pubspec.yaml`
cp platform-build/MetadataGod.xcframework.zip packages/metadata_god/macos/Frameworks/$CURR_VERSION.zip
copylib:ios:
run: |
CURR_VERSION=v`awk '/^version: /{print $2}' packages/metadata_god/pubspec.yaml`
cp platform-build/MetadataGod.xcframework.zip packages/metadata_god/ios/Frameworks/$CURR_VERSION.zip
copylib:android:
run: |
CURR_VERSION=v`awk '/^version: /{print $2}' packages/metadata_god/pubspec.yaml`
cp platform-build/android.tar.gz packages/metadata_god/android/$CURR_VERSION.tar.gz
test:
run: melos exec -c 1 --fail-fast -- "flutter test test"
description: Run Flutter tests for a specific package in this project.
select-package:
flutter: true
dir-exists: test