From c0968d263d5531d21a6ff9df111d63ca2c6e43fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 5 Nov 2021 19:34:01 +0100 Subject: Start depending on npm. Chromium can't handle JavaScript-modules in XHTML-document [1]. The workaround is to use a javascript bundler. Here we start depending on browserify. I evaluated both that and webpack, and browserify seemed to work marginally better with typescript. Unfortunately this also makes us depend on npm, where we unfortunately already are bloatet... $ ls static/node_modules | wc -l 174 [1]: https://bugs.chromium.org/p/chromium/issues/detail?id=717643 --- static/package.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 static/package.json (limited to 'static/package.json') diff --git a/static/package.json b/static/package.json new file mode 100644 index 00000000..a25830a1 --- /dev/null +++ b/static/package.json @@ -0,0 +1,6 @@ +{ + "dependencies": { + "browserify": "^17.0.0", + "tsify": "^5.0.4" + } +} -- cgit v1.2.3 From ae3142da0cf31696f4ab4ad258c5483b7c5490b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 8 Nov 2021 19:38:42 +0100 Subject: Major work on event creation. --- static/package.json | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'static/package.json') diff --git a/static/package.json b/static/package.json index a25830a1..eab0a481 100644 --- a/static/package.json +++ b/static/package.json @@ -2,5 +2,9 @@ "dependencies": { "browserify": "^17.0.0", "tsify": "^5.0.4" + }, + "devDependencies": { + "@types/uuid": "^8.3.1", + "uuid": "^8.3.2" } } -- cgit v1.2.3 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/package.json | 3 +++ 1 file changed, 3 insertions(+) (limited to 'static/package.json') 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