feat(rules): add main-lua-exists and makefile target rules #29

Closed
opened 2026-05-25 10:06:27 +02:00 by michael · 1 comment
Owner

Problem

daw-project-standard.md requires main.lua as entry point for host projects
and specific Makefile targets. Neither is currently enforced by fragjan.

Missing rules

daw-project pack:

  • main-lua-exists: main.lua present in project root (exists primitive)
  • makefile-has-test: Makefile contains "test:" (contains primitive)
  • makefile-has-install: Makefile contains "install:" (contains primitive)

daw-module pack (lua-module-pkg):

  • makefile-has-test: Makefile contains "test:" (contains primitive)
  • makefile-has-dist: Makefile contains "dist:" (contains primitive)

daw-lib pack:

  • makefile-has-test: Makefile contains "test:" (contains primitive)

Acceptance criteria

  • Rules implemented as YAML in respective pack directories
  • pack.yaml requires updated where needed

Notes

makefile-has-test appears in all three packs with identical content.
Checking for "test:" as literal string is sufficient for now.

Sub-module type repos (daw-modul-berhtjan-*, module_manager) do not
need dist/release targets -- use DAW/fragjan#15 exclude_rules if needed.

## Problem daw-project-standard.md requires main.lua as entry point for host projects and specific Makefile targets. Neither is currently enforced by fragjan. ## Missing rules **daw-project pack:** - main-lua-exists: main.lua present in project root (exists primitive) - makefile-has-test: Makefile contains "test:" (contains primitive) - makefile-has-install: Makefile contains "install:" (contains primitive) **daw-module pack (lua-module-pkg):** - makefile-has-test: Makefile contains "test:" (contains primitive) - makefile-has-dist: Makefile contains "dist:" (contains primitive) **daw-lib pack:** - makefile-has-test: Makefile contains "test:" (contains primitive) ## Acceptance criteria - [ ] Rules implemented as YAML in respective pack directories - [ ] pack.yaml requires updated where needed ## Notes makefile-has-test appears in all three packs with identical content. Checking for "test:" as literal string is sufficient for now. Sub-module type repos (daw-modul-berhtjan-*, module_manager) do not need dist/release targets -- use DAW/fragjan#15 exclude_rules if needed. ## Related - DAW/fragjan#15 (exclude_rules)
Author
Owner

Done

  • main-lua-exists added to daw-lua-host
  • makefile-has-install added to daw-lua-host
  • makefile-has-test added to daw-lua-common (all three types)
  • makefile-has-dist added to daw-lua-common-module-host

Notes

Sub-module repos can use DAW/fragjan#15 exclude_rules once implemented.

## Done - main-lua-exists added to daw-lua-host - makefile-has-install added to daw-lua-host - makefile-has-test added to daw-lua-common (all three types) - makefile-has-dist added to daw-lua-common-module-host ## Notes Sub-module repos can use DAW/fragjan#15 exclude_rules once implemented.
michael 2026-05-26 14:53:12 +02:00
michael added this to the Basic Version milestone 2026-05-30 16:05:10 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/fragjan#29
No description provided.