Skip to content

Commit f64be70

Browse files
committed
fix(initial setup): cicd in development
0 parents  commit f64be70

File tree

72 files changed

+16794
-0
lines changed

Some content is hidden

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

72 files changed

+16794
-0
lines changed

.commitlintrc.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"extends": [ "@commitlint/config-angular" ],
3+
"rules": {
4+
"subject-case": [
5+
2,
6+
"always",
7+
[ "sentence-case", "start-case", "pascal-case", "upper-case", "lower-case" ]
8+
],
9+
"type-enum": [
10+
2,
11+
"always",
12+
[
13+
"build",
14+
"chore",
15+
"ci",
16+
"docs",
17+
"feat",
18+
"fix",
19+
"perf",
20+
"refactor",
21+
"revert",
22+
"style",
23+
"test",
24+
"sample",
25+
"security",
26+
"config"
27+
]
28+
]
29+
}
30+
}

.gitignore

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
10+
# User-specific files (MonoDevelop/Xamarin Studio)
11+
*.userprefs
12+
13+
# Build results
14+
[Dd]ebug/
15+
[Dd]ebugPublic/
16+
[Rr]elease/
17+
[Rr]eleases/
18+
x64/
19+
x86/
20+
bld/
21+
[Bb]in/
22+
[Oo]bj/
23+
[Ll]og/
24+
25+
# Visual Studio 2015 cache/options directory
26+
.vs/
27+
28+
# MSTest test Results
29+
[Tt]est[Rr]esult*/
30+
[Bb]uild[Ll]og.*
31+
32+
# NUNIT
33+
*.VisualState.xml
34+
TestResult.xml
35+
36+
# Build Results of an ATL Project
37+
[Dd]ebugPS/
38+
[Rr]eleasePS/
39+
dlldata.c
40+
41+
# DNX
42+
project.lock.json
43+
artifacts/
44+
45+
*_i.c
46+
*_p.c
47+
*_i.h
48+
*.ilk
49+
*.meta
50+
*.obj
51+
*.pch
52+
*.pdb
53+
*.pgc
54+
*.pgd
55+
*.rsp
56+
*.sbr
57+
*.tlb
58+
*.tli
59+
*.tlh
60+
*.tmp
61+
*.tmp_proj
62+
*.log
63+
*.vspscc
64+
*.vssscc
65+
.builds
66+
*.pidb
67+
*.svclog
68+
*.scc
69+
70+
# Visual Studio profiler
71+
*.psess
72+
*.vsp
73+
*.vspx
74+
*.sap
75+
76+
# ReSharper is a .NET coding add-in
77+
_ReSharper*/
78+
*.[Rr]e[Ss]harper
79+
*.DotSettings.user
80+
81+
# Publish Web Output
82+
*.[Pp]ublish.xml
83+
*.azurePubxml
84+
# TODO: Comment the next line if you want to checkin your web deploy settings
85+
# but database connection strings (with potential passwords) will be unencrypted
86+
*.pubxml
87+
*.publishproj
88+
89+
# NuGet Packages
90+
*.nupkg
91+
# The packages folder can be ignored because of Package Restore
92+
**/packages/*
93+
# except build/, which is used as an MSBuild target.
94+
!**/packages/build/
95+
# Uncomment if necessary however generally it will be regenerated when needed
96+
#!**/packages/repositories.config
97+
# NuGet v3's project.json files produces more ignoreable files
98+
*.nuget.props
99+
*.nuget.targets
100+
101+
# Microsoft Azure Build Output
102+
csx/
103+
*.build.csdef
104+
105+
# Microsoft Azure Emulator
106+
ecf/
107+
rcf/
108+
109+
# Visual Studio cache files
110+
# files ending in .cache can be ignored
111+
*.[Cc]ache
112+
# but keep track of directories ending in .cache
113+
!*.[Cc]ache/
114+
115+
# Others
116+
ClientBin/
117+
~$*
118+
*~
119+
*.dbmdl
120+
*.dbproj.schemaview
121+
*.pfx
122+
*.publishsettings
123+
node_modules/
124+
orleans.codegen.cs
125+
126+
# SQL Server files
127+
*.mdf
128+
*.ldf
129+
130+
# Microsoft Fakes
131+
FakesAssemblies/
132+
133+
# Visual Studio LightSwitch build output
134+
**/*.HTMLClient/GeneratedArtifacts
135+
**/*.DesktopClient/GeneratedArtifacts
136+
**/*.DesktopClient/ModelManifest.xml
137+
**/*.Server/GeneratedArtifacts
138+
**/*.Server/ModelManifest.xml
139+
_Pvt_Extensions
140+
141+
# Paket dependency manager
142+
.paket/paket.exe
143+
144+
# FAKE - F# Make
145+
.fake/
146+
147+
**/*appsettings.Development.json
148+
**/local.settings.json
149+
/MvcBlazorWebAssembly/appsettings.json
150+
/LH.MVCWebUIServer/appsettings.json
151+
/LH.APIServices/appsettings.json
152+
/NotesWillMakeIntoReadme.md
153+
/Package.BlazorComponentLibrary/PackageSettings.props
154+
#/nuget.config
155+
/Package.BlazorComponentLibrary/PackageSettings.props
156+
/PackageSettings.props.local
157+
/tree_structure.md
158+
/GenerateTreeStructure.ps1
159+
**/Properties/launchSettings.json
160+
CHANGELOG.md

