mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Improve build-dev-local.sh
This commit is contained in:
parent
12f77d94a0
commit
4c06d0357a
1 changed files with 4 additions and 5 deletions
9
www/wip_new_website/build-dev-local.sh
Normal file → Executable file
9
www/wip_new_website/build-dev-local.sh
Normal file → Executable 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/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue