mirror of
https://github.com/web3privacy/news.git
synced 2024-10-15 18:06:26 +02:00
update
This commit is contained in:
parent
94cae540bf
commit
ec1c75fcae
2 changed files with 11 additions and 3 deletions
10
Makefile
10
Makefile
|
@ -1,2 +1,10 @@
|
||||||
all:
|
all: build frontend compile
|
||||||
|
|
||||||
|
build:
|
||||||
deno run --allow-all utils/build.js
|
deno run --allow-all utils/build.js
|
||||||
|
|
||||||
|
frontend:
|
||||||
|
cd web && npm install && npm run build
|
||||||
|
|
||||||
|
compile:
|
||||||
|
cp -r web/dist/** dist
|
|
@ -4,7 +4,7 @@ import { setWeek, nextMonday, format, addDays } from 'npm:date-fns';
|
||||||
import { marked } from 'npm:marked';
|
import { marked } from 'npm:marked';
|
||||||
import matter from 'npm:front-matter';
|
import matter from 'npm:front-matter';
|
||||||
|
|
||||||
const SRC_DIR = "./src";
|
const SRC_DIR = "./data";
|
||||||
const DEST_DIR = "./dist";
|
const DEST_DIR = "./dist";
|
||||||
|
|
||||||
async function build() {
|
async function build() {
|
||||||
|
|
Loading…
Reference in a new issue