Skip to content

Commit

Permalink
Merge branch 'release/1.4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-sjogren committed Apr 12, 2024
2 parents 73f3f56 + 29d8c3d commit d57938b
Show file tree
Hide file tree
Showing 78 changed files with 135 additions and 597 deletions.
2 changes: 1 addition & 1 deletion Karls.Templates.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageType>Template</PackageType>
<PackageVersion>1.4.0</PackageVersion>
<PackageVersion>1.4.1</PackageVersion>
<PackageId>Karls.Templates</PackageId>
<Title>Karls Templates</Title>
<Authors>Karl-Johan Sjögren</Authors>
Expand Down
23 changes: 19 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,29 @@ dotnet new update
### Opinionated Solution

This template creates a solution with a single Core project (+tests) and
some default settings based on my own preferences. It can also include some
Github Actions/Dependabot specific stuff if passed the `--includeGithubActions`
flag.
some default settings based on my own preferences.

```bash
dotnet new karls-solution -n Company.CoolProject
```

Since version 1.4.0 a flag can be passed to also generate a frontend
project based on Vite and other tools. To have this just pass
`--addFrontendProject` when creating the project.

```bash
dotnet new karls-solution -n CoolProject --addFrontendProject
```

The project per default includes a set of Github Actions workflows.
If another CI tool is to be used these can be skipped by setting
`includeGithubActions` to `false`. This will still add a depenadbot
configuration though since I host all my projects on Github.

```bash
dotnet new karls-solution -n CoolProject --includeGithubActions=false
```

To see available options, run this.

```bash
Expand All @@ -46,4 +61,4 @@ dotnet new karls-solution --help

## References

Includes an adapted version of <https://github.com/hrvey/combine-prs-workflow/>
Includes an adapted version of <https://github.com/hrvey/combine-prs-workflow/>
3 changes: 3 additions & 0 deletions templates/opinionated-solution/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,21 @@
"skipRestore": {
"type": "parameter",
"datatype": "bool",
"displayName": "Skip restore",
"description": "If specified, skips the automatic restore of the project on create.",
"defaultValue": "false"
},
"includeGithubActions": {
"type": "parameter",
"datatype": "bool",
"displayName": "Include GitHub Actions",
"description": "If set to false, skips adding dependabot settings and basic GitHub actions.",
"defaultValue": "true"
},
"addFrontendProject": {
"type": "parameter",
"datatype": "bool",
"displayName": "Add frontend project",
"description": "If set to true, adds a Vite based frontend project (includes Yarn, Vite, Vitest, Eslint, etc).",
"defaultValue": "false"
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@
"test:ci": "vitest run --reporter=junit --coverage --outputFile=test-results/junit.xml"
},
"devDependencies": {
"@codecov/vite-plugin": "^0.0.1-beta.5",
"@codecov/vite-plugin": "^0.0.1-beta.6",
"@stylistic/eslint-plugin-js": "^1.7.0",
"@stylistic/stylelint-plugin": "^2.1.1",
"@testing-library/dom": "^9.3.4",
"@vitest/browser": "^1.4.0",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"@testing-library/dom": "^10.0.0",
"@vitest/browser": "^1.5.0",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/ui": "^1.5.0",
"autoprefixer": "^10.4.19",
"browserslist": "^4.23.0",
"cssnano": "^6.1.2",
"esbuild": "^0.20.2",
"esbuild-plugin-browserslist": "^0.11.1",
"eslint": "^8.57.0",
"eslint-plugin-compat": "^4.2.0",
"eslint-plugin-jsdoc": "^48.2.2",
"eslint-plugin-jsdoc": "^48.2.3",
"eslint-plugin-testing-library": "^6.2.0",
"eslint-plugin-vitest": "^0.4.1",
"jsdom": "^24.0.0",
Expand All @@ -46,7 +46,7 @@
"stylelint-config-standard-scss": "^13.1.0",
"vite": "^5.2.8",
"vite-plugin-mkcert": "^1.17.5",
"vitest": "^1.4.0",
"vitest": "^1.5.0",
"webdriverio": "^8.35.1"
}
}
Loading

0 comments on commit d57938b

Please sign in to comment.