Improve build-dev-local.sh

This commit is contained in:
Richard Feldman 2023-10-21 10:09:26 -04:00
parent 12f77d94a0
commit 4c06d0357a
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

9
www/wip_new_website/build-dev-local.sh Normal file → Executable file
View file

@ -1,14 +1,13 @@
#!/usr/bin/env bash
# Use this script to for testing the WIP site locally without downloading assets every time.
# Use this script to for testing the WIP site locally without downloading assets every time.
# NOTE run `bash www/build.sh` to cache local copy of fonts, and repl assets etc
# NOTE run `bash www/build.sh` to cache local copy of fonts, and repl assets etc
rm -rf dist/
cp -r ../build dist/
mkdir -p dist/wip
cp -r ../build/wip/* dist/wip/
roc run main.roc -- content/ dist/wip/
cp -r ../build/fonts/ dist/fonts/
cp -r static/* dist/wip/
simple-http-server -p 8080 --nocache --index -- dist/
simple-http-server -p 8080 --nocache --index -- dist/