Set up a go skeleton that works with the underlying FE js

This commit is contained in:
Barak Michener 2020-11-11 21:23:29 -08:00
parent f0321b3f49
commit c0e29a5b89
5 changed files with 116 additions and 6 deletions

View file

@ -7,6 +7,7 @@ import sveltePreprocess from "svelte-preprocess"
import typescript from "@rollup/plugin-typescript"
const production = !process.env.ROLLUP_WATCH
const do_serve = !process.env.SKIP_SERVE
function serve() {
let server
@ -71,7 +72,7 @@ export default {
// In dev mode, call `npm run start` once
// the bundle has been generated
!production && serve(),
!production && do_serve && serve(),
// Watch the `public` directory and refresh the
// browser on changes when not in production