Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
chore: remove generator script (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
alestiago authored Feb 6, 2024
1 parent 89e68dd commit 2191d9e
Show file tree
Hide file tree
Showing 355 changed files with 80 additions and 10,239 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/generate_very_good_flame_game.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: semantic_pull_request

on:
pull_request:
Expand Down
93 changes: 65 additions & 28 deletions .github/workflows/very_good_flame_game.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,74 @@
name: very_good_flame_game

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

on:
pull_request:
paths:
- ".github/workflows/very_good_flame_game.yaml"
- "src/very_good_flame_game/lib/**"
- "src/very_good_flame_game/test/**"
- "src/very_good_flame_game/pubspec.yaml"
- "tool/generator/**"
push:
paths:
- .github/workflows/very_good_flame_game.yaml
- "brick/**"
branches:
- main
pull_request:
paths:
- ".github/workflows/very_good_flame_game.yaml"
- "src/very_good_flame_game/lib/**"
- "src/very_good_flame_game/test/**"
- "src/very_good_flame_game/pubspec.yaml"
- "tool/generator/**"
- .github/workflows/very_good_flame_game.yaml
- "brick/**"
branches:
- main

jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_channel: stable
flutter_version: 3.16.0
working_directory: src/very_good_flame_game
coverage_excludes: "lib/gen/*.dart"

spell-check:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1
with:
includes: |
**/*.md
!brick/**/*.md
.*/**/*.md
modified_files_only: false
brick:
defaults:
run:
working-directory: brick

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.
# FIXME(alestiago): Current minimum is 3.13.2 but can't be used, see:
# https://github.com/VeryGoodOpenSource/very_good_flame_game/issues/150
- "3.16.0"
- "3.x"

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_flame_game -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/unicorn_game
- name: ✨ Check Formatting
run: dart format --set-exit-if-changed output/unicorn_game

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

- name: 🧪 Run Tests
run: |
cd output/unicorn_game
very_good test -j 4 --recursive --optimization --coverage --test-randomize-ordering-seed random
- name: 📊 Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v2
with:
exclude: "**/*.gen.dart"
path: brick/output/unicorn_game/coverage/lcov.info
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ src/very_good_flame_game/ios/Podfile.lock

# Conventional directory for build outputs
build/

# Files and directories created by mason
.mason/
mason-lock.json
output/
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import 'package:flame/components.dart';
import 'package:{{project_name.snakeCase()}}/game/game.dart';

class CounterComponent extends PositionComponent
with HasGameRef<{{project_name.pascalCase()}}> {
class CounterComponent extends PositionComponent with HasGameRef<{{project_name.pascalCase()}}> {
CounterComponent({
required super.position,
}) : super(anchor: Anchor.center);
Expand Down
5 changes: 5 additions & 0 deletions brick/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"project_name": "unicorn_game",
"org_name": "very_good_ventures",
"description": "A very_good_flame_game configuration."
}
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_flame_game:
path: brick
29 changes: 0 additions & 29 deletions src/very_good_flame_game/.github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

14 changes: 0 additions & 14 deletions src/very_good_flame_game/.github/ISSUE_TEMPLATE/build.md

This file was deleted.

14 changes: 0 additions & 14 deletions src/very_good_flame_game/.github/ISSUE_TEMPLATE/chore.md

This file was deleted.

14 changes: 0 additions & 14 deletions src/very_good_flame_game/.github/ISSUE_TEMPLATE/ci.md

This file was deleted.

1 change: 0 additions & 1 deletion src/very_good_flame_game/.github/ISSUE_TEMPLATE/config.yml

This file was deleted.

14 changes: 0 additions & 14 deletions src/very_good_flame_game/.github/ISSUE_TEMPLATE/documentation.md

This file was deleted.

18 changes: 0 additions & 18 deletions src/very_good_flame_game/.github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

14 changes: 0 additions & 14 deletions src/very_good_flame_game/.github/ISSUE_TEMPLATE/performance.md

This file was deleted.

14 changes: 0 additions & 14 deletions src/very_good_flame_game/.github/ISSUE_TEMPLATE/refactor.md

This file was deleted.

16 changes: 0 additions & 16 deletions src/very_good_flame_game/.github/ISSUE_TEMPLATE/revert.md

This file was deleted.

14 changes: 0 additions & 14 deletions src/very_good_flame_game/.github/ISSUE_TEMPLATE/style.md

This file was deleted.

14 changes: 0 additions & 14 deletions src/very_good_flame_game/.github/ISSUE_TEMPLATE/test.md

This file was deleted.

23 changes: 0 additions & 23 deletions src/very_good_flame_game/.github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

Loading

0 comments on commit 2191d9e

Please sign in to comment.