Compare commits

...

2 Commits

Author SHA1 Message Date
hans 5ff106ac14 .scm for scheme syntax 2026-09-02 23:18:57 +02:00
hans b257e195f9 architectuur principes 2026-09-02 11:53:11 +02:00
4 changed files with 52 additions and 40 deletions
-39
View File
@@ -1,39 +0,0 @@
#lang racket/base
(require racket-makefile)
(define test-install #f)
(makefile 'skill
(target 'all
(displayln "Use (make 'install)"))
(target 'install
(let ((home (find-system-path 'home-dir)))
(when (eq? home #f)
(error "No home directory?, cannot find place of .codex"))
(let* ((pwd (current-directory))
(skilld (build-path home ".codex" "skills"))
(racket-skilld (build-path skilld "racket-skill"))
(js-skilld (build-path skilld "javascript-skill"))
(cp (lambda (to-dir file)
(let ((from (build-path pwd file))
(to (build-path to-dir "SKILL.md")))
(unless (directory-exists? to-dir)
(make-directory to-dir))
(displayln (format "cp ~a -> ~a" from to))
(unless test-install
(copy-file from to #:exists-ok? #t)))))
)
(cp racket-skilld "racket-skill.md")
(cp js-skilld "javascript-skill.md")
)))
(target 'test-install
(set! test-install #t)
(make 'install)
(set! test-install #f))
)
+44
View File
@@ -0,0 +1,44 @@
#lang racket/base
(require racket-makefile
racket/file)
(define test-install #f)
(makefile 'skill
(target 'all
(displayln "Use (make 'install)"))
(target 'install
(let ((home (find-system-path 'home-dir)))
(when (eq? home #f)
(error "No home directory?, cannot find place of .codex"))
(for-each (lambda (subdir)
(let* ((pwd (current-directory))
(skilld (build-path home subdir)) ;".codex" "skills"))
(racket-skilld (build-path skilld "racket-skill"))
(js-skilld (build-path skilld "javascript-skill"))
(cp (lambda (to-dir file)
(let ((from (build-path pwd file))
(to (build-path to-dir "SKILL.md")))
(unless (directory-exists? to-dir)
(make-directory* to-dir))
(displayln (format "cp ~a -> ~a" from to))
(unless test-install
(copy-file from to #:exists-ok? #t)))))
)
(cp racket-skilld "racket-skill.md")
(cp js-skilld "javascript-skill.md")
))
(list (build-path ".codex" "skills")
(build-path ".copilot" "skills")))
))
(target 'test-install
(set! test-install #t)
(make 'install)
(set! test-install #f))
)
+7
View File
@@ -171,3 +171,10 @@ Scheid verschillende verantwoordelijkheden in afzonderlijke onderdelen
en voorkom dat één onderdeel meerdere, onderling onafhankelijke concerns en voorkom dat één onderdeel meerdere, onderling onafhankelijke concerns
door elkaar heen behandelt. door elkaar heen behandelt.
# Specifieke aandachtspunten
## Het gebruik van browseropslag
Opslag in de browser, zoals bijvoorbeeld door localStorage te gebruiken, is
voor data/model verboden. Tenzij om een werkruimte te creëeren die nodig is
t.b.v. betrouwbaarheid en performance. Of caching te doen t.b.v. performance.
+1 -1
View File
@@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
racket -e "(enter! \"Makefile.mk\") (make 'install)" racket -e "(enter! \"Makefile.scm\") (make 'install)"