Skip to content

Commit 07722f1

Browse files
committed
first comnit
0 parents  commit 07722f1

File tree

205 files changed

+22273
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+22273
-0
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Global code ownership
2+
* @chornthorn

.github/dependabot.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
version: 2
2+
updates:
3+
# Root level dependencies
4+
- package-ecosystem: "pub"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
day: "monday"
9+
time: "09:00"
10+
open-pull-requests-limit: 10
11+
labels:
12+
- "dependencies"
13+
- "dart"
14+
commit-message:
15+
prefix: "deps"
16+
include: "scope"
17+
18+
# Example app dependencies
19+
- package-ecosystem: "pub"
20+
directory: "/example"
21+
schedule:
22+
interval: "weekly"
23+
day: "monday"
24+
time: "09:00"
25+
open-pull-requests-limit: 5
26+
labels:
27+
- "dependencies"
28+
- "example"
29+
commit-message:
30+
prefix: "deps"
31+
include: "scope"
32+
33+
# Documentation dependencies
34+
- package-ecosystem: "npm"
35+
directory: "/docs"
36+
schedule:
37+
interval: "weekly"
38+
day: "monday"
39+
time: "09:00"
40+
open-pull-requests-limit: 5
41+
labels:
42+
- "dependencies"
43+
- "docs"
44+
commit-message:
45+
prefix: "deps"
46+
include: "scope"
47+
48+
# Modular Core package dependencies
49+
- package-ecosystem: "pub"
50+
directory: "/packages/modular_core"
51+
schedule:
52+
interval: "weekly"
53+
day: "monday"
54+
time: "09:00"
55+
open-pull-requests-limit: 5
56+
labels:
57+
- "dependencies"
58+
- "modular_core"
59+
commit-message:
60+
prefix: "deps"
61+
include: "scope"
62+
63+
# Modular Flutter package dependencies
64+
- package-ecosystem: "pub"
65+
directory: "/packages/modular_flutter"
66+
schedule:
67+
interval: "weekly"
68+
day: "monday"
69+
time: "09:00"
70+
open-pull-requests-limit: 5
71+
labels:
72+
- "dependencies"
73+
- "modular_flutter"
74+
commit-message:
75+
prefix: "deps"
76+
include: "scope"
77+
78+
# ViewModel package dependencies
79+
- package-ecosystem: "pub"
80+
directory: "/packages/viewmodel"
81+
schedule:
82+
interval: "weekly"
83+
day: "monday"
84+
time: "09:00"
85+
open-pull-requests-limit: 5
86+
labels:
87+
- "dependencies"
88+
- "viewmodel"
89+
commit-message:
90+
prefix: "deps"
91+
include: "scope"

.github/pubspec.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: flutter_shared_workspace
2+
3+
workspace:
4+
- packages/khode_core
5+
- packages/core_utils
6+
- packages/viewmodel
7+
- packages/data_source
8+
- packages/storage/storage
9+
- packages/storage/secure_storage
10+
- packages/storage/persistent_storage
11+
- packages/storage/token_storage
12+
- packages/storage/user_storage
13+
- packages/clean_architecture
14+
15+
environment:
16+
sdk: ">=3.8.1 <4.0.0"
17+
18+
dev_dependencies:
19+
melos: ^7.0.0-dev.9
20+
21+
melos:
22+
scripts:
23+
# Run tests for all packages
24+
test:
25+
description: Run tests for all packages
26+
steps:
27+
- melos run setup
28+
- melos exec --concurrency=3 --fail-fast -- dart test
29+
packageFilters:
30+
dirExists: "test"
31+
32+
# Format code for all packages
33+
format:
34+
description: Format code for all packages
35+
run: dart format . --set-exit-if-changed
36+
37+
# Analyze code for all packages
38+
analyze:
39+
description: Analyze code for all packages
40+
steps:
41+
- dart analyze
42+
43+
# Clean all packages
44+
clean:
45+
description: Clean all packages
46+
run: flutter clean
47+
packageFilters:
48+
flutter: true
49+
50+
# Get dependencies for all packages
51+
get:
52+
description: Get dependencies for all packages
53+
run: dart pub get
54+
55+
# Check for outdated dependencies
56+
outdated:
57+
description: Check for outdated dependencies
58+
run: dart pub outdated

