Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @Werecodent/developers
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Thank you for your interest in contributing.

Please first discuss the change you wish to make via issue/request, email, or any other method with the owners of this repository before making changes. Failure to do so will likely lead to a declined pull request regardless of quality.

Make sure to refer to and follow the [code of conduct](CODE_OF_CONDUCT.md). For environment setup, refer to the [support](SUPPORT.md) page.
Make sure to refer to and follow the [code of conduct](./CODE_OF_CONDUCT.md). For environment setup, refer to the [support](./SUPPORT.md) page.

## Quality Requirements

Expand Down
52 changes: 27 additions & 25 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
# Support

If you encounter any issue using the project, please create an issue for the project. Make sure to refer to and follow the [code of conduct](CODE_OF_CONDUCT.md).
If you encounter any issue using the project, please create an issue for the project. Make sure to refer to and follow the [code of conduct](./CODE_OF_CONDUCT.md).

# Environment Setup

Ensure you understand the [contributing](CONTRIBUTING.md) requirements, then follow the instructions below relevant to your environment.
Ensure you understand the [contributing](./CONTRIBUTING.md) requirements, then follow the instructions below relevant to your environment.

## Mac Environment Recommended Setup

1) Install Command Line Developer Tools via the Terminal:
A) Check if installed: ‘xcode-select -p’
B) If not, run: ‘code-select —install’
C) Verify git works: ‘git —version’
1. Check if installed: ‘xcode-select -p’
2. If not, run: ‘code-select —install’
3. Verify git works: ‘git —version’
2) Install [VS Code](https://code.visualstudio.com/docs/setup/mac) for development.
3) Install [Google Chrome](https://www.google.com/chrome) for debugging.
3) Install [Google Chrome](https://www.google.com/chrome) for debugging webpages.
4) Clone the repository in the editor, then:
A) Install all recommended extensions for the project.
B) Follow all prompts for signing in/downloads.
C) To see build options, run from terminal: "./build/run.sh --help"
D) Verify project state by running from terminal: "./build/run.sh test"
1. Install all recommended extensions for the project.
2. Follow all prompts for signing in/downloads.
3. To see build options, run from terminal: "./build/run.sh --help"
4. Verify project state by running from terminal: "./build/run.sh test"

## Linux Environment Recommended Setup

1) Install packages for:
A) [.NET frameworks](https://dotnet.microsoft.com/download)
B) [Mono](https://www.mono-project.com/download/stable/#download-lin)
C) [VS Code](https://code.visualstudio.com/docs/setup/linux)
2) Install [Google Chrome](https://www.google.com/chrome) for debugging.
1. [.NET frameworks](https://dotnet.microsoft.com/download)
2. [Mono](https://www.mono-project.com/download/stable/#download-lin)
3. [VS Code](https://code.visualstudio.com/docs/setup/linux)
2) Install [Google Chrome](https://www.google.com/chrome) for debugging webpages.
3) Clone the repository in the editor, then:
A) Install all recommended extensions for the project.
B) Run from terminal: "chmod +x ./build/run.sh"
C) To see build options, run from terminal: "./build/run.sh --help"
D) Verify project state by running from terminal: "./build/run.sh test"
1. Install all recommended extensions for the project.
2. Run from terminal: "chmod +x ./build/run.sh"
3. To see build options, run from terminal: "./build/run.sh --help"
4. Verify project state by running from terminal: "./build/run.sh test"

## Windows Environment Optional Setup

Expand All @@ -46,11 +46,13 @@ VS Code is still recommended (see above setups), but VS Community may be utilize

Set the following git configuration settings, replacing [xxx] with valid personal values:

