Skip to content

Commit 94eee3d

Browse files
committed
Initial commit
0 parents  commit 94eee3d

20 files changed

+1144
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
31+
32+
**Smartphone (please complete the following information):**
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
38+
39+
**Additional context**
40+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/dependabot.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
enable-beta-ecosystems: true
3+
updates:
4+
- directory: "/"
5+
open-pull-requests-limit: 5
6+
package-ecosystem: "pub"
7+
rebase-strategy: auto
8+
schedule:
9+
interval: "monthly"
10+
timezone: "UTC"

.github/workflows/checkout.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Checkout
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "master"
8+
- "develop"
9+
- "feature/**"
10+
- "bugfix/**"
11+
- "hotfix/**"
12+
- "support/**"
13+
paths:
14+
- "lib/**.dart"
15+
- "test/**.dart"
16+
- "example/**.dart"
17+
- "pubspec.yaml"
18+
pull_request:
19+
branches:
20+
- "master"
21+
- "develop"
22+
- "feature/**"
23+
- "bugfix/**"
24+
- "hotfix/**"
25+
- "support/**"
26+
paths:
27+
- "lib/**.dart"
28+
- "test/**.dart"
29+
- "example/**.dart"
30+
- "pubspec.yaml"
31+
32+
jobs:
33+
checkout:
34+
name: "Checkout"
35+
runs-on: ubuntu-latest
36+
defaults:
37+
run:
38+
working-directory: ./
39+
container:
40+
image: dart:beta
41+
timeout-minutes: 10
42+
steps:
43+
- name: 🚂 Get latest code
44+
uses: actions/checkout@v3
45+
46+
- name: 🚃 Cache pub modules
47+
uses: actions/cache@v2
48+
env:
49+
cache-name: cache-centrifuge-package
50+
with:
51+
path: |
52+
$PWD/.pub_cache/
53+
key: ${{ runner.os }}-centrifuge-${{ env.cache-name }}-${{ hashFiles('**/pubspec.yaml') }}
54+
55+
- name: 🗄️ Export pub cache directory
56+
run: export PUB_CACHE=$PWD/.pub_cache/
57+
58+
- name: 👷 Install Dependencies
59+
timeout-minutes: 1
60+
run: |
61+
dart pub get
62+
63+
- name: 🔎 Check format
64+
timeout-minutes: 1
65+
run: dart format --set-exit-if-changed -l 80 -o none lib/
66+
67+
- name: 📈 Check analyzer
68+
timeout-minutes: 1
69+
run: dart analyze --fatal-infos --fatal-warnings lib/
70+
71+
#- name: 🧪 Run tests
72+
# timeout-minutes: 2
73+
# run: |
74+
# dart run coverage:test_with_coverage -fb -o coverage -- \
75+
# --concurrency=6 --platform vm --coverage=./coverage --reporter=expanded test/ws_test.dart
76+
77+
#- name: 📥 Upload coverage to Codecov
78+
# timeout-minutes: 1
79+
# uses: codecov/codecov-action@v3
80+
# with:
81+
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos

.github/workflows/deploy.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Deploy
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "[0-9]+.[0-9]+.[0-9]+*"
8+
9+
jobs:
10+
deploy:
11+
name: "Deploy to Pub.dev"
12+
permissions:
13+
id-token: write # Required for authentication using OIDC
14+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1

.gitignore

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Don’t commit the following directories created by pub.
2+
.buildlog
3+
.dart_tool/
4+
.pub/
5+
build/
6+
packages
7+
*.packages
8+
.idea/
9+
doc
10+
11+
# Or the files created by dart2js.
12+
*.dart.js
13+
*.js_
14+
*.js.deps
15+
*.js.map
16+
17+
# Include when developing application packages.
18+
pubspec.lock
19+
coverage*
20+
21+
# Codegen
22+
*.g.dart
23+
24+
# Logs
25+
l/
26+
27+
# Miscellaneous
28+
*.class
29+
*.log
30+
*.pyc
31+
*.swp
32+
.DS_Store
33+
.atom/
34+
.buildlog/
35+
.history
36+
.svn/
37+
38+
# IntelliJ related
39+
*.iml
40+
*.ipr
41+
*.iws
42+
43+
# The .vscode folder contains launch configuration and tasks you configure in
44+
# VS Code which you may wish to be included in version control, so this line
45+
# is commented out by default.
46+
#.vscode/
47+
48+
# Flutter/Dart/Pub related
49+
**/doc/api/
50+
**/ios/Flutter/.last_build_id
51+
.flutter-plugins
52+
.flutter-plugins-dependencies
53+
.packages
54+
.pub-cache/
55+
/build/
56+
57+
# Web related
58+
lib/generated_plugin_registrant.dart
59+
60+
# Symbolication related
61+
app.*.symbols
62+
63+
# Obfuscation related
64+
app.*.map.json
65+
66+
# Android Studio will place build artifacts here
67+
/android/app/debug
68+
/android/app/profile
69+
/android/app/release
70+
71+
# Pana
72+
log.pana.json
73+
74+
# Test
75+
.coverage/
76+
/test/**/*.json
77+
/test/.test_coverage.dart

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["dart-code.dart-code"]
3+
}

