Skip to content

Commit

Permalink
chore: Move to melos 7.0.0-dev.3 (#3444)
Browse files Browse the repository at this point in the history
  • Loading branch information
spydon authored Jan 10, 2025
1 parent 600572b commit f28726e
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 119 deletions.
116 changes: 0 additions & 116 deletions melos.yaml

This file was deleted.

111 changes: 108 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,113 @@ environment:
sdk: ">=3.6.0 <4.0.0"

dev_dependencies:
melos: ^7.0.0-dev.1
melos: ^7.0.0-dev.3

flutter:
uses-material-design: true
melos:
command:
version:
# Only allow versioning to happen on main branch.
branch: main
# Generates a link to a prefilled GitHub release creation page.
releaseUrl: true

bootstrap:
environment:
sdk: ">=3.6.0 <4.0.0"
flutter: ">=3.27.1"
dependencies:
meta: ^1.12.0
vector_math: ^2.1.4
dev_dependencies:
dartdoc: ^8.0.8
mocktail: ^1.0.4
test: any

publish:
hooks:
pre: melos devtools-build

scripts:
lint:all:
steps:
- analyze
- format
description: Run all static analysis checks.

format-check:
run: melos exec dart format . --set-exit-if-changed
description: Run `dart format` checks for all packages.

markdown-check:
run: markdownlint . --ignore-path .markdownlintignore --config .markdownlint.yaml
description: Runs the markdown linting check.

markdown-fix:
run: markdownlint . --fix --ignore-path .markdownlintignore --config .markdownlint.yaml
description: Fixes the markdown linting errors.

dartdoc:
run: melos exec flutter pub run dartdoc
description: Run dartdoc checks for all packages.

doc-setup:
run: ./scripts/doc-setup.sh
description: Prepares the environment for documentation development.

doc-build:
run: cd "$MELOS_ROOT_PATH/doc/_sphinx" && make html
description: Create the sphinx html docs.

doc-serve:
run: cd "$MELOS_ROOT_PATH/doc/_sphinx" && make livehtml
description: Recompiles the docs every time there is a change in them and opens your browser.

doc-kill:
run: cd "$MELOS_ROOT_PATH/doc/_sphinx" && python3 kill-server.py
description: Kills any TCP processes running on port 8000.

doc-clean:
run: cd "$MELOS_ROOT_PATH/doc/_sphinx" && make clean
description: Removes all Sphinx's cached generated files.

doc-linkcheck:
run: cd "$MELOS_ROOT_PATH/doc/_sphinx" && make linkcheck
description: Checks whether there are any broken links in the docs.

test:select:
run: melos exec -c 1 -- flutter test
packageFilters:
dirExists: test
description: Run `flutter test` for selected packages.

test:
run: melos run test:select --no-select
description: Run all Flutter tests in this project.

coverage:
steps:
- melos exec -- flutter test --coverage
- melos exec -- genhtml coverage/lcov.info --output-directory=coverage/
packageFilters:
dirExists: test
description: Generate coverage for the selected package.

upgrade: melos exec flutter pub upgrade

update-goldens:
run: melos exec -- flutter test --update-goldens
packageFilters:
dirExists: test
description: Re-generate all golden test files

devtools-build:
run: melos exec -- dart run devtools_extensions build_and_copy --source=. --dest=../flame/extension/devtools
packageFilters:
scope: flame_devtools
description: Builds the devtools and copies the build directory to the Flame package.

devtools-simulator:
run: melos exec -- flutter run -d chrome --dart-define=use_simulated_environment=true
packageFilters:
scope: flame_devtools
description: Runs the devtools in the simulated mode.

0 comments on commit f28726e

Please sign in to comment.