https://github.com/zloeber/githubrepouploadtemplate
https://github.com/zloeber/githubrepouploadtemplate
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zloeber/githubrepouploadtemplate
- Owner: zloeber
- Created: 2015-08-24T20:24:00.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-03T01:51:59.000Z (over 10 years ago)
- Last Synced: 2025-01-15T23:43:08.357Z (over 1 year ago)
- Language: PowerShell
- Size: 180 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
#Github Repo Upload Template Script
Quick and dirty repository init and github upload script.
##Description
This script requires git.exe in the path and is a quick and dirty hack that I should be partially ashamed of. But it saves me a little bit of time creating repositories for all my existing projects and uploading them to github.
##Files
**GuidedDeployment.ps1** - Asks a series of yes/no questions for each of the scripts in this repo. If you were to answer yes to them all you would: Create a new PowerShell Module template folder, Initialize a git repo for the folder and link to github, Run a best practices analysis against the folder, then upload it to the poweshell gallery.
**CreatePSModule.ps1** - Create a new PowerShell module template directory. The template ends up looking something like this:
* ModuleName
* en-US\
* about_ModuleName.help.txt
* src\
* public\
* private\
* lib\
* bin\
* build\
* ModuleName.Format.ps1xml
* ModuleName.psd1
* ModuleName.psm1
The psm1 module automatically loads any ps1 file in src\private and src\public. It assumes filenames represent function names in src\public and exports them automatically.
**CreateRepo.ps1** - Create a git repository out of a project folder and upload its contents to Github as the master branch.
**AnalyzeScript.ps1** - Requires PowerShell 5. Download and run the PSScriptAnalyzer module against your project folder.
**UploadToPowershellGallery.ps1** - Requires PowerShell 5. Upload a module into the powershellgallery.com site. You need the API key from https://www.powershellgallery.com/account in order to do this.
##Other Information
**Author:** Zachary Loeber
**Website:** http://www.the-little-things.net
**Github:** https:/github.com/zloeber/GithubRepoUploadTemplate
**Other:** [Building a PowerShell Module](http://ramblingcookiemonster.github.io/Building-A-PowerShell-Module/)