.vscode/launch.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": []
4+
}

.vscode/settings.json

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"[dart]": {
3+
"editor.insertSpaces": true,
4+
"editor.tabSize": 2,
5+
"editor.suggest.snippetsPreventQuickSuggestions": false,
6+
"editor.suggestSelection": "first",
7+
"editor.tabCompletion": "onlySnippets",
8+
"editor.wordBasedSuggestions": false,
9+
"editor.selectionHighlight": false,
10+
"editor.defaultFormatter": "Dart-Code.dart-code",
11+
"editor.formatOnSave": true,
12+
"editor.formatOnType": true,
13+
"editor.formatOnPaste": true,
14+
"editor.codeActionsOnSave": {
15+
"source.fixAll": true,
16+
"source.organizeImports": true
17+
},
18+
"editor.quickSuggestions": {
19+
"comments": "on",
20+
"strings": "on",
21+
"other": "on"
22+
},
23+
"editor.links": true,
24+
"editor.rulers": [80]
25+
},
26+
"dart.lineLength": 80,
27+
"dart.doNotFormat": [
28+
"**.g.dart",
29+
"**.gql.dart",
30+
"**.freezed.dart",
31+
"**.config.dart",
32+
"**.mocks.dart",
33+
"**.gen.dart",
34+
"**.pb.dart",
35+
"**.pbenum.dart",
36+
"**.pbjson.dart",
37+
"**/generated/**"
38+
],
39+
40+
// Flutter Version Manager
41+
//"dart.flutterSdkPath": ".fvm/flutter_sdk",
42+
43+
// Remove .fvm files from search
44+
"search.exclude": {
45+
//"**/.fvm": true,
46+
".dart_tool": true,
47+
"coverage": true,
48+
"build": true
49+
},
50+
51+
// Remove from file watching
52+
"files.watcherExclude": {
53+
//"**/.fvm": true,
54+
".dart_tool": true,
55+
"coverage": true,
56+
"build": true
57+
},
58+
59+
// Causes the debug view to automatically appear when a breakpoint is hit. This
60+
// setting is global and not configurable per-language.
61+
"debug.openDebug": "openOnDebugBreak",
62+
"explorer.fileNesting.enabled": true,
63+
"explorer.fileNesting.expand": false,
64+
"explorer.fileNesting.patterns": {
65+
"pubspec.yaml": ".flutter-plugins, .packages, .dart_tool, .flutter-plugins-dependencies, .metadata, .packages, pubspec.lock, build.yaml, analysis_options.yaml, all_lint_rules.yaml, dart*.yaml, flutter*.yaml, icons_launcher.yaml",
66+
".gitignore": ".gitattributes, .gitmodules, .gitmessage, .mailmap, .git-blame*",
67+
"readme.*": "authors, backers.md, changelog*, citation*, code_of_conduct.md, codeowners, contributing.md, contributors, copying, credits, governance.md, history.md, license*, maintainers, readme*, security.md, sponsors.md",
68+
"*.dart": "$(capture).g.dart, $(capture).freezed.dart, $(capture).config.dart"
69+
}
70+
/* "files.associations": {
71+
"*.drift": "sql"
72+
}, */
73+
/* "highlight.regexes": {
74+
"(\"@\\s*.+\":\\s{0,1}{},)": {
75+
"filterFileRegex": ".*\\.arb",
76+
"decorations": [
77+
{
78+
"overviewRulerColor": "#d19a66",
79+
"backgroundColor": "#d19a66",
80+
"color": "#282c34",
81+
"fontWeight": "bold"
82+
}
83+
]
84+
}
85+
} */
86+
}

0 commit comments

Comments
 (0)