CRAP_Script.ps1


<#PSScriptInfo
 
.VERSION 1.0
 
.GUID 77522af3-d9e7-4009-99a5-1c84d9feed6b
 
.AUTHOR Ayush Rathi
 
.COMPANYNAME Microsoft
 
.COPYRIGHT
 
.TAGS
 
.LICENSEURI
 
.PROJECTURI
 
.ICONURI
 
.EXTERNALMODULEDEPENDENCIES
 
.REQUIREDSCRIPTS
 
.EXTERNALSCRIPTDEPENDENCIES
 
.RELEASENOTES
 
 
#>


<#
 
.DESCRIPTION
 Creates a Asp.net and React/Redux project with other cross cutting concerns like Azure Authentication, Sass, Axios, Thunk, etc. It also contains a sample example for creating actions and reducers.
 
#>
 


param(
   [string] $projectName
)
dotnet new react -o $projectName
cd $projectName
rm -r ClientApp -Force
git clone https://github.com/ayush18/CRAP---Boileplate-Code.git ClientApp
cd ClientApp
Remove-Item .\.git -Force -Recurse
Remove-Item .\.gitignore -Force -Recurse
Write-Host ""
Write-Host "*******************************"
Write-Host ""
Write-Host "Your food is ready to be eaten!"
Write-Host -NoNewLine "**** "
Write-Host -NoNewLine "Happy CRAPing!" -ForegroundColor "Green"
Write-Host " ****"
Write-Host ""
Write-Host "*******************************"