From 6f4b9a70164f1be205b64e8824a83ebee717d6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 10 Nov 2021 09:52:56 +0100 Subject: Add madge for frontend dep visualization. --- static/Makefile | 3 +++ static/package.json | 3 +++ 2 files changed, 6 insertions(+) (limited to 'static') diff --git a/static/Makefile b/static/Makefile index d55688ba..b85422a3 100644 --- a/static/Makefile +++ b/static/Makefile @@ -17,6 +17,9 @@ all: $(TARGETS) script.out.js: $(TS_FILES) browserify $< -p tsify --noImplicitAny --debug -o $@ +deps.svg: $(TS_FILES) + madge --image $@ $^ + # Note that 'tsc --watch' doesn't provide the files we are using. It's # just here for debug. watch: diff --git a/static/package.json b/static/package.json index eab0a481..27ea218a 100644 --- a/static/package.json +++ b/static/package.json @@ -6,5 +6,8 @@ "devDependencies": { "@types/uuid": "^8.3.1", "uuid": "^8.3.2" + }, + "optionalDependencies": { + "madge": "^5.0.1" } } -- cgit v1.2.3