Skip to content

May-Cook/react-pages-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 

Repository files navigation

react-pages-practice

A test repository to confirm I understand how react interacts with github pages and to ensure I was able to get it working using bun and vite

How I did it

Initial setup

I followed this guide, adapting it for Bun and Vite by:

  • Using bun create vite practice-app in place of npx create-react-app practice-app and following the instructions given in terminal to run bun install in ./practice-app
  • Using bun in place of npm and npx
  • Changing the "deploy" script from"gh-pages -d build" to "gh-pages -d dist", to reflect the differing directory used by Vite

Note: Make sure the base: attribute in vite config is set to /practice-app/

Deploying the website using bun

From the ./practice-app directory, I type bun run deploy.

This automatically runs bun run predeploy first

About

A test repository to confirm I understand how react interacts with github pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published