Migrate from personal repo

This commit is contained in:
2026-01-09 18:24:20 +01:00
commit 4696420c0a
23 changed files with 4737 additions and 0 deletions

31
Makefile Normal file
View File

@@ -0,0 +1,31 @@
.ONESHELL:
.POSIX:
.DEFAULT_GOAL := run
ELECTRON := $(shell \
if [ -f /etc/os-release ] && grep -q '^ID=nixos' /etc/os-release; then \
echo electron; \
else \
echo "npx electron"; \
fi)
node_modules: package-lock.json
npm install
.PHONY: run
run:
$(ELECTRON) src/main.js
.PHONY: run-x
run-x:
./util/run-xorg $(ELECTRON)
.PHONY: run-wl
run-wl:
./util/run-wl $(ELECTRON)
.PHONY: fix
fix: node_modules
./node_modules/.bin/prettier --write src