1) git config --global user.name "[xxx]"
2) git config --global user.email "[xxx]@users.noreply.github.com"
3) git config --global user.signingKey [xxx]
4) git config --global tag.gpgSign true
5) git config --global commit.gpgSign true
6) git config --global push.gpgSign "if-asked"
```bash
git config --global user.name "[xxx]"
git config --global user.email "[xxx]@users.noreply.github.com"
git config --global user.signingKey [xxx]
git config --global tag.gpgSign true
git config --global commit.gpgSign true
git config --global push.gpgSign "if-asked"
```

Read more about GPG keys and why they must be set in the [contributing](CONTRIBUTING.md) requirements.
Read more about GPG keys and why they must be set in the [contributing](./CONTRIBUTING.md) requirements.
30 changes: 30 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Coverage

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
coverage:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 11.0.x

- name: Build & Check Test Coverage
shell: bash
run: ./build/run.sh coverage

- name: Upload Coverage
uses: codecov/codecov-action@v6
with:
directory: ./artifacts/coverage
token: ${{ Secrets.CODECOV_TOKEN }}
26 changes: 6 additions & 20 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,15 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- name: Checkout
uses: actions/checkout@v6

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
dotnet-version: 11.0.x

- name: Build & Test
run: ./build/run.sh test
shell: bash

coverage:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Build & Check Test Coverage
shell: bash
run: ./build/run.sh coverage
- name: Upload Coverage
uses: codecov/codecov-action@v6
with:
directory: ./artifacts/coverage
token: ${{ Secrets.CODECOV_TOKEN }}

50 changes: 50 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Pages

on:
push:
branches: [ main ]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 11.0.x

- name: Setup Pages
uses: actions/configure-pages@v6

- name: Build Site
run: ./build/run.sh buildSite
shell: bash

- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: ./artifacts/site

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/artifacts/bin/Terminal/Debug/net10.0/Terminal.dll",
"program": "${workspaceFolder}/artifacts/bin/Terminal/Debug/net11.0/Terminal.dll",
"args": [],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
Expand Down
21 changes: 14 additions & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"omnisharp.enableEditorConfigSupport": true,
"dotnet.formatting.organizeImportsOnFormat": true,
"dotnet.testWindow.enableTestExplorerDiff": false,
"dotnet.unitTests.runSettingsPath": "./tests/TestSettings.runsettings",
"dotnet.defaultSolution": "UltimateProjectStarter.slnx",
"dotnet.defaultSolution": "SharpProjectStarter.slnx",
"git.enableSmartCommit": true,
"git.enableCommitSigning": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
"source.organizeImports": "always"
},
"editor.rulers": [
120
Expand All @@ -19,13 +18,19 @@
"[xml]": {
"editor.defaultFormatter": "csharpier.csharpier-vscode"
},
"json.schemaDownload.trustedDomains": {
"https://raw.githubusercontent.com/dotnet/docfx/main/schemas/docfx.schema.json": true
},
"cSpell.words": [
"Analyser",
"autobuild",
"changefreq",
"cobertura",
"codecov",
"codeql",
"cooldown",
"cref",
"docfx",
"globaltool",
"Lindhart",
"Meziantou",
Expand All @@ -36,16 +41,18 @@
"runsettings",
"signoff",
"targetdir",
"Werebunny",
"Werecodent",
"xunit"
],
"cSpell.ignorePaths": [
"**/usr/local/share/dotnet",
"**/var/folders/",
".gitignore",
".editorconfig",
".vscode/",
"nuget.config",
"artifacts/"
"artifacts/",
"site/template/",
".editorconfig",
".gitignore",
"nuget.config"
],
}
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Ultimate Project Starter
# <img src="site/images/SharpProjectStarterLogo.svg" height=24px title="Logo" alt="" /> Sharp Project Starter

