Skip to content

Commit 9ec4999

Browse files
authored
feat: update to bit v-9.11.0 #80 (#81)
1 parent 7fc3e08 commit 9ec4999

File tree

85 files changed

+933
-757
lines changed

Some content is hidden

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

85 files changed

+933
-757
lines changed

.devcontainer/devcontainer.json

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "Bit.TemplatePlayground",
33
"image": "mcr.microsoft.com/dotnet/sdk:9.0",
44
"hostRequirements": {
5-
"cpus": 4
5+
"cpus": 8
66
},
7-
"onCreateCommand": "dotnet workload install wasm-tools",
7+
"onCreateCommand": "dotnet workload install wasm-tools && dotnet dev-certs https --trust",
88
"waitFor": "onCreateCommand",
99
"customizations": {
1010
"codespaces": {
@@ -14,23 +14,37 @@
1414
},
1515
"vscode": {
1616
"extensions": [
17+
"GitHub.copilot",
1718
"glenn2223.live-sass",
18-
"kevin-chatham.aspnetcorerazor-html-css-class-completion",
19+
"GitHub.copilot-chat",
20+
"ms-dotnettools.csharp",
21+
"ms-dotnettools.csdevkit",
22+
"ms-azuretools.vscode-docker",
1923
"DominicVonk.vscode-resx-editor",
20-
"ms-dotnetools.csharp",
21-
"ms-dotnettools.vscode-dotnet-runtime",
22-
"ms-dotnettools.csdevkit"
24+
"ms-vscode-remote.remote-containers",
25+
"ms-dotnettools.blazorwasm-companion",
26+
"ms-dotnettools.vscode-dotnet-runtime"
2327
]
2428
}
2529
},
2630
"forwardPorts": [
27-
4259,
31+
2054,
32+
2208,
33+
2203,
34+
4047,
2835
5000,
29-
5215
36+
5223
3037
],
3138
"features": {
32-
"ghcr.io/devcontainers/features/node": {},
33-
"ghcr.io/devcontainers/features/python": {}
39+
"ghcr.io/devcontainers/features/python": {},
40+
"ghcr.io/devcontainers/features/powershell:1": {},
41+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
42+
"ghcr.io/devcontainers/features/node:1": { "version": "23" },
43+
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
44+
"version": "latest",
45+
"helm": "latest",
46+
"minikube": "latest"
47+
}
3448
},
3549
"remoteEnv": {
3650
"ASPNETCORE_ENVIRONMENT": "Development"

.github/copilot-instructions.md

Lines changed: 17 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# copilot-instructions.md
1+
# GitHub Copilot Instructions
2+
3+
## Key Technologies
24

3-
### Technologies
45
- **C# 13.0**
56
- **ASP.NET Core 9.0**
67
- **Blazor**: Component-based web UI framework
7-
- **.NET MAUI**: Cross-platform app development
8+
- **.NET MAUI Blazor Hybrid**: Cross-platform app development
89
- **ASP.NET Core Identity**: Authentication and authorization
910
- **Entity Framework Core**: Data access
1011
- **SignalR**: Real-time communication
@@ -15,7 +16,7 @@
1516
- **TypeScript**: Type-safe JavaScript development
1617
- **SCSS**: Advanced CSS preprocessing
1718

18-
### Best Practices
19+
## Coding Conventions & Best Practices
1920

2021
1. **Follow the established project structure**: Adhere to the defined layout for consistency.
2122
2. **Use Bit.BlazorUI Components**: Prioritize using components from the Bit.BlazorUI library over generic HTML to ensure UI consistency and leverage built-in features.
@@ -24,49 +25,26 @@
2425
5. **Implement Structured Logging**: Use structured logging for clear, queryable application logs.
2526
6. **Adhere to Security Best Practices**: Implement robust authentication and authorization patterns.
2627
7. **Use Async Programming**: Employ `async/await` for I/O-bound operations to prevent blocking threads.
27-
8. **Utilize Latest C# Features**: Write modern, concise, and efficient code by using the latest C# language features.
28-
9. **Leverage Implicit Usings**: Take advantage of global using statements.
28+
8. **Modern C#**: Write modern, concise, and efficient code by using the latest C# language features, including implicit usings and global using statements.
2929
10. **Respect .editorconfig**: Adhere to the `.editorconfig` file for consistent code style across all IDEs.
30-
12. **Prefer razor.cs code-behind files**: Use `.razor.cs` files for component logic instead of @code blocks in `.razor` files.
31-
13. **Prefer razor.scss files**: Use `.razor.scss` files for component styles instead of inline styles in `.razor` files.
32-
33-
### Rules for Using DeepWiki
34-
35-
The `deepwiki` MCP tool is essential for this project. Use it not only to answer questions but also to guide **code modifications**.
36-
For the topics below, you **MUST** consult `deepwiki` to find correct implementations and usage patterns before writing or changing any code.
30+
11. **Prefer razor.cs code-behind files**: Use `.razor.cs` files for component logic instead of @code blocks in `.razor` files.
31+
12. **Prefer razor.scss files**: Use `.razor.scss` files for component styles instead of inline styles in `.razor` files.
32+
13. **After applying changes, make sure project builds successfully**: Always verify that the project builds without errors after making changes.
3733

38-
**RULE 1:** If a task (which includes answering a question or performing a code modification) involves the use of bit BlazorUI components (e.g., `BitButton`, `BitTooltip`, `BitTextField`), or refers to `bitplatform`, `bit Bswup`, `bit Butil`, `bit Besql`, or `bit Boilerplate`,
39-
you **MUST** use the `deepwiki` mcp tool to find the correct implementation and usage patterns before writing or changing any code.
34+
### Rules for Using MCP
4035

41-
**RULE 1 Command:**
42-
`deepwiki fetch bitfoundation/bitplatform`
36+
**RULE 1:** If a task (question, code modification or review) involves the use of bit BlazorUI components (e.g., `BitButton`, `BitTooltip`, `BitTextField`),
37+
or refers to `bitplatform`, `bit Bswup`, `bit Butil`, `bit Besql`, or `bit Boilerplate`, or involves UI components without explicitly specifying their UI toolkit,
38+
you **MUST** use the deepwiki's `ask_question` mcp tool to find the correct implementation and usage patterns of `bitfoundation/bitplatform` deep wiki before writing or changing any code.
4339

4440
**End of RULE 1**
4541

46-
**RULE 2:** If a task (question or code modification) involves mappers, or refers to `mapperly`, `map`, `project`, or `patch`, you **MUST** use the `deepwiki` mcp tool to find the correct implementation before writing or changing any code.
47-
48-
**RULE 2 Command:**
49-
`deepwiki fetch riok/mapperly`
42+
**RULE 2:** If a task (question, code modification, or review) involves Microsoft technologies such as C#, F#, ASP.NET Core, Microsoft.Extensions, NuGet, Entity Framework, Blazor or the `dotnet` runtime,
43+
you **MUST** use the `microsoft.docs.mcp` server to search Microsoft's latest official documentation for detailed and up-to-date information before responding to specific or narrowly defined questions.
5044

5145
**End of RULE 2**
5246

53-
**RULE 3:** If a task (question or code modification) involves .NET MAUI, or refers to `xaml`, `Android`, `iOS`, or `Windows`, you **MUST** use the `deepwiki` mcp tool to find the correct implementation before writing or changing any code.
54-
5547
**RULE 3 Command:**
56-
`deepwiki fetch dotnet/maui`
57-
58-
**End of RULE 3**
59-
60-
**RULE 4:** If a task (question or code modification) involves Hangfire, or refers to `background job` or `recurring jobs`, you **MUST** use the `deepwiki` mcp tool to find the correct implementation before writing or changing any code.
61-
62-
**RULE 4 Command:**
63-
`deepwiki fetch HangfireIO/Hangfire`
64-
65-
**End of RULE 4**
66-
67-
**RULE 5:** If a task (question or code modification) involves file storage, or refers to `fluent storage` or `S3`, you **MUST** use the `deepwiki` mcp tool to find the correct implementation before writing or changing any code.
68-
69-
**RULE 5 Command:**
70-
`deepwiki fetch robinrodricks/FluentStorage`
48+
Use Playwright MCP tools like browser_navigate for URLs, browser_click for interactions, and browser_snapshot for page analysis.
7149

72-
**End of RULE 5**
50+
**End of RULE 3**
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Bit.TemplatePlayground Production CD
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "main" ]
7+
8+
jobs:
9+
build_and_deploy_prod:
10+
name: build and deploy to production
11+
uses: ./.github/workflows/cd-template.yml
12+
with:
13+
ENV_NAME: Production
14+
secrets: inherit

0 commit comments

Comments
 (0)