Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .cursorindexingignore

This file was deleted.

2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
74 changes: 74 additions & 0 deletions .github/cliff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# git-cliff configuration file for flutter_use
# https://git-cliff.org/docs/configuration

[changelog]
# changelog header
header = """
# Changelog

All notable changes to this project will be documented in this file.

"""
# template for the changelog body
# https://keats.github.io/tera/docs/
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/wasabeef/flutter_use/commit/{{ commit.id }}))
{%- endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
<!-- generated by git-cliff -->
"""

[git]
# parse the commits based on https://www.conventionalcommits.org
conventional_commits = true
# filter out the commits that are not conventional
filter_unconventional = true
# process each line of a commit as an individual commit
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/wasabeef/flutter_use/issues/${2}))"},
]
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"},
{ message = "^docs", group = "Documentation"},
{ message = "^perf", group = "Performance"},
{ message = "^refactor", group = "Refactor"},
{ message = "^style", group = "Styling"},
{ message = "^test", group = "Testing"},
{ message = "^chore\\(release\\): prepare for", skip = true},
{ message = "^chore", group = "Miscellaneous Tasks"},
{ body = ".*security", group = "Security"},
{ message = "^upgrade", group = "Dependencies"},
{ message = "^add", group = "Features"},
{ message = "^update", group = "Improvements"},
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers
filter_commits = false
# glob pattern for matching git tags
tag_pattern = "v[0-9]*"
# regex for skipping tags
skip_tags = ""
# regex for ignoring tags
ignore_tags = ""
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
Expand All @@ -30,11 +30,11 @@ jobs:
dart pub global activate melos
melos run get

- name: Run tests for our dart project.
- name: Run tests with coverage
run: |
melos run test
melos run test-coverage

- name: Check for any formatting and statically analyze the code.
run: |
melos run format
melos run check
melos run analyze
70 changes: 70 additions & 0 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Deploy Flutter Demo to GitHub Pages

on:
push:
branches: [ main ]
paths:
- 'demo/**'
- 'packages/**'
- '.github/workflows/deploy-demo.yml'
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Import tool versions
uses: wasabeef/import-asdf-tool-versions-action@v1.1.0
id: asdf

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.asdf.outputs.flutter }}
cache: true

- name: Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: ${{ steps.asdf.outputs.dart }}

- name: Install Melos
run: dart pub global activate melos

- name: Bootstrap packages
run: melos bootstrap

- name: Build demo app
run: melos run demo-build

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'demo/build/web'

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
72 changes: 72 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Release

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"

permissions:
contents: write
id-token: write # Required for OIDC authentication

jobs:
release:
name: Release and Publish
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Flutter and Dart
uses: subosito/flutter-action@v2
with:
channel: stable

- name: Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: stable

- name: Set environment
run: echo "$HOME/.pub-cache/bin" >> "$GITHUB_PATH"

- name: Install Melos
run: dart pub global activate melos

- name: Bootstrap packages
run: melos bootstrap

- name: Verify all tests pass
run: melos run test

- name: Verify code formatting
run: melos run check

- name: Verify static analysis
run: melos run analyze

- name: Check packages can be published (dry-run)
run: melos publish --dry-run

- name: Generate release notes
id: release_notes
uses: orhun/git-cliff-action@v3
with:
config: .github/cliff.toml
args: --latest --strip header

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
body: ${{ steps.release_notes.outputs.content }}
draft: false
prerelease: false

- name: Publish to pub.dev
run: melos publish --no-dry-run --yes
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,11 @@ node_modules/
# SpecStory
.specstory/

# Coverage reports
coverage/
*.lcov

# Lefthook
.lefthook/
.lefthook-local/

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

29 changes: 26 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
*.md
# Flutter/Dart
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub/
build/
ios/
android/
coverage/

# IDE
.idea/
.vscode/

# OS
.DS_Store

# Dependencies
node_modules/

# Lefthook
.lefthook/
.lefthook-local/

# Generated files
**/*.g.dart
**/*.freezed.dart
**/*.reflectable.dart
**/generated_plugin_registrant.dart
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 100,
"arrowParens": "always",
"endOfLine": "lf"
}
2 changes: 0 additions & 2 deletions .specstory/.gitignore

This file was deleted.

6 changes: 4 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
nodejs 23.11.0
bun 1.2.10
nodejs 24.2.0
bun 1.2.16
flutter 3.32.1
dart 3.8.1
Loading