From 491b9b673f612550c583cd76230abf8f9127cca5 Mon Sep 17 00:00:00 2001 From: Eli <88557639+lishaduck@users.noreply.github.com> Date: Tue, 12 Sep 2023 22:06:41 -0500 Subject: [PATCH] chore: update settings Also, I added the `.env.example` while I was at it. --- .env.example | 4 ++++ .gitignore | 1 + .vscode/extensions.json | 3 ++- .vscode/settings.json | 42 ++++++++++++++++++++++++++++++++++++++--- pubspec.yaml | 8 ++++---- 5 files changed, 50 insertions(+), 8 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..9025902 --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +PROJECT_ID="648b3836d14e06cddc4e" +API_ENDPOINT="https://cloud.appwrite.io/v1" +DATABASE_ID="649f3267b89f7b4dfc4b" +COLLECTION_ID="649f327c108ef9b8bfb2" diff --git a/.gitignore b/.gitignore index 764d999..234d7bd 100644 --- a/.gitignore +++ b/.gitignore @@ -62,6 +62,7 @@ doc/api/ # dotenv environment variables file .env* +!.env.example # Avoid committing generated Javascript files: *.dart.js diff --git a/.vscode/extensions.json b/.vscode/extensions.json index a01a0b1..8a98345 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -18,6 +18,7 @@ "foam.foam-vscode", "tyriar.luna-paint", "pflannery.vscode-versionlens", - "streetsidesoftware.code-spell-checker-spanish" + "streetsidesoftware.code-spell-checker-spanish", + "joshbolduc.commitlint" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 5c1609c..12352f0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -55,7 +55,8 @@ "*.dart": "${capture}.*.dart, ${capture}_*.dart", ".markdownlint*": "cspell.json, mlc_config.json", ".flutter-plugins": ".flutter-plugins-dependencies", - "dart_define.json": "custom_lint.log, untranslated.json" + "dart_define.json": "custom_lint.log, untranslated.json", + ".env": ".env.example" }, "sarif-viewer.connectToGithubCodeScanning": "off", "yaml.schemas": { @@ -77,7 +78,42 @@ "**/Thumbs.db": true, "**/.dart_tool": true }, - "l10nization.haveMetadatas": true, + "l10nization.haveDescription": true, "dart.renameFilesWithClasses": "prompt", - "dart.previewFlutterUiGuides": true + "dart.previewFlutterUiGuides": true, + "commitlint.config.extend.rules": { + "body-leading-blank": [1, "always"], + "body-max-line-length": [2, "always", 72], + "body-case": [1, "always", ["sentence-case"]], + "footer-leading-blank": [1, "always"], + "footer-max-line-length": [2, "always", 72], + "header-max-length": [2, "always", 50], + "scope-case": [2, "always", "lower-case"], + "subject-case": [ + 2, + "never", + ["sentence-case", "start-case", "pascal-case", "upper-case"] + ], + "subject-empty": [2, "never"], + "subject-full-stop": [2, "never", "."], + "type-case": [2, "always", "lower-case"], + "type-empty": [2, "never"], + "type-enum": [ + 2, + "always", + [ + "feat", + "fix", + "docs", + "perf", + "refactor", + "build", + "ci", + "revert", + "style", + "test", + "chore" + ] + ] + } } diff --git a/pubspec.yaml b/pubspec.yaml index 122a3b0..fa5efa1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -120,19 +120,19 @@ dart_define: variables: - name: PROJECT_ID description: Appwrite project ID - default: 648b3836d14e06cddc4e + default: pirate-code required: false - name: API_ENDPOINT description: Appwrite API endpoint - default: https://cloud.appwrite.io/v1 + default: http://localhost:80/v1 required: false - name: DATABASE_ID description: Appwrite database ID - default: 649f3267b89f7b4dfc4b + default: pirate-coins required: false - name: COLLECTION_ID description: Appwrite collection ID - default: 649f327c108ef9b8bfb2 + default: coins required: false # dart run flutter_launcher_icons