Skip to content

Commit

Permalink
refactor: remove standalone package files and move those inline
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Simpson committed Aug 24, 2020
1 parent 733c123 commit 367680b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 21 deletions.
6 changes: 0 additions & 6 deletions cycle-dev-package.lisp

This file was deleted.

3 changes: 1 addition & 2 deletions cycle-dev.asd
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
:serial t
:depends-on (:cycle
:sqlite)
:components ((:file "cycle-dev-package")
(:file "cycle-dev")))
:components ((:file "cycle-dev")))
5 changes: 5 additions & 0 deletions cycle-dev.lisp
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
;;;; cycle-dev.lisp
(require "asdf")

(defpackage :cycle-dev
(:use
:cl
:cycle))

(in-package :cycle-dev)

(when (uiop:file-exists-p "BLOG")
Expand Down
5 changes: 2 additions & 3 deletions cycle.asd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:description "A opinionated static site builder."
:author "Adam Simpson <[email protected]>"
:license "GNU GPLv3"
:version "0.2.7"
:version "0.2.8"
:serial t
:depends-on (
:local-time
Expand All @@ -14,7 +14,6 @@
:3bmd
:3bmd-ext-code-blocks
:unix-opts)
:components ((:file "package")
(:file "cycle"))
:components ((:file "cycle"))
:build-pathname "cycle"
:entry-point "cycle:main")
9 changes: 9 additions & 0 deletions cycle.lisp
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
;;;; cycle.lisp
(require "asdf")

(defpackage :cycle
;;https://lisp-lang.org/style-guide/#one-package-per-file
(:use :cl)
(:export
:main
:write-file
:split-string
:file-basename))

(in-package :cycle)

(defvar posts nil "Global posts variable.")
Expand Down
10 changes: 0 additions & 10 deletions package.lisp

This file was deleted.

0 comments on commit 367680b

Please sign in to comment.