Skip to content

Commit 477620d

Browse files
committed
chore(solution): apply https://github.com/TheAngryByrd/MiniScaffold repo template
1 parent e9b4e47 commit 477620d

Some content is hidden

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

58 files changed

+5005
-1
lines changed

.config/dotnet-tools.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"dotnet-reportgenerator-globaltool": {
6+
"version": "5.3.11",
7+
"commands": [
8+
"reportgenerator"
9+
]
10+
},
11+
"paket": {
12+
"version": "8.0.3",
13+
"commands": [
14+
"paket"
15+
]
16+
},
17+
"fsharp-analyzers": {
18+
"version": "0.27.0",
19+
"commands": [
20+
"fsharp-analyzers"
21+
]
22+
},
23+
"fantomas": {
24+
"version": "6.3.16",
25+
"commands": [
26+
"fantomas"
27+
]
28+
},
29+
"fsdocs-tool": {
30+
"version": "20.0.1",
31+
"commands": [
32+
"fsdocs"
33+
]
34+
}
35+
}
36+
}

.devcontainer/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# [Choice] Debian version (use bullseye on local arm64/Apple Silicon): bookworm, bullseye, buster
2+
ARG VARIANT="bookworm"
3+
FROM buildpack-deps:${VARIANT}-curl
4+
5+
6+
ENV \
7+
# Enable detection of running in a container
8+
DOTNET_RUNNING_IN_CONTAINER=true \
9+
DOTNET_ROOT=/usr/share/dotnet/ \
10+
DOTNET_NOLOGO=true \
11+
DOTNET_CLI_TELEMETRY_OPTOUT=false\
12+
DOTNET_USE_POLLING_FILE_WATCHER=true
13+
14+
15+
# [Optional] Uncomment this section to install additional OS packages.
16+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
17+
# && apt-get -y install --no-install-recommends <your-package-list-here>

.devcontainer/devcontainer.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"name": "dotnet",
3+
// Set the build context one level higher so we can grab metadata like global.json
4+
"context": "..",
5+
"dockerFile": "Dockerfile",
6+
"forwardPorts": [
7+
0
8+
],
9+
"features": {
10+
// https://github.com/devcontainers/features/blob/main/src/common-utils/README.md
11+
"ghcr.io/devcontainers/features/common-utils:2": {
12+
"installZsh": true,
13+
"installOhMyZshConfig": true,
14+
"configureZshAsDefaultShell": true,
15+
"username": "vscode",
16+
"userUid": "1000",
17+
"userGid": "1000",
18+
"upgradePackages": true
19+
},
20+
// https://github.com/devcontainers/features/blob/main/src/github-cli/README.md
21+
"ghcr.io/devcontainers/features/github-cli:1": {},
22+
// https://github.com/devcontainers-contrib/features/blob/main/src/starship/README.md
23+
"ghcr.io/devcontainers-contrib/features/starship:1": {},
24+
// https://github.com/devcontainers/features/blob/main/src/dotnet/README.md
25+
"ghcr.io/devcontainers/features/dotnet:2": {
26+
"version": "7.0",
27+
"additionalVersions": "6.0"
28+
}
29+
},
30+
"overrideFeatureInstallOrder": [
31+
"ghcr.io/devcontainers/features/common-utils",
32+
"ghcr.io/devcontainers/features/github-cli",
33+
"ghcr.io/devcontainers-contrib/features/starship",
34+
"ghcr.io/devcontainers/features/dotnet"
35+
],
36+
"customizations": {
37+
"vscode": {
38+
// Add the IDs of extensions you want installed when the container is created.
39+
"extensions": [
40+
"ms-dotnettools.csharp",
41+
"Ionide.Ionide-fsharp",
42+
"tintoy.msbuild-project-tools",
43+
"ionide.ionide-paket",
44+
"usernamehw.errorlens",
45+
"alefragnani.Bookmarks",
46+
"oderwat.indent-rainbow",
47+
"vscode-icons-team.vscode-icons",
48+
"EditorConfig.EditorConfig",
49+
"ms-azuretools.vscode-docker",
50+
"GitHub.vscode-pull-request-github",
51+
"github.vscode-github-actions"
52+
],
53+
"settings": {
54+
"terminal.integrated.defaultProfile.linux": "zsh",
55+
"csharp.suppressDotnetInstallWarning": true
56+
}
57+
}
58+
},
59+
"remoteUser": "vscode",
60+
"containerUser": "vscode",
61+
"containerEnv": {
62+
// Expose the local environment variable to the container
63+
// They are used for releasing and publishing from the container
64+
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}"
65+
},
66+
"onCreateCommand": {
67+
"enable-starship": "echo 'eval \"$(starship init zsh)\"' >> ~/.zshrc"
68+
},
69+
"postAttachCommand": {
70+
"restore": "dotnet tool restore && dotnet restore"
71+
},
72+
"waitFor": "updateContentCommand"
73+
}

