Browse Source

refactor(tool): Rename melos script format-check to format:check for consistency

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/918/head
jld3103 1 year ago
parent
commit
13132673d3
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      .github/workflows/dart.yml
  2. 2
      .husky/pre-commit
  3. 2
      melos.yaml

2
.github/workflows/dart.yml

@ -40,7 +40,7 @@ jobs:
run: ./tool/setup.sh run: ./tool/setup.sh
- name: Check formatting - name: Check formatting
run: melos run format-check run: melos run format:check
- name: Lint code - name: Lint code
run: melos run analyze run: melos run analyze
- name: Run tests - name: Run tests

2
.husky/pre-commit

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh" . "$(dirname -- "$0")/_/husky.sh"
melos run format-check melos run format:check

2
melos.yaml

@ -20,7 +20,7 @@ ide:
scripts: scripts:
format: dart format --fix --line-length 120 . format: dart format --fix --line-length 120 .
format-check: dart format --output=none --set-exit-if-changed --line-length 120 . format:check: dart format --output=none --set-exit-if-changed --line-length 120 .
analyze: dart analyze --fatal-infos . analyze: dart analyze --fatal-infos .
test: melos exec --concurrency=1 --fail-fast --dir-exists=test -- "flutter test --concurrency=$(nproc --all)" test: melos exec --concurrency=1 --fail-fast --dir-exists=test -- "flutter test --concurrency=$(nproc --all)"
generate:neon:build_runner: melos exec --scope="neon*" --file-exists="build.yaml" -- dart run build_runner build --delete-conflicting-outputs && melos run format generate:neon:build_runner: melos exec --scope="neon*" --file-exists="build.yaml" -- dart run build_runner build --delete-conflicting-outputs && melos run format

Loading…
Cancel
Save