-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update project code styles (#353)
* chore: use .tool-versions * chore: refactoring melos.yaml * chore: update dependencies for example * chore: add prettier * chore: add lint-staged * chore: add autoassign * chore: add CODEOWNER * docs: update how to use melos * chore: enabled flutter cache
- Loading branch information
Showing
63 changed files
with
12,830 additions
and
648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @wasabeef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Auto self assign | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
assign: | ||
if: | | ||
github.event.pull_request.user.type == 'User' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const assignees = context.payload.pull_request.assignees | ||
if (!assignees || assignees.length === 0) { | ||
github.rest.issues.addAssignees({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.issue.number, | ||
assignees: `${{ github.actor }}`, | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
types: [opened, synchronize] | ||
push: | ||
branches: | ||
- "main" | ||
- 'main' | ||
|
||
jobs: | ||
build: | ||
|
@@ -16,12 +16,16 @@ jobs: | |
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: wasabeef/[email protected] | ||
id: asdf | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ steps.asdf.outputs.flutter }} | ||
channel: stable | ||
cache: true | ||
- uses: dart-lang/setup-dart@v1 | ||
with: | ||
sdk: stable | ||
sdk: ${{ steps.asdf.outputs.dart }} | ||
|
||
- name: Set environment | ||
if: startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu') | ||
|
@@ -48,12 +52,12 @@ jobs: | |
- name: Run tests for our dart project. | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
melos run test | ||
melos test | ||
- name: Run coverage | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
melos run coverage | ||
melos coverage | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
|
@@ -62,10 +66,10 @@ jobs: | |
|
||
- name: Generate example | ||
run: | | ||
melos run example:command | ||
melos run example:build_runner | ||
melos gen:example:command | ||
melos gen:example:build_runner | ||
- name: Check for any formatting and statically analyze the code. | ||
run: | | ||
melos run format | ||
melos run analyze | ||
melos format | ||
melos analyze |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Release | |
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
build: | ||
|
@@ -23,12 +23,16 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: wasabeef/[email protected] | ||
id: asdf | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ steps.asdf.outputs.flutter }} | ||
channel: stable | ||
cache: true | ||
- uses: dart-lang/setup-dart@v1 | ||
with: | ||
sdk: stable | ||
sdk: ${{ steps.asdf.outputs.dart }} | ||
|
||
- name: Set environment | ||
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm lint-staged --allow-empty |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
19.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.dart_tool/ | ||
build/ | ||
packages/**/android/ | ||
packages/**/ios/ | ||
packages/**/linux/ | ||
packages/**/macos/ | ||
packages/**/web/ | ||
packages/**/windows/ | ||
examples/**/android/ | ||
examples/**/ios/ | ||
examples/**/linux/ | ||
examples/**/macos/ | ||
examples/**/web/ | ||
examples/**/windows/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
nodejs 16.18.1 | ||
|
||
dart 2.19.1 | ||
flutter 3.7.1-stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,28 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Run example on main.dart", | ||
"program": "${workspaceFolder}/examples/example/lib/main.dart", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "debug", | ||
"cwd": "examples/example/" | ||
}, | ||
{ | ||
"name": "Run on build_runner", | ||
"program": "${workspaceFolder}/examples/example/.dart_tool/build/entrypoint/build.dart", | ||
"request": "launch", | ||
"type": "dart", | ||
"args": [ | ||
"build" | ||
], | ||
"cwd": "examples/example/" | ||
}, | ||
{ | ||
"name": "Run on flutter_gen_command", | ||
"program": "${workspaceFolder}/packages/command/bin/flutter_gen_command.dart", | ||
"request": "launch", | ||
"type": "dart", | ||
"cwd": "examples/example/" | ||
} | ||
] | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Run example on main.dart", | ||
"program": "${workspaceFolder}/examples/example/lib/main.dart", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "debug", | ||
"cwd": "examples/example/" | ||
}, | ||
{ | ||
"name": "Run on build_runner", | ||
"program": "${workspaceFolder}/examples/example/.dart_tool/build/entrypoint/build.dart", | ||
"request": "launch", | ||
"type": "dart", | ||
"args": ["build"], | ||
"cwd": "examples/example/" | ||
}, | ||
{ | ||
"name": "Run on flutter_gen_command", | ||
"program": "${workspaceFolder}/packages/command/bin/flutter_gen_command.dart", | ||
"request": "launch", | ||
"type": "dart", | ||
"cwd": "examples/example/" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"dart.flutterSdkPath": "~/.asdf/installs/flutter/3.0.5-stable", | ||
"dart.sdkPath": "~/.asdf/installs/dart/2.17.6/dart-sdk" | ||
"dart.flutterSdkPath": "~/.asdf/installs/flutter/3.7.1-stable", | ||
"dart.sdkPath": "~/.asdf/installs/dart/2.19.1/dart-sdk" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ A sample project using FlutterGen. | |
|
||
``` | ||
cd ../flutter_gen | ||
melos run pub:get | ||
melos bootstrap | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
examples/example/android/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
zipStorePath=wrapper/dists |
2,982 changes: 2,981 additions & 1 deletion
2,982
examples/example/assets/lottie/alarm-clock-lottie-v440.json
Large diffs are not rendered by default.
Oops, something went wrong.
2,829 changes: 2,828 additions & 1 deletion
2,829
examples/example/assets/lottie/geometrical-animation.json
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.