From edcb76180522823a1ff0510100f21905465e890f Mon Sep 17 00:00:00 2001 From: lumpsoid Date: Sat, 28 Dec 2024 12:15:38 +0100 Subject: [PATCH] chore: added github and vscode files --- .github/PULL_REQUEST_TEMPLATE.md | 23 +++++++++++ .github/cspell.json | 25 ++++++++++++ .github/dependabot.yaml | 10 +++++ .github/workflows/main.yaml | 29 ++++++++++++++ .vscode/extensions.json | 9 +++++ .vscode/launch.json | 68 +++++++------------------------- 6 files changed, 111 insertions(+), 53 deletions(-) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/cspell.json create mode 100644 .github/dependabot.yaml create mode 100644 .github/workflows/main.yaml create mode 100644 .vscode/extensions.json diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..6b9372e --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,23 @@ + + +## Description + + + +## Type of Change + + + +- [ ] ✨ 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 diff --git a/.github/cspell.json b/.github/cspell.json new file mode 100644 index 0000000..f82ee7e --- /dev/null +++ b/.github/cspell.json @@ -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" + ] +} diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..8ce9275 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "pub" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..3f127f0 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,29 @@ +name: test_to_get_github + +concurrency: + group: $-$ + cancel-in-progress: true + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + semantic-pull-request: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1 + + build: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 + with: + flutter_channel: stable + + spell-check: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1 + with: + includes: | + **/*.md + modified_files_only: false diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..5500bce --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,9 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "dart-code.dart-code", + "dart-code.flutter", + "felixangelov.bloc" + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json index d2c8e21..b4e33ce 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,68 +5,30 @@ "version": "0.2.0", "configurations": [ { - "name": "octimemo", + "name": "Launch development", "request": "launch", "type": "dart", - "program": "lib/main.dart", + "program": "lib/main_development.dart", + "args": [ + "--flavor", + "development", + "--target", + "lib/main_development.dart" + ] }, { - "name": "octimemo (profile mode)", + "name": "Launch staging", "request": "launch", "type": "dart", - "flutterMode": "profile" + "program": "lib/main_staging.dart", + "args": ["--flavor", "staging", "--target", "lib/main_staging.dart"] }, { - "name": "octimemo (release mode)", + "name": "Launch production", "request": "launch", "type": "dart", - "flutterMode": "release" - }, - { - "name": "local_sqflite_api", - "cwd": "packages/local_sqflite_api", - "request": "launch", - "type": "dart" - }, - { - "name": "note_sqflite_api", - "cwd": "packages/note_sqflite_api", - "request": "launch", - "type": "dart" - }, - { - "name": "note_sqflite_api (profile mode)", - "cwd": "packages/note_sqflite_api", - "request": "launch", - "type": "dart", - "flutterMode": "profile" - }, - { - "name": "note_sqflite_api (release mode)", - "cwd": "packages/note_sqflite_api", - "request": "launch", - "type": "dart", - "flutterMode": "release" - }, - { - "name": "notes_repository", - "cwd": "packages/notes_repository", - "request": "launch", - "type": "dart" - }, - { - "name": "notes_repository (profile mode)", - "cwd": "packages/notes_repository", - "request": "launch", - "type": "dart", - "flutterMode": "profile" - }, - { - "name": "notes_repository (release mode)", - "cwd": "packages/notes_repository", - "request": "launch", - "type": "dart", - "flutterMode": "release" + "program": "lib/main_production.dart", + "args": ["--flavor", "production", "--target", "lib/main_production.dart"] } ] -} \ No newline at end of file +}