Skip to content

Commit

Permalink
Merged PR 10602: Rewrite icomoonpicker from angularjs to lit
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeschepers4 authored and D-Inventor committed Dec 12, 2023
1 parent 3a7643a commit 76e95b2
Show file tree
Hide file tree
Showing 125 changed files with 23,624 additions and 267 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ artifacts/
**/dist/
/src/Infocaster.UmbracoWebsite.Web/config/serilog.user.config
/src/Infocaster.UmbracoAwesome.Icomoon/UmbracoAwesome-IcomoonPicker.1.0.0.nupkg
/src/Infocaster.Umbraco.IcomoonPicker.Website/App_Plugins
7 changes: 7 additions & 0 deletions Infocaster.Umbraco.IcomoonPicker.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
nuget.config = nuget.config
README-NUGET.md = README-NUGET.md
README.md = README.md
umbraco-marketplace.json = umbraco-marketplace.json
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Infocaster.Umbraco.IcomoonPicker.Website", "src\Infocaster.Umbraco.IcomoonPicker.Website\Infocaster.Umbraco.IcomoonPicker.Website.csproj", "{BF3E7974-17A5-4D9C-8049-711D5E34589A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -29,6 +32,10 @@ Global
{F936C692-CB32-4B26-A0D1-29A560B8DF11}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F936C692-CB32-4B26-A0D1-29A560B8DF11}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F936C692-CB32-4B26-A0D1-29A560B8DF11}.Release|Any CPU.Build.0 = Release|Any CPU
{BF3E7974-17A5-4D9C-8049-711D5E34589A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BF3E7974-17A5-4D9C-8049-711D5E34589A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BF3E7974-17A5-4D9C-8049-711D5E34589A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BF3E7974-17A5-4D9C-8049-711D5E34589A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
215 changes: 117 additions & 98 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,112 +1,131 @@
trigger:
branches:
include:
- v10/main
- v10/develop
- v10/release/*
- v10/hotfix
- v10/main
- v10/develop
- v10/release/*
- v10/hotfix
tags:
include:
- 10.*
- 10.*

pool:
name: Default

variables:
BuildConfiguration: 'release'
BuildPlatform: 'any cpu'
variables:
BuildConfiguration: "release"
BuildPlatform: "any cpu"
Solution: '**\*.sln'
NpmWorkingDirectory: 'src\Infocaster.Umbraco.IcomoonPicker'

stages:
- stage: build
displayName: Build
jobs:
- job: build
- stage: build
displayName: Build
steps:
- task: GitVersion@5
displayName: GitVersion
inputs:
configFilePath: GitVersion.yml
updateAssemblyInfo: true

- task: UseDotNet@2
displayName: 'Use .NET 6'
inputs:
packageType: 'sdk'
version: '6.x'

- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
inputs:
command: restore
feedsToUse: config
nugetConfigPath: nuget.config

- task: DotNetCoreCLI@2
displayName: 'dotnet build'
inputs:
command: build
projects: Infocaster.Umbraco.IcomoonPicker.sln
arguments: '--configuration $(BuildConfiguration) -p:Version=$(GitVersion.NuGetVersion)'

- task: DotNetCoreCLI@2
displayName: 'dotnet pack'
inputs:
command: pack
arguments: '--configuration $(BuildConfiguration) -p:Version=$(GitVersion.NuGetVersion)'
packagesToPack: src/**/*.csproj
versioningScheme: byEnvVar
versionEnvVar: GitVersion.NuGetVersion

- task: PublishBuildArtifacts@1
displayName: 'Publish build artifacts'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'

- stage: release
displayName: Release
dependsOn: build
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
variables:
packageGlob: '$(Pipeline.Workspace)/**/IcomoonPicker*.nupkg'
jobs:
- job: releaseArtifact
displayName: Push to artifacts
workspace:
clean: all
steps:
- checkout: none

- download: current
patterns: '**/*.nupkg'
displayName: Download build artifact

- task: DotNetCoreCLI@2
displayName: 'dotnet push'
inputs:
command: push
publishVstsFeed: '3356baca-d7d8-497c-a5fa-ebd93f79f7c7'
versioningScheme: byBuildNumber
packagesToPush: $(packageGlob)

- job: releaseNuget
displayName: Push to nuget
workspace:
clean: all
steps:
- checkout: none

- download: current
patterns: '**/*.nupkg'
displayName: Download build artifact

- task: DotNetCoreCLI@2
displayName: 'push to nuget.org'
inputs:
command: custom
custom: nuget
arguments: 'push $(packageGlob) -s https://api.nuget.org/v3/index.json --api-key $(NuGetApiKey)'
jobs:
- job: build
displayName: Build
steps:
- task: GitVersion@5
displayName: GitVersion
inputs:
configFilePath: GitVersion.yml
updateAssemblyInfo: true

- task: NodeTool@0
displayName: "Use node 20.x"
inputs:
versionSpec: "20.x"

- task: Npm@1
displayName: "Install icomoonpicker plugin front end packages"
inputs:
command: "custom"
workingDir: $(NpmWorkingDirectory)
customCommand: "ci"

- task: Npm@1
displayName: "Build icomoonpicker plugin front end"
inputs:
command: "custom"
workingDir: $(NpmWorkingDirectory)
customCommand: "run build"

- task: UseDotNet@2
displayName: "Use .NET 6"
inputs:
packageType: "sdk"
version: "6.x"

- task: DotNetCoreCLI@2
displayName: "dotnet restore"
inputs:
command: restore
feedsToUse: config
nugetConfigPath: nuget.config

- task: DotNetCoreCLI@2
displayName: "dotnet build"
inputs:
command: build
projects: Infocaster.Umbraco.IcomoonPicker.sln
arguments: "--configuration $(BuildConfiguration) -p:Version=$(GitVersion.NuGetVersion)"

- task: DotNetCoreCLI@2
displayName: "dotnet pack"
inputs:
command: pack
arguments: "--configuration $(BuildConfiguration) -p:Version=$(GitVersion.NuGetVersion)"
packagesToPack: src/**/*.csproj
versioningScheme: byEnvVar
versionEnvVar: GitVersion.NuGetVersion

- task: PublishBuildArtifacts@1
displayName: "Publish build artifacts"
inputs:
PathtoPublish: "$(build.artifactstagingdirectory)"
ArtifactName: "drop"
publishLocation: "Container"

- stage: release
displayName: Release
dependsOn: build
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
variables:
packageGlob: "$(Pipeline.Workspace)/**/IcomoonPicker*.nupkg"
jobs:
- job: releaseArtifact
displayName: Push to artifacts
workspace:
clean: all
steps:
- checkout: none

- download: current
patterns: "**/*.nupkg"
displayName: Download build artifact

- task: DotNetCoreCLI@2
displayName: "dotnet push"
inputs:
command: push
publishVstsFeed: "3356baca-d7d8-497c-a5fa-ebd93f79f7c7"
versioningScheme: byBuildNumber
packagesToPush: $(packageGlob)

- job: releaseNuget
displayName: Push to nuget
workspace:
clean: all
steps:
- checkout: none

- download: current
patterns: "**/*.nupkg"
displayName: Download build artifact

- task: DotNetCoreCLI@2
displayName: "push to nuget.org"
inputs:
command: custom
custom: nuget
arguments: "push $(packageGlob) -s https://api.nuget.org/v3/index.json --api-key $(NuGetApiKey)"
Loading

0 comments on commit 76e95b2

Please sign in to comment.