Skip to content

chore: migrate very_good_core #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 19, 2024
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Every request must be reviewed and accepted by:

* @VeryGoodOpenSource/codeowners
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Bug Report
about: Create a report to help us improve
title: "fix: "
labels: bug
---

**Description**
A clear and concise description of what the bug is.

**Steps To Reproduce**

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected Behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional Context**
Add any other context about the problem here.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
23 changes: 23 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!--
Thanks for contributing!

Provide a description of your changes below and a general summary in the title

Please look at the following checklist to ensure that your PR can be accepted quickly:
-->

## Description

<!--- Describe your changes in detail -->

## Type of Change

<!--- Put an `x` in all the boxes that apply: -->

- [ ] ✨ New feature (non-breaking change which adds functionality)
- [ ] 🛠️ Bug fix (non-breaking change which fixes an issue)
- [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
- [ ] 🧹 Code refactor
- [ ] ✅ Build configuration change
- [ ] 📝 Documentation
- [ ] 🗑️ Chore
25 changes: 25 additions & 0 deletions .github/cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": "0.2",
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"dictionaries": ["vgv_allowed", "vgv_forbidden"],
"dictionaryDefinitions": [
{
"name": "vgv_allowed",
"path": "https://raw.githubusercontent.com/verygoodopensource/very_good_dictionaries/main/allowed.txt",
"description": "Allowed VGV Spellings"
},
{
"name": "vgv_forbidden",
"path": "https://raw.githubusercontent.com/verygoodopensource/very_good_dictionaries/main/forbidden.txt",
"description": "Forbidden VGV Spellings"
}
],
"useGitignore": true,
"words": [
"Contador",
"localizable",
"mostrado",
"página",
"Texto"
]
}
10 changes: 10 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "pub"
directory: "very_good_core/brick/hooks"
schedule:
interval: "daily"
10 changes: 10 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: ci

on:
pull_request:
branches:
- main

jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1
71 changes: 71 additions & 0 deletions .github/workflows/very_good_core.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: very_good_core

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
paths:
- .github/workflows/very_good_core.yaml
- "very_good_core/**"
branches:
- main
pull_request:
paths:
- .github/workflows/very_good_core.yaml
- "very_good_core/**"
branches:
- main

jobs:
brick:
defaults:
run:
working-directory: very_good_core/

runs-on: ubuntu-latest

strategy:
matrix:
flutter-version:
# The version of Flutter to use should use the minimum Dart SDK version supported by the package,
# refer to https://docs.flutter.dev/development/tools/sdk/releases.
- "3.13.0"
- "any"

steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4

- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter-version }}

- name: 🧱 Mason Make
run: |
dart pub global activate mason_cli
mason get
mason make very_good_core -c config.json -o output --on-conflict overwrite

- name: 📦 Install Dependencies
run: |
dart pub global activate very_good_cli
very_good packages get --recursive output/test_app

- name: ✨ Check Formatting
run: dart format --set-exit-if-changed output/test_app

- name: 🕵️ Analyze
run: dart analyze --fatal-infos --fatal-warnings output/test_app

- name: 🧪 Run Tests
run: |
cd output/test_app
very_good test -j 4 --recursive --optimization --coverage --test-randomize-ordering-seed random

- name: 📊 Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v2
with:
path: very_good_core/output/test_app/coverage/lcov.info
21 changes: 21 additions & 0 deletions .github/workflows/very_good_core_hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: very_good_core_hooks

on:
pull_request:
paths:
- ".github/workflows/very_good_core_hooks.yaml"
- "very_good_core/hooks/**"
push:
branches:
- main
paths:
- ".github/workflows/very_good_core_hooks.yaml"
- "very_good_core/hooks/**"

jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
with:
working_directory: "very_good_core/hooks"
analyze_directories: "test"
report_on: "pre_gen.dart"
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Files and directories created by mason
.mason/
mason-lock.json
output/
3 changes: 3 additions & 0 deletions mason.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bricks:
very_good_core:
path: very_good_core
13 changes: 13 additions & 0 deletions very_good_core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
.atom/
.idea/*
.vscode/*

# Files and directories created by pub
.dart_tool/
.packages
pubspec.lock

# Conventional directory for build outputs
build/

116 changes: 116 additions & 0 deletions very_good_core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# 0.5.1

- feat: minify icon pngs ([#317](https://github.com/VeryGoodOpenSource/very_good_core/pull/317))
- fix: templated project name for Release-production flavor ([#319](https://github.com/VeryGoodOpenSource/very_good_core/pull/319))

# 0.5.0

- feat: change launchMode on Android to singleTask ([#297](https://github.com/VeryGoodOpenSource/very_good_core/pull/297))
- feat: add macOS platform support ([#299](https://github.com/VeryGoodOpenSource/very_good_core/pull/299))
- refactor: remove generator script ([#306](https://github.com/VeryGoodOpenSource/very_good_core/pull/306))
- docs: update semantic commit link ([#313](https://github.com/VeryGoodOpenSource/very_good_core/pull/313))
- fix: regenerate ios directory ([#310](https://github.com/VeryGoodOpenSource/very_good_core/pull/310))

# 0.4.0

- feat!: bump min Dart SDK to 3.1.0
- feat!: update to Flutter 3.13.2
- fix: added RunnerTests iOS Schema
- feat: update to Material 3
- docs: update l10n README documentation
- docs: translation generation in README.md
- fix: very_good create flutter_app doesn't create .gradlew files
- feat: upgrade to `very_good_analysis ^5.1.0`

# 0.3.0

- feat!: update to Flutter 3.10.0
- fix: use valid app label
- feat: update bloc

# 0.2.0

- feat!: bump min Dart SDK to 2.19.0

# 0.1.15

- chore: support dart sdk 2.18.0
- fix: rollback very_good_analysis to 3.1.0
- test: include e2e test

# 0.1.14

- feat: update workflows and add spellcheck
- chore: remove explicit Flutter version constraint

# 0.1.13

- feat: upgrade to `very_good_analysis ^4.0.0`

# 0.1.12

- feat: upgrade bloc
- bloc ^8.1.1
- flutter_bloc ^8.1.2
- bloc_test ^9.1.1
- feat: upgrade to Flutter 3.7.1

# 0.1.11

- feat: upgrade to Flutter 3.7.0

# 0.1.10

- fix: pre_gen.dart recase extension fix

# 0.1.9

- feat: upgrade to Flutter 3.3.10
- feat: upgrade to mason v0.1.0-dev.40
- fix: use correct description in index.html

# 0.1.8

- docs: remove copyright header and license from generated code
- feat: use flavor app name for the bundle name

# 0.1.7

- feat: upgrade to Flutter 3.3.8
- feat: add optional `applicationId`

# 0.1.6

- feat: upgrade to Flutter 3.3.7

# 0.1.5

- feat: upgrade to Flutter 3.3.6
- fix: add support for `GlobalCupertinoLocalizations`

# 0.1.4

- feat: fix dependabot config file

# 0.1.3

- feat: upgrade to Flutter 3.3.3

# 0.1.2

- feat: upgrade to Flutter 3.3.2
- feat: upgrade to very_good_analysis ^3.1.0

# 0.1.1

- feat: upgrade to Flutter 3.3.1
- feat: upgrade to very_good_analysis ^3.0.2
- feat: add dependabot integration

# 0.1.0

- feat: upgrade to Flutter 3.3 and Dart 2.18

# 0.0.1

- feat: initial release 🎉
Loading