sera619 / MakeEnvi-Powershell

Powershell create automatic code project!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 and Python 3.8+ installed!

Copy the content from the script

Open a PowerShell-Terminal and type:

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 <codedirectory> variable in the script to your root code directory on C:\ !

function MakeEnvi {
   param (
       $lang, $name
   )
   Write-Host ""
   if ($lang -and $name){
       # Set this to your Codedirectory
       $codedir = "<codedirectory>" # <----- example Codes
       #
       if ($codedir -eq "<codedirectory>"){
   ...

Should look like this:

function MakeEnvi {
   param (
       $lang, $name
   )
   Write-Host ""
   if ($lang -and $name){
       # Set this to your Codedirectory
       $codedir = "Codes" # <----- example Codes
       #
       if ($codedir -eq "<codedirectory>"){
   ...

Now you can use the Helper!

Use command

Open a Powershell-Terminal and type the command above

The "codelanguage" and "projectname" represent your inputs

MakeEnvi codelanguage projectname

Your project should be Created

About

Powershell create automatic code project!


Languages

Language:PowerShell 100.0%