hakyll-typescript: Typescript and javascript hakyll compilers.

[ bsd3, library, web ] [ Propose Tags ]

Provides typescript to javascript hakyll compilers and a js minifying hakyll compiler. This is a simple wrapper around other common utilities found in hakyll projects, particularly hjsmin.

[Skip to Readme]
Versions [faq]
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5), bytestring (>= && <0.11), hakyll (>= && <4.13), hjsmin (>= && <0.3), typed-process (>= && <0.3) [details]
License BSD-3-Clause
Copyright 2019 Jim McStanton
Author Jim McStanton
Maintainer jim@jhmcstanton.com
Category web
Home page https://github.com/jhmcstanton/hakyll-typescript#readme
Source repo head: git clone https://github.com/jhmcstanton/hakyll-typescript
Uploaded by jhmcstanton at 2019-09-29T19:02:11Z
Distributions NixOS:
Downloads 314 total (2 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-09-29 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees

Readme for hakyll-typescript-

[back to package description]


A simple hakyll typescript compiler for typescript and javascript resources. Uses hjsmin for compression.

Assumes that the typescript compiler is installed and available to the user running hakyll.

Example Usage

In your hakyll site simply import the compiler you are interested in using and provide it as the compiler for your relevant script files.

import Hakyll.Typescript.TS

main = hakyll $ do
  -- Matches any file inside a the directory ./scripts
  match "scripts/**" $ do
    route   $ setExtension "js"
    -- compiles all typescript and javascript to the js target
    -- then compresses the result
    compile compressJtsCompiler

See the documentation for other available compilers.

Build the Source

This project uses stack. Clone the project, then run stack build from the root.

Build the Docs

For whatever reason stack haddock fails to pull down some necessary packages. To build the docs run stack exec haddock -- --html --hoogle --html-location=../$pkg-$version/ --hyperlinked-source --quickjump src/**/*.hs -o doc. The index will be found in ./doc/.