_ __ _ _
___ ___ ___ __| |/ _| ___ | | __| | ___ _ __
/ __|/ _ \/ _ \/ _` | |_ / _ \| |/ _` |/ _ \ '__|
\__ \ __/ __/ (_| | _| (_) | | (_| | __/ |
|___/\___|\___|\__,_|_| \___/|_|\__,_|\___|_|
This is a .NET Core Global Tool that will create a folder named after either the first argument passed to it or if no argument is passed it will ask you for the folder name. It will then copy some default standard dotfiles over.
For example:
seedfolder
dotnet run --project src/solrevdev.seedfolder.csproj
β² Do you want to prefix the folder with the date? [Y/n] y
β² What do you want the folder to be named? temp
ββ² Creating the directory 2020-12-10_temp
ββ² Copying .dockerignore to 2020-12-10_temp/.dockerignore
ββ² Copying .editorconfig to 2020-12-10_temp/.editorconfig
ββ² Copying .gitattributes to 2020-12-10_temp/.gitattributes
ββ² Copying .gitignore to 2020-12-10_temp/.gitignore
ββ² Copying .prettierignore to 2020-12-10_temp/.prettierignore
ββ² Copying .prettierrc to 2020-12-10_temp/.prettierrc
ββ² Copying omnisharp.json to 2020-12-10_temp/omnisharp.json
β² Done!
seedfolder
dotnet run --project src/solrevdev.seedfolder.csproj
β² Do you want to prefix the folder with the date? [Y/n] n
β² What do you want the folder to be named? temp
ββ² Creating the directory temp
ββ² Copying .dockerignore to temp/.dockerignore
ββ² Copying .editorconfig to temp/.editorconfig
ββ² Copying .gitattributes to temp/.gitattributes
ββ² Copying .gitignore to temp/.gitignore
ββ² Copying .prettierignore to temp/.prettierignore
ββ² Copying .prettierrc to temp/.prettierrc
ββ² Copying omnisharp.json to temp/omnisharp.json
β² Done!
seedfolder temp
dotnet run --project src/solrevdev.seedfolder.csproj temp
β² Found 1 params to process.
ββ² Creating the directory temp
ββ² Copying .dockerignore to temp/.dockerignore
ββ² Copying .editorconfig to temp/.editorconfig
ββ² Copying .gitattributes to temp/.gitattributes
ββ² Copying .gitignore to temp/.gitignore
ββ² Copying .prettierignore to temp/.prettierignore
ββ² Copying .prettierrc to temp/.prettierrc
ββ² Copying omnisharp.json to temp/omnisharp.json
β² Done!
It will also copy the following dotfiles from the src/Data
folder over:
- .dockerignore
- .editorconfig
- .gitattributes
- .gitignore
- .prettierignore
- .prettierrc
Locally without publishing it on NuGet
dotnet pack
dotnet tool install --global --add-source ./nupkg solrevdev.seedfolder
Normally via NuGet
dotnet tool install --global solrevdev.seedfolder
To uninstall
dotnet tool uninstall -g solrevdev.seedfolder
Uses a GitHub secret to store a NUGET_API_KEY
API Key created over at NuGet in order to build and deploy via GitHub actions to NuGet.
When you commit bump the version in the csproj
file
<Version>1.0.1</Version>