Files
rainbowcroissant/Makefile
Kevin Samuel 67acb928e6 11ty migrate (#6)
* purge sveltekit

* install eleventy

* move out stuff. move stuff around

* add basic stuff

* update picocss + knls patch for navlist margins

* install some stuff for 11ty

markdown attributes
configure eleventy renderFile plugin

* make base layout

* more complete base layout

* style base to full page body

* PAGES

* add npm build script
2023-10-12 23:22:11 +05:30

37 lines
667 B
Makefile

PROJ = eflufeedeets
POD_MOUNTS = \
-w /app \
-v $(PWD):/app:z \
-v $(PROJ)_modules:/app/node_modules:z
POD_OPTIONS_TEMPLATE = \
--interactive --tty \
--rm \
--name $(PROJ)_$(CONTAINER_TAG) \
$(POD_MOUNTS) $(EXTRA_FLAGS) \
node:alpine
dev: EXTRA_FLAGS = --publish 8080:8080
dev: SCRIPT = dev
dev: run
format:
podman exec --interactive --tty $(PROJ)_dev npm run format
test: SCRIPT = test
test:
$(error doesn't actually work. you didn't set it up)
build: SCRIPT = build
build: run
run: CONTAINER_TAG = $(firstword $(SCRIPT))
run:
podman run $(POD_OPTIONS_TEMPLATE) npm run $(SCRIPT)
sh: CONTAINER_TAG = sh
sh:
podman run $(POD_OPTIONS_TEMPLATE) sh