Skip to content

Commit

Permalink
Merge pull request #5 from solrevdev/solrevdev/editorconfig-changes
Browse files Browse the repository at this point in the history
solrevdev/editorconfig changes
  • Loading branch information
solrevdev authored Jul 7, 2023
2 parents 92680e9 + 5d039ba commit 46ab588
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 7 deletions.
23 changes: 22 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,26 @@
"socio",
"solrevdev",
"Trello"
]
],
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/bin": true,
"**/obj": true,
".vscode": false,
".vs": true,
".gitignore": false,
".gitattributes": false,
".prettierrc": false,
".editorconfig": false,
".dockerignore": false,
"omnisharp.json": false,
"global.json": false,
"**/lcov.info": true
},
"dotnet.defaultSolution": "solrevdev.seedfolder.sln"
}
1 change: 1 addition & 0 deletions build/lint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash

# shellcheck disable=SC2086,SC2164,SC2046
cd $(dirname $0)

dotnet-format ../solrevdev.seedfolder.sln --fix-style warn
35 changes: 35 additions & 0 deletions build/test-local.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env pwsh

$scriptDir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
$scriptDir = Split-Path -Path $scriptDir -Parent

Set-Location -Path $scriptDir

# Clean and build the project
dotnet clean .\solrevdev.seedfolder.sln
dotnet restore .\solrevdev.seedfolder.sln
dotnet build .\solrevdev.seedfolder.sln

# Create an artifact folder
$null = New-Item -Path .\artifacts -ItemType Directory -Force

# Remove any old nupkg files
Remove-Item -Path .\artifacts\nupkg\* -Recurse -Force

# Package the dotnet tool
dotnet pack .\solrevdev.seedfolder.sln -c Release -o .\artifacts\nupkg

# Uninstall any version you currently have installed
dotnet tool uninstall -g solrevdev.seedfolder

# Install the version we have just built and packaged
dotnet tool install -g --add-source .\artifacts\nupkg solrevdev.seedfolder

# Run the tool
seedfolder --help

# Now uninstall the tool ready for the next run
dotnet tool uninstall -g solrevdev.seedfolder

# And install it again from nuget
dotnet tool install -g solrevdev.seedfolder
33 changes: 33 additions & 0 deletions build/test-local.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bash

# shellcheck disable=SC2046
cd $(dirname "$0") || exit

# clean and build the project
dotnet clean ../solrevdev.seedfolder.sln
dotnet restore ../solrevdev.seedfolder.sln
dotnet build ../solrevdev.seedfolder.sln

# create an artifact folder
mkdir -p ../artifacts

# remove any old nupkg files
rm -rf ../artifacts/nupkg

# package the dotnet tool
dotnet pack ../solrevdev.seedfolder.sln -c release -o ../artifacts/nupkg

# uninstall any version you currently have installed
dotnet tool uninstall -g solrevdev.seedfolder

# install the version we have just built and packaged
dotnet tool install -g --add-source ../artifacts/nupkg solrevdev.seedfolder

# run the tool
seedfolder --help

# now uninstall the tool ready for the next run
dotnet tool uninstall -g solrevdev.seedfolder

# and install it again from nuget
dotnet tool install -g solrevdev.seedfolder
21 changes: 18 additions & 3 deletions src/Data/omnisharp.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
{
"RoslynExtensionsOptions": {
"enableAnalyzersSupport": true,
"enableDecompilationSupport": true
"EnableAnalyzersSupport": true,
"EnableDecompilationSupport": true,
"EnableImportCompletion": true
},
"FormattingOptions": {
"enableEditorConfigSupport": true
"EnableEditorConfigSupport": true,
"OrganizeImports": true
},
"RenameOptions": {
"RenameInComments": true,
"RenameOverloads": true,
"RenameInStrings": true
},
"FileOptions": {
"SystemExcludeSearchPatterns": [
"**/node_modules/**/*",
"**/bin/**/*",
"**/obj/**/*"
],
"ExcludeSearchPatterns": []
}
}
6 changes: 3 additions & 3 deletions src/solrevdev.seedfolder.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<LangVersion>11</LangVersion>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<PackAsTool>true</PackAsTool>
<ToolCommandName>seedfolder</ToolCommandName>
<PackageOutputPath>./nupkg</PackageOutputPath>
<NoDefaultExcludes>true</NoDefaultExcludes>
<Version>1.2.3</Version>
<Version>1.2.4</Version>
<Title>solrevdev.seedfolder</Title>
<Description>.NET Core Global Tool that creates a folder and copies dotfiles into it therefore seeding a folder.</Description>
<PackageDescription>.NET Core Global Tool that creates a folder and copies dotfiles into it therefore seeding a folder.</PackageDescription>
Expand Down

0 comments on commit 46ab588

Please sign in to comment.