Skip to content

Commit 6c4c3ee

Browse files
committed
Setup library with miniScaffold template
1 parent 4811a49 commit 6c4c3ee

Some content is hidden

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

73 files changed

+6254
-429
lines changed

.config/dotnet-tools.json

+28-4
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,41 @@
22
"version": 1,
33
"isRoot": true,
44
"tools": {
5-
"paket": {
6-
"version": "5.249.2",
5+
"sourcelink": {
6+
"version": "3.1.1",
77
"commands": [
8-
"paket"
8+
"sourcelink"
9+
]
10+
},
11+
"dotnet-reportgenerator-globaltool": {
12+
"version": "4.2.15",
13+
"commands": [
14+
"reportgenerator"
915
]
1016
},
1117
"fake-cli": {
12-
"version": "5.20.3",
18+
"version": "5.20.0",
1319
"commands": [
1420
"fake"
1521
]
22+
},
23+
"paket": {
24+
"version": "5.245.1",
25+
"commands": [
26+
"paket"
27+
]
28+
},
29+
"fcswatch-cli": {
30+
"version": "0.7.14",
31+
"commands": [
32+
"fcswatch"
33+
]
34+
},
35+
"fsharp-analyzers": {
36+
"version": "0.4.0",
37+
"commands": [
38+
"fsharp-analyzers"
39+
]
1640
}
1741
}
1842
}

.devcontainer/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM fsharp:netcore
2+
3+
# Copy endpoint specific user settings into container to specify
4+
# .NET Core should be used as the runtime.
5+
COPY settings.vscode.json /root/.vscode-remote/data/Machine/settings.json
6+
7+
# Install git, process tools
8+
RUN apt-get update && apt-get -y install git procps

.devcontainer/devcontainer.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "MiniScaffold",
3+
"dockerFile": "Dockerfile",
4+
"appPort": [8080],
5+
"extensions": [
6+
"ionide.ionide-fsharp",
7+
"ms-dotnettools.csharp",
8+
"editorconfig.editorconfig",
9+
"ionide.ionide-paket",
10+
"ionide.ionide-fake"
11+
]
12+
}

.devcontainer/settings.vscode.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"FSharp.fsacRuntime":"netcore",
3+
"FSharp.enableAnalyzers": true,
4+
"FSharp.analyzersPath": [
5+
"./packages/analyzers"
6+
]
7+
}

.editorconfig

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
15+
[*.{fs,fsi,fsx,config}]
16+
charset = utf-8
17+
trim_trailing_whitespace = true
18+
19+
[paket.*]
20+
trim_trailing_whitespace = true
21+
indent_size = 2
22+
23+
[*.paket.references]
24+
trim_trailing_whitespace = true
25+
indent_size = 2

.gitattributes

+27
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

+31
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

+35
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.
+17
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

+25
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 GraphBLAS-sharp?
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...

.github/workflows/build.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build master
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, windows-latest, macOS-latest]
11+
dotnet: [3.1.100]
12+
runs-on: ${{ matrix.os }}
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Setup .NET Core
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: ${{ matrix.dotnet }}
20+
- name: Build
21+
if: runner.os != 'Windows'
22+
run: |
23+
chmod +x ./build.sh
24+
./build.sh
25+
env:
26+
# Work around https://github.com/actions/setup-dotnet/issues/29
27+
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
28+
CI: true
29+
- name: Build
30+
if: runner.os == 'Windows'
31+
run: ./build.cmd
32+
env:
33+
# Work around https://github.com/actions/setup-dotnet/issues/29
34+
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
35+
CI: true

0 commit comments

Comments
 (0)