[![Build](https://github.com/Werecodent/UltimateProjectStarter/actions/workflows/integration.yml/badge.svg?branch=main)](https://github.com/Werecodent/UltimateProjectStarter/actions/workflows/integration.yml)
[![CodeCov Coverage](https://codecov.io/gh/Werecodent/UltimateProjectStarter/branch/main/graph/badge.svg)](https://codecov.io/gh/Werecodent/UltimateProjectStarter/branch/main)
[![Build](https://github.com/Werecodent/SharpProjectStarter/actions/workflows/integration.yml/badge.svg?branch=main)](https://github.com/Werecodent/SharpProjectStarter/actions/workflows/integration.yml) [![CodeCov Coverage](https://codecov.io/gh/Werecodent/SharpProjectStarter/branch/main/graph/badge.svg)](https://codecov.io/gh/Werecodent/SharpProjectStarter/branch/main) [![GitHub Sponsors](https://img.shields.io/github/sponsors/Werecodent?logo=githubsponsors)](https://github.com/sponsors/Werecodent)

(This project is under construction at the moment; be cautious of incomplete instructions.)

Expand All @@ -11,22 +10,27 @@ Everything you need to get a quick start for a C# project on GitHub! Useful as a
2) A variety of sample projects to fit whatever you want to do.
3) Build workflows with test coverage collection.
4) Clean project structure with all output directed to './artifacts'.
5) Even the start of a [documentation site](https://Werecodent.github.io/UltimateProjectStarter/) using GitHub pages.
5) Even the start of a [documentation site](https://Werecodent.github.io/SharpProjectStarter/) using GitHub pages.

## Instructions

Customize the project for your own use by following these steps:

1) Replace all instance of "Werecodent" with your organization's name (or empty).
2) Replace all instances of "UltimateProjectStarter" with your project's name.
2) Replace all instances of "SharpProjectStarter" & "Sharp Project Starter" with your project's name.
3) Install "CodeCov" as a GitHub app to the project/organization and set it up, or remove all references.
4) Tweak existing code as needed and begin coding.

## Documentation

The documentation site is located here: https://Werecodent.github.io/UltimateProjectStarter/
Visit the [documentation site](https://werecodent.github.io/SharpProjectStarter/) for more information and how to get started.

The raw files can be viewed from the [docs](docs) folder or built into a local site using Jekyll.
A local site can be built from the source code using the terminal command "./build/run.sh serveSite".

## Sponsors

<a href="https://github.com/Werecodent"><img src="https://github.com/Werecodent.png" width="40px" title="Werecodent" alt="Werecodent" /></a>
<a href="https://github.com/Werebunny"><img src="https://github.com/Werebunny.png" width="40px" title="Werebunny" alt="Werebunny" /></a>

## Contributing

Expand All @@ -45,7 +49,7 @@ View the [license](LICENSE) file for more details.
* [Coverlet](https://github.com/tonerdo/coverlet) + [ReportGenerator](https://danielpalme.github.io/ReportGenerator) + [CodeCov](https://codecov.io): For test coverage.
* [Bullseye](https://github.com/adamralph/bullseye) + [SimpleExec](https://github.com/adamralph/simple-exec) + [MinVer](https://github.com/adamralph/minver): For project building.
* [AsyncFixer](https://github.com/semihokur/AsyncFixer) + [MissingAwaitWarning](https://github.com/ykoksen/unused-task-warning) + [Meziantou.Analyzer](https://github.com/meziantou/Meziantou.Analyzer) + [Sonar](https://github.com/SonarSource/sonar-dotnet): For code analyzers.
* [DocFX](https://github.com/dotnet/docfx): For building the documentation site.
* [CSharpier](https://github.com/belav/csharpier): For formatting code.
* [GitHub](https://github.com): For hosting code.
* [Microsoft](https://visualstudio.microsoft.com/vs/features/net-development): For C# and editors.

File renamed without changes.
6 changes: 0 additions & 6 deletions docs/_config.yml

This file was deleted.

10 changes: 0 additions & 10 deletions docs/_includes/nav.html

This file was deleted.

50 changes: 0 additions & 50 deletions docs/_layouts/default.html

This file was deleted.

Loading
Loading