Skip to content

Commit 8787c48

Browse files
authored
feat(cat-voices): migrate away from melos (#454)
* feat: allow to pass any web prefix * feat: add clang package * feat: remove web prefix in favor of configuration in flutter_rust_bridge.yaml * feat: add no modules global * feat: add WASM_MODULE_NAME param * fix: arg usage * feat: build flutter_rust_bridge in release mode * feat: use forked version of flutter_rust_bridge * fix: syntax * feat: add branch * chore: allow github repo * fix: bump rust version from 1.88.0 to 1.89.0 * chore: reformat * fix: spelling * fix: rust version * feat: allow code formatting after generation * chore: sync deny.toml * chore: TODO * chore: cleanup * feat: migrate away from melos.yaml * fix: syntax * fix: revert packages * feat: add missing tool * chore: cleanup melos analyze * feat: switch to iohk fork * style: typos
1 parent 26e29ca commit 8787c48

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.config/dictionaries/project.dic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ colordiff
1414
cowsay
1515
cuelang
1616
cytopia
17+
dartdoc
1718
depgraph
1819
devenv
1920
dind

earthly/flutter/Earthfile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ INSTALL_FLUTTER:
3636
RUN dart pub global activate coverage
3737
RUN dart pub global activate combine_coverage
3838
RUN dart pub global activate license_checker
39+
RUN dart pub global activate dartdoc
3940

4041
# flutter-base installs required tools and packages.
4142
flutter-base:
@@ -82,15 +83,16 @@ SETUP:
8283
FUNCTION
8384
FROM +flutter-base
8485

85-
# Runs melos bootstrap if melos.yaml file is present.
86+
# Runs melos bootstrap if melos dependency is present in pubspec.yaml.
8687
BOOTSTRAP:
8788
FUNCTION
8889

89-
IF [ -f melos.yaml ]
90+
IF grep -q "melos" pubspec.yaml
9091
RUN echo "Running melos bootstrap"
9192
RUN melos bootstrap
9293
ELSE
93-
RUN echo "No melos.yaml file found"
94+
RUN echo "Running dart pub get"
95+
RUN dart pub get
9496
END
9597

9698
# Generates dart code from open api spec.
@@ -125,9 +127,9 @@ OPENAPI_VALIDATE:
125127
ANALYZE:
126128
FUNCTION
127129

128-
IF [ -f melos.yaml ]
130+
IF grep -q "melos" pubspec.yaml
129131
RUN echo "Running melos analyze"
130-
RUN melos analyze --fatal-infos --fatal-warnings
132+
RUN melos analyze
131133
ELSE
132134
RUN echo "Running flutter analyze"
133135
RUN flutter analyze --fatal-infos --fatal-warnings
@@ -137,19 +139,19 @@ ANALYZE:
137139
FORMAT:
138140
FUNCTION
139141

140-
IF [ -f melos.yaml ]
142+
IF grep -q "melos" pubspec.yaml
141143
RUN echo "Running melos format"
142144
RUN melos run format-check
143145
ELSE
144-
RUN echo "Running flutter format"
145-
RUN flutter format --set-exit-if-changed .
146+
RUN echo "Running dart format"
147+
RUN flutter dart --set-exit-if-changed .
146148
END
147149

148150
# Dry-runs the publish script for publishable packages.
149151
PUBLISH_DRY_RUN:
150152
FUNCTION
151153

152-
IF [ -f melos.yaml ]
154+
IF grep -q "melos" pubspec.yaml
153155
RUN echo "Running melos publish --dry-run"
154156
RUN melos publish --dry-run --yes
155157
ELSE
@@ -165,7 +167,7 @@ UNIT_TESTS:
165167
ARG PLATFORM=native
166168
ARG REPORT=false
167169

168-
IF [ -f melos.yaml ]
170+
IF grep -q "melos" pubspec.yaml
169171
IF [ $PLATFORM = native ]
170172
RUN echo "Running native unit tests with melos."
171173

examples/flutter/example/Earthfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ builder:
1111

1212
COPY --dir . .
1313

14-
# Run Flutter analyze orer melos analyze.
14+
# Run flutter analyze over melos analyze.
1515
analyze:
1616
FROM +builder
1717

1818
DO flutter-ci+ANALYZE
1919

20-
# Run Flutter format orer melos format.
20+
# Run dart format over melos format.
2121
format:
2222
FROM +builder
2323

0 commit comments

Comments
 (0)