Hans is a set of scripts used to help devs easily onboard onto new projects. It use's the package managers Brew and Chocolately for Mac and Windows respectively. The idea is to make a generic onboarding script that you only need to change a single file from environment to environment.
- Create a file called
packages.config
in the windows folder. - The
packages.config
file will be used to list the software and any configuration needed A sample for the software section can be found on Chocolatelys site. - Run
./Main.ps1
in an elevated PowerShell terminal.
- Create a file called
configuration.json
in the mac folder. - List any software you want to install based on it's Brew configuration in
softwareToInstall
key and any other configuration needed. - Run
.\main.zsh
from a terminal
If you receive a a permission error, you will need to change permissions on the main.sh
using chmod
{
"softwareToInstall": [
{
"name": "mysql",
"version": null
},
{
"name": "steam",
"version": 6
}
],
"preCommandsToRun": ["whoami", "ls"],
"postCommandsToRun": ["whoami"],
"gitRepos": [
"https://github.com/flutter/flutter.git",
"https://github.com/getify/You-Dont-Know-JS"
],
"gitRepoPath": "c:\\users\\joshu\\desktop",
"vsCodeExtensions": ["ms-vscode.cpptools"]
}
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="steam-client" />
<package id="googlechrome" />
<package id="sublimetext3" />
<precommandstorun>
<command>whoami</command>
<command>Get-ChildItem</command>
</precommandstorun>
<postcommandstorun>
<command>ls</command>
</postcommandstorun>
<gitrepos>
<repopath>c:\users\joshu\desktop\</repopath>
<repo>https://github.com/flutter/flutter.git</repo>
<repo>https://github.com/getify/You-Dont-Know-JS</repo>
</gitrepos>
<vscodeextensions>
<extension>ms-vscode.cpptools</extension>
</vscodeextensions>
</packages>
For Mac users, this script assumes you will be using zsh
.