GithubHelp home page GithubHelp logo

klone23uk / create-web-template Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 24 KB

Simple script to create file and directory template structure for static front end web development with bootstrap CDN included.

License: MIT License

Shell 100.00%
bash css html javascript script web

create-web-template's Introduction

create_web_template

Created By; Ryan Gilluley

Section

Description

Simple script to create file and directory template structure for static front end web development with bootstrap CDN included.

You can select between three different templates

  1. Blank
  2. Basic
  3. Delux

The Script will generate the files and directorys based on the project name and template specified.

Good for practicing, testing or just getting a head start.

Screenshots

Running the script without any options. alt text

Running the script with the 'n' flag to set the project name and 't' flag to set the template. alt text

The script will ask if a directory with the same project name already exists and if you would like to overwrite it. alt text

Example of Web Template 3 - Delux alt text

Usage

Run the script after giving execute permissions.

chmod +x create_web_template.sh
./create_web_template.sh

Flags

    -n      Set the project Name. Use "" for multi word name. i.e. ./create_web_template -n "Project 1"
    -t      Set the template for files.
            1   Blank
            2   Simple
            3   Delux
    -h      Show this help message.

Examples

You can use the 'n' flag to set the name of the project.

./create_web_template.sh -n Project1

Use quatation marks for multi word projects

./create_web_template.sh -n "Web Project 1"

You can use the 't' flag to set the template that you would like to use.

./create_web_template.sh -n Project1 -t 1

Best way to use this script is to make an alias for it so you can run it where ever you like. Add the line to your .bashrc and point it to where the script is located. Navigate to the folder where you want to generate the project files.

alias wt="~/create_web_template.sh"
wt -n Project1 -t 1

create-web-template's People

Contributors

klone23uk avatar

Stargazers

 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.