Skip to content

Latest commit

 

History

History
62 lines (40 loc) · 1.43 KB

README.md

File metadata and controls

62 lines (40 loc) · 1.43 KB

VanillaJS + Vite(est)

image

A template for the late night sessions with the people from FWDP

How to use

Clone the repository

git clone (https://github.com/FWDP/fwdp-starter-vite.git

Install Dependencies

# 1. Go inside the Directory
cd fwdp-starter-vite

# 2. Reinitialize git repository

# 2.a Remove it using git bash
rm -rf .git && git init

# 2.b Remove using powershell
Remove-Item --path .git -Recurse -Force && git init

# Install dependencies
npm install

Running Dev Server

npm run dev

Running Tests

npm run test

Testing for production

npm run build
npm run preview

This has a workflow included to deploy to github pages

First we need to go to the settings of your reposity and Pages Enable it using GitHub Actions

image

By default this will be hosted as yourusername.github.io/fwdp-starter-vite but you can change it to yourusername.github.io by changing the BASE property in vite.config.js to / if you are hosting it with username.github.io for sideprojects you can use username.github.io/projectname and change the BASE property in vite.config.js to /projectname/ projectname is the name of your repository