Clean up references to build script

This commit is contained in:
Michael Bradley 2025-02-23 04:23:12 -05:00
parent 46330f5066
commit 1db03d5615
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8
3 changed files with 2 additions and 2 deletions

View file

@ -8,5 +8,5 @@ It is deployed at [mmbradley.ca](https://mmbradley.ca).
## Deployment ## Deployment
The site is build with React and local development can be done with React devtools, but the site is ultimately static. The site is build with React and local development can be done with React devtools, but the site is ultimately static.
`render.sh` calls `vite build` to process the assets and prepare the site for rendering. `yarn build` calls `render.sh` which uses `vite build` to process the assets and prepare the site for rendering.
It then has `node` render the site, and outputs everything needed to display the site to the `dist/prod` directory. It then has `node` render the site, and outputs everything needed to display the site to the `dist/prod` directory.

View file

@ -5,7 +5,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "./render.bash", "build": "bash render.bash",
"build:targets": "yarn build:client && yarn build:server", "build:targets": "yarn build:client && yarn build:server",
"build:client": "tsc -b && vite build --outDir dist/client", "build:client": "tsc -b && vite build --outDir dist/client",
"build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx", "build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx",

0
render.bash Executable file → Normal file
View file