Giter Site home page Giter Site logo

batch-automation---html-css-js's Introduction

Batch automation for web project setups

a little batch script for making templates for the HTML + CSS + JS setup, extended to create templates for react apps as well (with IIFE and dark mode to speed things up)

HOWTO USE - Standard setup for jsApp:

This version automates creating a basic frontend web project structure using a batch script (jsApp.bat). It generates a template and opens the main files in VS Code.

1. Make batch folder in C:\Users%AppData%\Code\User, and add the jsApp.bat there

2. Use New-Item cmdlet to create a symbolic link to the script in the elevated command prompt:

cd C:\Windows\System32
mklink jsApp.bat "C:\Users\%AppData%\Roaming\Code\User\batch\jsApp.bat"

3. Open the internal Terminal in VS-Code

  • type jsApp.bat hello-JS-App (replace hello-JS-App with your desired name) from within the folder you want to create the structure in
  • the files should be created and opened including all templates ๐Ÿ˜‰

HOWTO USE - Standard setup for reactApp:

This version automates creating a basic React project structure using a batch script (reactAppC.bat). It copies your preferred template folder and attempts to open the main file in VS Code.

1. Make batch folder in C:\Users%AppData%\Code\User, and add the reactApp.bat there

2. Copy the TemplateFolder folder in C:\Users%AppData%\Code\User

3. Use New-Item cmdlet to create a symbolic link to the script in the elevated command prompt:

cd C:\Windows\System32
mklink reactApp.bat "C:\Users\%AppData%\Roaming\Code\User\batch\reactApp.bat"

4. Open the internal Terminal in VS-Code

  • type reactApp.bat hello-React-App (replace hello-React-App with your desired name) from within the folder you want to create the structure in
  • the files should be created and opened including all templates ๐Ÿ˜‰

Troubleshooting:

  • this setup assumes that your visual studio executable is installed under:
    • %LocalAppData%\Programs\Microsoft VS Code\Code.exe

batch-automation---html-css-js's People

Contributors

timsdesigns avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.