.releaserc.json

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
{
2+
"branches": [
3+
{
4+
"name": "master"
5+
},
6+
{
7+
"name": "Automatic_version_update_dependabot"
8+
},
9+
{
10+
"name": "feat-*",
11+
"prerelease": true
12+
},
13+
{
14+
"name": "fix-*",
15+
"prerelease": true
16+
},
17+
{
18+
"name": "bugfix-*",
19+
"prerelease": true
20+
},
21+
{
22+
"name": "hotfix-*",
23+
"prerelease": true
24+
},
25+
{
26+
"name": "build-*",
27+
"prerelease": true
28+
},
29+
{
30+
"name": "chore-*",
31+
"prerelease": true
32+
},
33+
{
34+
"name": "ci-*",
35+
"prerelease": true
36+
},
37+
{
38+
"name": "docs-*",
39+
"prerelease": true
40+
},
41+
{
42+
"name": "perf-*",
43+
"prerelease": true
44+
},
45+
{
46+
"name": "refactor-*",
47+
"prerelease": true
48+
},
49+
{
50+
"name": "revert-*",
51+
"prerelease": true
52+
},
53+
{
54+
"name": "style-*",
55+
"prerelease": true
56+
},
57+
{
58+
"name": "test-*",
59+
"prerelease": true
60+
},
61+
{
62+
"name": "sample-*",
63+
"prerelease": true
64+
},
65+
{
66+
"name": "security-*",
67+
"prerelease": true
68+
},
69+
{
70+
"name": "config-*",
71+
"prerelease": true
72+
}
73+
],
74+
"plugins": [
75+
"@semantic-release/commit-analyzer",
76+
"@semantic-release/release-notes-generator",
77+
[
78+
"@semantic-release/changelog",
79+
{ "changelogFile": "CHANGELOG.md" }
80+
],
81+
[
82+
"@semantic-release/git",
83+
{ "assets": [ "CHANGELOG.md" ] }
84+
],
85+
"@semantic-release/github"
86+
],
87+
"repositoryUrl": "https://github.com/TechnologyEnhancedLearning/GitPageBlazorWASM"
88+
}

Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<Import Project="PackageSettings.props" />
4+
<Import Project="PackageSettings.props.local" Condition="Exists('PackageSettings.props.local')"/>
5+
</Project>

Directory.Packages.props

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<PropertyGroup>
4+
<!-- Enable central management of package versions -->
5+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
6+
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
7+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
8+
</PropertyGroup>
9+
<ItemGroup>
10+
<!-- Define each package version centrally -->
11+
<!-- Microsoft packages tied to .NET 8 - need version constraints -->
12+
13+
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.14" />
14+
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.14" PrivateAssets="all" />
15+
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="8.0.14" />
16+
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.14" />
17+
<PackageVersion Include="Microsoft.Extensions.Http" Version="8.0.0" />
18+
<PackageVersion Include="Newtonsoft.Json" Version="13.0.1" />
19+
<PackageVersion Include="AutoMapper" Version="1.1.0.118" />
20+
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
21+
<PackageVersion Include="TELBlazor.Components" Version="$(TELBlazorPackageVersion)" />
22+
<PackageVersion Include="xunit" Version="2.9.0" />
23+
<PackageVersion Include="bunit" Version="1.34.0" />
24+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
25+
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.4"/>
26+
<PackageVersion Include="Microsoft.Playwright.NUnit" Version="1.27.1" />
27+
<PackageVersion Include="NUnit" Version="3.14.0" />
28+
<PackageVersion Include="NUnit.Analyzers" Version="3.9.0" />
29+
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" />
30+
</ItemGroup>
31+
</Project>

PackageSettings.props

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<!-- Define the output path where the package will be stored -->
5+
6+
<!-- being set in csproj directly in cicd at the moment -->
7+
<NupkgOutputPath>$(NupkgOutputPath)</NupkgOutputPath>
8+
<TELBlazorPackageSource>$(TELBlazorPackageSource)</TELBlazorPackageSource>
9+
10+
<UseTELBlazorComponentsProjectReference Condition="'$(UseTELBlazorComponentsProjectReference)' == '' ">false</UseTELBlazorComponentsProjectReference>
11+
<UseTELBlazorComponentsProjectReference Condition="'$(UseTELBlazorComponentsProjectReference)' != '' ">$(UseTELBlazorComponentsProjectReference)</UseTELBlazorComponentsProjectReference>
12+
13+
<TELBlazorPackageVersion>$(TELBlazorPackageVersion)</TELBlazorPackageVersion>
14+
15+
<DisablePackageGeneration>$(DisablePackageGeneration)</DisablePackageGeneration>
16+
17+
</PropertyGroup>
18+
19+
</Project>

0 commit comments

Comments
 (0)