.editorconfig

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# EditorConfig is awesome:
2+
http://EditorConfig.org
3+
4+
# top-most EditorConfig file
5+
root = true
6+
7+
# Default settings:
8+
# A newline ending every file
9+
# Use 4 spaces as indentation
10+
[*]
11+
insert_final_newline = true
12+
indent_style = space
13+
indent_size = 4
14+
trim_trailing_whitespace = true
15+
end_of_line = lf
16+
17+
[*.{fs,fsi,fsx,config}]
18+
# https://fsprojects.github.io/fantomas/docs/end-users/Configuration.html
19+
charset = utf-8
20+
trim_trailing_whitespace = true
21+
max_line_length=100
22+
fsharp_multiline_bracket_style = stroustrup
23+
fsharp_keep_max_number_of_blank_lines=2
24+
fsharp_max_array_or_list_number_of_items=1
25+
fsharp_array_or_list_multiline_formatter=number_of_items
26+
fsharp_max_infix_operator_expression=10
27+
fsharp_multi_line_lambda_closing_newline=true
28+
29+
# Visual Studio Solution Files
30+
[*.sln]
31+
indent_style = tab
32+
33+
# XML project files
34+
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj,sfproj}]
35+
indent_size = 2
36+
37+
# XML config files
38+
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
39+
indent_size = 2
40+
41+
# Markdown Files
42+
[*.{md,mdx}]
43+
trim_trailing_whitespace = false
44+
45+
# Bash Files
46+
[*.{sh}]
47+
end_of_line = lf
48+
49+
# Batch Files
50+
[*.{cmd,bat}]
51+
end_of_line = crlf
52+
53+
# Powershell Files
54+
[*.{ps1, psm1}]
55+
end_of_line = crlf
56+
57+
# Paket files
58+
[paket.*]
59+
trim_trailing_whitespace = true
60+
indent_size = 2
61+
62+
[*.paket.references]
63+
trim_trailing_whitespace = true
64+
indent_size = 2
65+
66+
67+
# YAML Files
68+
[*.{yml,yaml}]
69+
indent_size = 2
70+
indent_style = space

.fantomasignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore AssemblyInfo files
2+
AssemblyInfo.fs

.git-blame-ignore-revs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This file contains a list of git hashes of revisions to be ignored by git
2+
# These revisions are considered "unimportant" in
3+
# that they are unlikely to be what you are interested in when blaming.
4+
# Like formatting with Fantomas
5+
# https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
6+
# Add formatting commits here

.gitattributes

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Auto detect text files
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp text=auto eol=lf
6+
*.vb diff=csharp text=auto eol=lf
7+
*.fs diff=csharp text=auto eol=lf
8+
*.fsi diff=csharp text=auto eol=lf
9+
*.fsx diff=csharp text=auto eol=lf
10+
*.sln text eol=crlf merge=union
11+
*.csproj merge=union
12+
*.vbproj merge=union
13+
*.fsproj merge=union
14+
*.dbproj merge=union
15+
*.sh text eol=lf
16+
17+
# Standard to msysgit
18+
*.doc diff=astextplain
19+
*.DOC diff=astextplain
20+
*.docx diff=astextplain
21+
*.DOCX diff=astextplain
22+
*.dot diff=astextplain
23+
*.DOT diff=astextplain
24+
*.pdf diff=astextplain
25+
*.PDF diff=astextplain
26+
*.rtf diff=astextplain
27+
*.RTF diff=astextplain

.github/ISSUE_TEMPLATE.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Description
2+
3+
Please insert a description of your problem or question.
4+
5+
## Error messages, screenshots
6+
7+
Please add any error logs or screenshots if available.
8+
9+
## Failing test, failing GitHub repo, or reproduction steps
10+
11+
Please add either a failing test, a GitHub repo of the problem or detailed reproduction steps.
12+
13+
## Expected Behavior
14+
15+
Please define what you would expect the behavior to be like.
16+
17+
## Known workarounds
18+
19+
Please provide a description of any known workarounds.
20+
21+
## Other information
22+
23+
* Operating System:
24+
- [ ] windows [insert version here]
25+
- [ ] macOs [insert version]
26+
- [ ] linux [insert flavor/version here]
27+
* Platform
28+
- [ ] dotnet core
29+
- [ ] dotnet full
30+
- [ ] mono
31+
* Branch or release version:

.github/ISSUE_TEMPLATE/bug_report.md

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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Proposed Changes
2+
3+
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
4+
5+
## Types of changes
6+
7+
What types of changes does your code introduce to FSharp.Control.R3?
8+
_Put an `x` in the boxes that apply_
9+
10+
- [ ] Bugfix (non-breaking change which fixes an issue)
11+
- [ ] New feature (non-breaking change which adds functionality)
12+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
13+
14+
15+
## Checklist
16+
17+
_Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._
18+
19+
- [ ] Build and tests pass locally
20+
- [ ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
21+
- [ ] I have added necessary documentation (if appropriate)
22+
23+
## Further comments
24+
25+
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

0 commit comments

Comments
 (0)