-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgtf-website.cabal
More file actions
154 lines (139 loc) · 3.32 KB
/
Copy pathgtf-website.cabal
File metadata and controls
154 lines (139 loc) · 3.32 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
cabal-version: 3.4
name: gtf-website
synopsis: Software for running the gtf.io website
homepage: https://www.gtf.io/
license: BSD-3-Clause
version: 1.0.0.0
-- The file containing the license text.
license-file: LICENSE
author: Gideon Farrell
maintainer: gideon@gtf.io
category: Web
build-type: Simple
extra-source-files: src/GTF/Pages/**/*.djot
data-files:
src/GTF/Pages/content/assets/*.asc
src/GTF/Pages/content/assets/*.png
src/GTF/Pages/Musings/content/**/*.png
src/GTF/Pages/Projects/content/**/*.png
src/GTF/Pages/Projects/content/**/*.svg
src/GTF/Pages/Projects/content/**/*.hs
-- Extra doc files to be distributed with the package, such as a CHANGELOG or a README.
extra-doc-files: CHANGELOG.md
common warnings
ghc-options: -Wall
common lang
default-language: GHC2021
default-extensions:
LambdaCase
NoImplicitPrelude
OverloadedStrings
common exeopts
ghc-options: -threaded -rtsopts -with-rtsopts=-N
common deps
build-depends:
, aeson
, base ^>=4.17.2.0
, bytestring
, clay
, containers
, directory
, djot
, either
, filepath
, generic-lens
, http-types
, lucid
, megaparsec
, mime-types
, mtl
, network-uri
, parser-combinators
, template-haskell
, text
, time
, transformers
, unix
, wai
, warp
, yaml
library
import: warnings, lang, deps
hs-source-dirs: src
exposed-modules:
CommonPrelude
GTF.Content.Doc
GTF.Content.Loader
GTF.Content.Meta
GTF.Content.Musings
GTF.Content.Projects
GTF.Pages.Helpers
GTF.Pages.Musings
GTF.Pages.Projects
GTF.Router
GTF.Style.Main
Paths_gtf_website
other-modules:
GTF.Assets
GTF.Pages.Colophon
GTF.Pages.Error
GTF.Pages.Home
GTF.Pages.Layout
GTF.Pages.Partials.Footer
GTF.Pages.Partials.Highlight
GTF.Pages.Partials.Nav
GTF.Pages.Partials.TableOfContents
GTF.Style.DraftTools
GTF.Style.Helpers
GTF.Style.Home
GTF.Style.Lists
GTF.Style.Nav
GTF.Style.Projects
GTF.URL
executable gtf-website-server
import: warnings, lang, deps, exeopts
main-is: Main.hs
build-depends: gtf-website
hs-source-dirs: app/website
executable preview
import: warnings, lang, deps, exeopts
main-is: Main.hs
build-depends:
, async
, fsnotify
, gtf-website
, optparse-applicative
, stm
, string-interpolate
, websockets
hs-source-dirs: app/preview
other-modules:
GTF.LivePreview.LiveReload
GTF.LivePreview.Options
GTF.LivePreview.PreviewServer
executable draft-server
import: warnings, lang, deps, exeopts
main-is: Main.hs
build-depends:
, gtf-website
, http-client
, http-client-tls
, http-types
, servant
, servant-client
, servant-client-core
hs-source-dirs: app/draft-server
other-modules: GTF.DraftServ.Github
test-suite gtf-website-tests
import: warnings, lang, deps
main-is: Spec.hs
type: exitcode-stdio-1.0
build-depends:
, gtf-website
, hspec
, hspec-megaparsec
hs-source-dirs: test
other-modules:
GTF.Content.MetaSpec
GTF.Content.MusingsSpec
GTF.Content.ProjectsSpec