aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-11-10 09:52:56 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-11-10 10:06:56 +0100
commit6f4b9a70164f1be205b64e8824a83ebee717d6c7 (patch)
treeeae74ad212bd7a0f1c9672555478548aa130e98f
parentSlight frontend makefile improvements. (diff)
downloadcalp-6f4b9a70164f1be205b64e8824a83ebee717d6c7.tar.gz
calp-6f4b9a70164f1be205b64e8824a83ebee717d6c7.tar.xz
Add madge for frontend dep visualization.
-rw-r--r--static/Makefile3
-rw-r--r--static/package.json3
2 files changed, 6 insertions, 0 deletions
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"
}
}