Last active
July 10, 2018 17:41
-
-
Save axdiamond/87e7f8c29528645a72f5812e553c7f35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[parameter(Mandatory=$true, ValueFromPipeline=$true)] | |
[alias("p","name")] | |
[String] | |
$projectName | |
) | |
$ErrorActionPreference = "Stop" | |
$projectname = $projectname.Trim() | |
if ($projectname.length -eq 0) { | |
Throw 'Project name required' | |
} | |
mkdir $projectname | |
cd $projectname | |
git init | |
mkdir scripts | |
mkdir lib | |
mkdir tests | |
mkdir docs | |
mkdir src | |
dotnet new sln | |
wget https://raw.githubusercontent.com/github/gitignore/master/VisualStudio.gitignore -OutFile ./.gitignore | |
wget https://gist.githubusercontent.com/PurpleBooth/109311bb0361f32d87a2/raw/8254b53ab8dcb18afc64287aaddd9e5b6059f880/README-Template.md -OutFile README.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment