Clean up references to build script
This commit is contained in:
parent
46330f5066
commit
1db03d5615
3 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||||
|
|
|
@ -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
0
render.bash
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue