Skip to content

mallockey/hans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hans

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.

Running the script

Windows

  1. Create a file called packages.config in the windows folder.
  2. 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.
  3. Run ./Main.ps1 in an elevated PowerShell terminal.

Mac

  1. Create a file called configuration.json in the mac folder.
  2. List any software you want to install based on it's Brew configuration in softwareToInstall key and any other configuration needed.
  3. 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

Sample Mac File - configuration.json

{
  "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"]
}

Sample Windows File - packages.config

<?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>

Additional Info

For Mac users, this script assumes you will be using zsh.

About

A set of scripts to make onboarding easier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published