Safe Haskell | None |
---|---|
Language | Haskell2010 |
Compilers for compiling and compressing typescript resources.
There are various helper compilers for common compilation cases.
In particular, compressJtsCompiler
will compile both typescript
and javascript files, then compress them.
There are other variations that may be useful as well. compressTsCompiler
is similar to compressJtsCompiler
, but is more strict and will not accept
arbitrary javascript. compressTsCompilerWith
is the most general combinator,
using this you can pass arbitrary arguments to the typescript compiler prior
to compilation. These results are then minified as well.
Finally, if you just want to compile typescript without minification, perhaps
for readability, use any of the functions that are not prefixed with "compress".
Again, here tsCompilerWith
is the most general, allowing additional compiler
arguments to be passed prior to compilation. jtsCompiler
is provided for
convenience to support flexibly compiling javascript and typescript without
compression.
Synopsis
- compressJtsCompiler :: Compiler (Item ByteString)
- compressJtsCompilerWith :: TSArgs -> Compiler (Item ByteString)
- compressTsCompiler :: Compiler (Item ByteString)
- compressTsCompilerWith :: TSArgs -> Compiler (Item ByteString)
- jtsCompiler :: Compiler (Item ByteString)
- jtsCompilerWith :: TSArgs -> Compiler (Item ByteString)
- tsCompiler :: Compiler (Item ByteString)
- tsCompilerWith :: TSArgs -> Compiler (Item ByteString)
- type TSArgs = [String]
Documentation
compressJtsCompiler :: Compiler (Item ByteString) Source #
Compiles the typescript or javascript Item
to javascript.
compressJtsCompilerWith :: TSArgs -> Compiler (Item ByteString) Source #
Compiles the typescript or javascript Item
to javascript,
then minifies the result
compressTsCompiler :: Compiler (Item ByteString) Source #
Compiles the typescript Item
to javascript, then
minifies the result.
compressTsCompilerWith :: TSArgs -> Compiler (Item ByteString) Source #
Compiles the typescript Item
to javascript, then
minifies the result. Passes all typescript arguments to the typescript
compiler for compilation.
jtsCompiler :: Compiler (Item ByteString) Source #
Compiles the typescript or javascript Item
to javascript.
jtsCompilerWith :: TSArgs -> Compiler (Item ByteString) Source #
tsCompiler :: Compiler (Item ByteString) Source #
Compiles the typescript Item
to javascript.
tsCompilerWith :: TSArgs -> Compiler (Item ByteString) Source #