From 95eea6da44453339b2c1c42c6f92267efd11d63a Mon Sep 17 00:00:00 2001 From: paku Date: Fri, 9 Feb 2024 01:37:34 +0900 Subject: [PATCH] Use package-inferred-system (#3) --- piccolo-test.asd | 2 +- piccolo.asd | 25 ++---- src/{piccolo.lisp => elements.lisp} | 127 ++++++++++++++++++++-------- src/main.lisp | 6 ++ src/package.lisp | 61 ------------- src/util.lisp | 91 ++++++++++---------- 6 files changed, 153 insertions(+), 159 deletions(-) rename src/{piccolo.lisp => elements.lisp} (65%) create mode 100644 src/main.lisp delete mode 100644 src/package.lisp diff --git a/piccolo-test.asd b/piccolo-test.asd index 88b7216..51ca721 100644 --- a/piccolo-test.asd +++ b/piccolo-test.asd @@ -1,5 +1,5 @@ (defsystem piccolo-test - :author "Bo Yao " + :author "paku " :license "MIT" :depends-on (:piccolo :fiveam) :components ((:module "t" diff --git a/piccolo.asd b/piccolo.asd index 407149d..2937d21 100644 --- a/piccolo.asd +++ b/piccolo.asd @@ -1,18 +1,11 @@ -(defsystem piccolo - :author "Bo Yao " +(defsystem "piccolo" + :version "0.1.0" + :description "A beautiful, easily composable HTML5 generation library" + :author "paku " :license "MIT" - :version "0.2-dev" - :components ((:module "src" - :serial t - :components - ((:file "package") - (:file "util") - (:file "piccolo")))) - :description "A beautiful, easilly composable HTML5 generation library" - :long-description - #.(uiop:read-file-string - (uiop:subpathname *load-pathname* "README.md")) + :long-description #.(uiop:read-file-string + (uiop:subpathname *load-pathname* "README.md")) :in-order-to ((test-op (test-op piccolo-test))) - :depends-on (:alexandria - :assoc-utils - :let-over-lambda)) + :class :package-inferred-system + :pathname "src" + :depends-on ("piccolo/main")) diff --git a/src/piccolo.lisp b/src/elements.lisp similarity index 65% rename from src/piccolo.lisp rename to src/elements.lisp index af800cf..c459b33 100644 --- a/src/piccolo.lisp +++ b/src/elements.lisp @@ -1,4 +1,46 @@ -(in-package :piccolo) +(uiop:define-package #:piccolo/elements + (:use #:cl) + (:local-nicknames (#:util #:piccolo/util)) + (:local-nicknames (#:asc #:assoc-utils)) + (:local-nicknames (#:lol #:let-over-lambda)) + (:local-nicknames (#:alx #:alexandria)) + (:export + ;;; builtin HTML elements + ;;; all html5 elements, e.g. div, nav, media, export in code except + ;;;