An open API service indexing awesome lists of open source software.

https://github.com/sera619/makeenvi-powershell

Powershell create automatic code project!
https://github.com/sera619/makeenvi-powershell

code-project powershell powershell-automation

Last synced: 4 months ago
JSON representation

Powershell create automatic code project!

Awesome Lists containing this project

README

          

# MakeEnvi - Codeprojectassistant #

> UNDER DEVELOPMENT
>
> This Powershellscript will create new code projects.

Features

> - create Base Filesystem with common folders
> - Python will create a venv for you and activate this automaticly
> - JavaScript will create a html, css, JavaScript for you
> - For all langs it create:
> - README.md
> - config.yml
> - .gitignore


Supported languages

>| Language | Supported |
>|:----------:|:-----------:|
>| Python| ✔️ |
>| JavaScript| ✔️ |

## Usage ##

> If you already dont know what a Powershell-Profile is open below otherwise skip.

What is a Powershell-Profile?

>
> Microsoft provide a PowerShell-Script in your user directory that will always execute if you start a new PowerShell-Terminal.
>
> You can use this to create own shortcuts for example if you dont want type the same path again and again.
>
> Or you want provide some custom scripts that you can easy access via console.
>


> Here we install the script.
>

Installation

> **Make sure you have [Visual Code](https://code.visualstudio.com/Download) and [Python 3.8+](https://www.python.org/downloads/) installed!**
>
> Copy the content from the [script](https://raw.githubusercontent.com/sera619/MakeEnvi-Powershell/master/MakeEnvi.ps1)
>
> Open a PowerShell-Terminal and type:
>
>```powershell
>explorer $profile
>```
>
> A Editor Window will appear with your profile opened.
>
> Paste the copied script code somewhere in the script.
>
> Save file and restart the terminal.
>
> Make sure you edite the \ variable in the script to your root code directory on **C:\\** !
>
>```powershell
>function MakeEnvi {
> param (
> $lang, $name
> )
> Write-Host ""
> if ($lang -and $name){
> # Set this to your Codedirectory
> $codedir = "" # <----- example Codes
> #
> if ($codedir -eq ""){
> ...
>```
>
> Should look like this:
>
>```powershell
>function MakeEnvi {
> param (
> $lang, $name
> )
> Write-Host ""
> if ($lang -and $name){
> # Set this to your Codedirectory
> $codedir = "Codes" # <----- example Codes
> #
> if ($codedir -eq ""){
> ...
>```


> Now you can use the Helper!

Use command

> Open a Powershell-Terminal and type the command above
>
> The "codelanguage" and "projectname" represent your inputs
>
>```Powershell
>MakeEnvi codelanguage projectname
>```
>
> Your project should be Created
>