From ec1c75fcaec0ea7c745e17621ceafb443ff7f28b Mon Sep 17 00:00:00 2001 From: tree Date: Mon, 12 Feb 2024 11:00:15 +0100 Subject: [PATCH] update --- Makefile | 12 ++++++++++-- utils/build.js | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c4a5cb3..de0274e 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,10 @@ -all: - deno run --allow-all utils/build.js \ No newline at end of file +all: build frontend compile + +build: + deno run --allow-all utils/build.js + +frontend: + cd web && npm install && npm run build + +compile: + cp -r web/dist/** dist \ No newline at end of file diff --git a/utils/build.js b/utils/build.js index 61a494f..64777df 100644 --- a/utils/build.js +++ b/utils/build.js @@ -4,7 +4,7 @@ import { setWeek, nextMonday, format, addDays } from 'npm:date-fns'; import { marked } from 'npm:marked'; import matter from 'npm:front-matter'; -const SRC_DIR = "./src"; +const SRC_DIR = "./data"; const DEST_DIR = "./dist"; async function build() {