-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.janet
More file actions
51 lines (44 loc) · 1.64 KB
/
project.janet
File metadata and controls
51 lines (44 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
(declare-project
:name "spork-https"
:description "HTTPS support for spork using jsec"
:author "llmII <dev@amlegion.org>"
:license "ISC"
:url "https://github.com/llmII/spork-https"
:repo "git+https://github.com/llmII/spork-https.git"
:version "0.1.0"
:dependencies
[{:url "https://github.com/llmII/jsec.git"
:tag "main"}
{:url "https://github.com/janet-lang/spork.git"
:tag "master"}
{:url "https://github.com/llmII/janet-assay.git"
:tag "main"}])
(declare-source
:source ["spork-https.janet"])
# Format Janet code with janet-format
(phony "format-janet" []
(print "Formatting Janet source files with janet-format...")
(os/shell (string "find . -name '*.janet' "
"-not -path './jpm_tree/*' "
"-not -path './build/*' "
"| xargs janet-format -f")))
# Format all code
(phony "format" ["format-janet"]
(print "All code formatted"))
# Generate markdown from org files
(phony "gen-docs" []
(print "Generating markdown documentation from org files...")
(os/shell (string "emacs --batch --eval \"(require 'ox-md)\" "
"README.org -f org-md-export-to-markdown")))
# Clean generated files
(phony "clean-gen" []
(print "Cleaning generated files...")
(os/shell "rm -f README.md"))
# Clean build artifacts
(phony "clean" ["clean-gen"]
(print "Cleaning build artifacts...")
(os/shell "rm -rf build jpm_tree")
(os/shell "rm -f debug.log"))
# Release task - format code and generate docs
(phony "release" ["clean" "format" "gen-docs"]
(print "Release preparation complete"))