Initial commit
This commit is contained in:
commit
6f5f5a58f6
26
.editorconfig
Normal file
26
.editorconfig
Normal file
@ -0,0 +1,26 @@
|
||||
# Remove the line below if you want to inherit .editorconfig settings from higher directories
|
||||
root = true
|
||||
|
||||
# C# files
|
||||
[*.cs]
|
||||
|
||||
# Indentation and spacing
|
||||
indent_size = 4
|
||||
indent_style = space
|
||||
tab_width = 4
|
||||
|
||||
# Naming Conventions
|
||||
dotnet_naming_style.camel_case.capitalization = camel_case
|
||||
|
||||
# New line preferences
|
||||
csharp_new_line_before_open_brace = none
|
||||
csharp_new_line_before_else = false
|
||||
csharp_new_line_before_catch = false
|
||||
csharp_new_line_before_finally = false
|
||||
|
||||
# Wrapping preferences
|
||||
csharp_preserve_single_line_statements = true
|
||||
csharp_preserve_single_line_blocks = true
|
||||
|
||||
# Switch case
|
||||
csharp_indent_case_contents = true
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.vscode/
|
||||
[Oo]bj/
|
||||
[Bb]in/
|
31
justfile
Normal file
31
justfile
Normal file
@ -0,0 +1,31 @@
|
||||
default:
|
||||
@just --list
|
||||
|
||||
project_name := `printf '%s\n' "${PWD##*/}"`
|
||||
uppercase_project_name := capitalize(project_name)
|
||||
|
||||
setup:
|
||||
@dotnet new sln --name {{project_name}}
|
||||
@mkdir src
|
||||
@dotnet new classlib -o src/{{uppercase_project_name}}
|
||||
@dotnet new xunit -o src/{{uppercase_project_name}}.Tests
|
||||
@dotnet sln add src/{{uppercase_project_name}}/{{uppercase_project_name}}.csproj
|
||||
@dotnet sln add src/{{uppercase_project_name}}.Tests/{{uppercase_project_name}}.Tests.csproj
|
||||
@dotnet add src/{{uppercase_project_name}}/{{uppercase_project_name}}.csproj reference src/{{uppercase_project_name}}.Tests/{{uppercase_project_name}}.Tests.csproj
|
||||
|
||||
run:
|
||||
@dotnet run
|
||||
|
||||
build:
|
||||
@dotnet build src/{{uppercase_project_name}}/{{project_name}}.csproj
|
||||
@dotnet build src/{{uppercase_project_name}}.Tests/{{uppercase_project_name}}.Tests.csproj
|
||||
|
||||
publish: format
|
||||
@dotnet publish --configuration Release src/{{uppercase_project_name}}/{{project_name}}.csproj
|
||||
|
||||
format:
|
||||
@dotnet format src/{{uppercase_project_name}}
|
||||
@dotnet format src/{{uppercase_project_name}}.Tests
|
||||
|
||||
test: build
|
||||
@dotnet test src/{{uppercase_project_name}}.Tests
|
Loading…
Reference in New Issue
Block a user