Skip to content

Instantly share code, notes, and snippets.

View nissan's full-sized avatar

Nissan Dookeran nissan

View GitHub Profile
@nissan
nissan / new-dotnetcore-react-ts-storybook-jest.sh
Last active June 2, 2018 21:58
Setup a new .NET Core 2.1 app for Mac OSX with React, TypeScript, Storybook, Jest
#Assumes you have the .NET SDK 2.1 for Mac already installed
#Use Homebrew to install packages
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#Use nvm to manage node versions
brew install nvm
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bash_profile
echo '. "/usr/local/opt/nvm/nvm.sh"' >>~/.bash_profile
nvm install v10.3.0
nvm use default
#install yarn independent of version of node being used
@nissan
nissan / new-dotnetcore-react-storybook-jest-app.ps1
Created June 1, 2018 23:46
Setup a new .NET Core 2.1 app for Windows with React, Storybook, Jest
#Assumes you have the .NET SDK 2.1 for Windows already installed
#Use Chocolatey to install packages, run this script from Administrator Powershell
Set-ExecutionPolicy Bypass -Scope Process -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
#Use nvm to manage node versions
choco install -y nvm
nvm use default
#install yarn independent of version of node being used
choco install -y yarn
refreshenv
@nissan
nissan / new-dotnetcore-react-storybook-jest-app.sh
Last active June 1, 2018 23:31
Setup a new .NET Core 2.1 app for Mac OSX with React, Storybook, Jest
#Assumes you have the .NET SDK 2.1 for Mac already installed
#Use Homebrew to install packages
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#Use nvm to manage node versions
brew install nvm
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bash_profile
echo '. "/usr/local/opt/nvm/nvm.sh"' >>~/.bash_profile
nvm install v10.3.0
nvm use default
#install yarn independent of version of node being used
@nissan
nissan / remove-dotnet-sdks.sh
Created June 1, 2018 22:35
Commands to clear .NET SDKs installed on a Mac
# Following (these instructions)[https://willich.io/blog/2017/09/10/uninstall-net-core-sdks-on-macos/] to remove any existing .NET Core sdks
wget https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/uninstall/dotnet-uninstall-pkgs.sh
chmod +x dotnet-uninstall-pkgs.sh
sudo ./dotnet-uninstall-pkgs.sh