-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make copying nested styles more concise (#386)
* Refactor FThemeData * Add forui_internal_gen * Refactor styles to use forui_internal_gen * Update documentation * Remove redundant transform * refactor styles * Commit from GitHub Actions (Forui Presubmit) * Fix failing build * Commit from GitHub Actions (Forui Internal Gen Presubmit) * Update CONTRIBUTING.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Fix failing build --------- Co-authored-by: Pante <Pante@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Loading branch information
1 parent
58b4546
commit 470b4ad
Showing
92 changed files
with
1,277 additions
and
3,849 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
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,32 @@ | ||
name: Forui Internal Gen Build | ||
|
||
on: | ||
workflow_dispatch: {} | ||
push: | ||
paths: | ||
- .github/workflows/forui_internal_gen_build.yaml | ||
- forui/** | ||
pull_request: | ||
paths: | ||
- forui/** | ||
|
||
jobs: | ||
test: | ||
name: Build & test | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
working-directory: forui_internal_gen | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
flutter-version: [ 3.x ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2.18.0 | ||
with: | ||
flutter-version: ${{ matrix.flutter-version }} | ||
cache: true | ||
- run: flutter pub get | ||
- run: dart run build_runner build --delete-conflicting-outputs | ||
- run: flutter 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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Forui Internal Gen Presubmit | ||
|
||
on: | ||
workflow_dispatch: {} | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- .github/workflows/forui_internal_gen_presubmit.yaml | ||
pull_request_target: | ||
branches: [ main ] | ||
paths: | ||
- forui_internal_gen/** | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
prepare: | ||
if: github.actor != 'auto-maid[bot]' && github.event.pull_request.draft == false | ||
name: Prepare PR for review | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: forui_internal_gen | ||
|
||
steps: | ||
- uses: tibdex/github-app-token@v2 | ||
id: generate-token | ||
with: | ||
app_id: ${{ secrets.AUTO_MAID_APP_ID }} | ||
private_key: ${{ secrets.AUTO_MAID_PRIVATE_KEY }} | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- uses: subosito/flutter-action@v2.18.0 | ||
with: | ||
cache: true | ||
|
||
- run: flutter pub get | ||
- run: dart run ../tool/sort.dart forui | ||
- run: dart run build_runner build --delete-conflicting-outputs | ||
- run: dart format --line-length 120 . | ||
- run: dart fix --apply | ||
# We format the code again since the required trailing comma lint fixes causes code to be formatted differently | ||
- run: dart format --line-length 120 . | ||
|
||
- uses: EndBug/add-and-commit@v9 | ||
with: | ||
pull: '--rebase --autostash' | ||
add: '*' |
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 |
---|---|---|
|
@@ -33,3 +33,6 @@ test/golden/failures/ | |
test/**/*_test.mocks.dart | ||
/.temp/ | ||
.i10n.txt | ||
|
||
## Generated Dart files | ||
**.style.dart |
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
Oops, something went wrong.