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() {