.github/pull_request_template.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
## Description
2+
3+
Brief description of what this PR accomplishes and why it's needed.
4+
5+
## Changes
6+
7+
- [ ] Change 1: Description
8+
- [ ] Change 2: Description
9+
- [ ] Change 3: Description
10+
11+
## Type of Change
12+
13+
- [ ] Bug fix (non-breaking change which fixes an issue)
14+
- [ ] New feature (non-breaking change which adds functionality)
15+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
16+
- [ ] Documentation update
17+
- [ ] Code refactoring
18+
- [ ] Dependency update
19+
- [ ] Performance improvement
20+
- [ ] Test improvement
21+
22+
## Packages Affected
23+
24+
- [ ] `modular_core`
25+
- [ ] `modular_flutter`
26+
- [ ] `viewmodel`
27+
- [ ] Documentation
28+
- [ ] Example app
29+
- [ ] Other: ******\_******
30+
31+
## Testing
32+
33+
- [ ] Tested locally
34+
- [ ] Unit tests added/updated
35+
- [ ] Unit tests pass
36+
- [ ] Integration tests added/updated
37+
- [ ] Integration tests pass
38+
- [ ] Example app tested
39+
- [ ] Manual testing completed
40+
- [ ] Documentation builds successfully
41+
42+
## Breaking Changes
43+
44+
If this PR introduces breaking changes, please describe them here and provide migration instructions:
45+
46+
```
47+
// Before
48+
// Code example
49+
50+
// After
51+
// Code example
52+
```
53+
54+
## Screenshots/Videos
55+
56+
If applicable, add screenshots or videos to help explain your changes.
57+
58+
## Additional Context
59+
60+
Add any other context about the PR here.
61+
62+
## Related Issues
63+
64+
- Closes #(issue number)
65+
- Relates to #(issue number)
66+
- Depends on #(PR number)
67+
68+
## Checklist
69+
70+
- [ ] My code follows the project's style guidelines
71+
- [ ] I have performed a self-review of my own code
72+
- [ ] I have commented my code, particularly in hard-to-understand areas
73+
- [ ] I have made corresponding changes to the documentation
74+
- [ ] My changes generate no new warnings
75+
- [ ] I have added tests that prove my fix is effective or that my feature works
76+
- [ ] New and existing unit tests pass locally with my changes
77+
- [ ] Any dependent changes have been merged and published
78+
79+
## Reviewer Notes
80+
81+
Any specific areas you'd like reviewers to focus on or questions you have about the implementation.

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
name: Test Packages
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Flutter
19+
uses: subosito/flutter-action@v2
20+
with:
21+
channel: "stable"
22+
cache: true
23+
24+
- name: Setup Melos
25+
run: dart pub global activate melos
26+
27+
- name: Bootstrap workspace
28+
run: melos bootstrap
29+
30+
- name: Format check
31+
run: melos run format
32+
33+
- name: Analyze packages
34+
run: melos run analyze
35+
36+
# - name: Run tests
37+
# run: melos run test

.gitignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.build/
9+
.buildlog/
10+
.history
11+
.svn/
12+
.swiftpm/
13+
migrate_working_dir/
14+
15+
# IntelliJ related
16+
*.iml
17+
*.ipr
18+
*.iws
19+
.idea/
20+
21+
# Flutter/Dart/Pub related
22+
**/doc/api/
23+
**/ios/Flutter/.last_build_id
24+
.dart_tool/
25+
.flutter-plugins
26+
.flutter-plugins-dependencies
27+
.pub-cache/
28+
.pub/
29+
/build/*
30+
31+
# Symbolication related
32+
app.*.symbols
33+
34+
# Obfuscation related
35+
app.*.map.json
36+
37+
# Android Studio will place build artifacts here
38+
/android/app/debug
39+
/android/app/profile
40+
/android/app/release
41+
42+
.aider*
43+
.cursor/*
44+
!.cursor/rules/
45+
.vscode/*
46+
!.vscode/dart.code-snippets
47+
!.vscode/settings.json
48+
!.vscode/tasks.json
49+
.kiro*

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Thorn Chorn
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)