From 1c78544392b81917cb55cb92242cb410aef2cd40 Mon Sep 17 00:00:00 2001 From: lukaw3d Date: Mon, 28 Oct 2024 17:24:11 +0100 Subject: [PATCH] frontend: Add script to run frontend only --- faucet-frontend/README.md | 4 ++++ faucet-frontend/package.json | 1 + 2 files changed, 5 insertions(+) diff --git a/faucet-frontend/README.md b/faucet-frontend/README.md index 68c23f2..bd5ff50 100644 --- a/faucet-frontend/README.md +++ b/faucet-frontend/README.md @@ -16,6 +16,10 @@ edit faucet-backend.toml (cd ../faucet-backend && go1.17.6 build && ./faucet-backend) open http://localhost:8080/ + + +# run frontend only: +yarn dev-frontend-only ``` diff --git a/faucet-frontend/package.json b/faucet-frontend/package.json index 30fc0ae..27ba408 100644 --- a/faucet-frontend/package.json +++ b/faucet-frontend/package.json @@ -1,5 +1,6 @@ { "scripts": { + "dev-frontend-only": "rm -rf .parcel-cache && parcel serve src/index.pug", "dev": "rm -rf .parcel-cache && parcel watch src/index.pug", "build": "rm -rf .parcel-cache && parcel build src/index.pug" },