Skip to content

Instantly share code, notes, and snippets.

@axdiamond
Last active July 10, 2018 17:41
Show Gist options
  • Save axdiamond/87e7f8c29528645a72f5812e553c7f35 to your computer and use it in GitHub Desktop.
Save axdiamond/87e7f8c29528645a72f5812e553c7f35 to your computer and use it in GitHub Desktop.
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