Skip to content

reediculous456/WebpackTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack Template

A template to use [email protected] to build ES6 code into ES5. This template includes Bootstrap 4.3.1 and jQuery 3.4.1

Reccomendations

  • Use VS Code to edit the project
  • Use the integrated terminal inside of VS Code to run commands (accessed by clicking the Terminal tab and then New Terminal)
    • If you open the project folder in VS Code (the top level folder with the package.json file), the integrated terminal will start in the project folder so you don't need to cd

Installation

  1. Install NodeJS if you do not already have it (LTS version recommended)
  2. Clone or download the repo
  3. Open a terminal and cd to this folder
    • For MacOS, open Terminal
    • For Windows, open Powershell or Command Prompt
    • Alternatively, use the integrated terminal in VS Code
  4. Run the command npm install
    • If you have windows, you may need to have Python2.X installed to run this command

Usage

  1. Build the project
    • Run the command npm run build to compile the project one time
    • Run the command npm run watch to automatically recompile the project every time you save
  2. Open ./dist/index.html in your web browser

Included Libraries

Bootstrap

You can use css classes from Bootstrap 4.3.1 anywhere in the project

jQuery

You can use functions from jQuery 3.4.1 anywhere in the JavaScript code

ESLint

ESLint is a library that helps to maintain a standard code formatting and is used in many corporate settings. I have provided an example lint file that enforces certain whitespace and syntax rules on the code.

  • To see how your code compares to the lint rules, run the command npm run lint -s
  • To automatically fix some types of lint errors, run npm run lint -s -- --fix
  • There is also an ESLint VS Code Extension that will show lint errors in the code editor

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published