Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

target_compiler

Marcel Kloubert edited this page May 26, 2019 · 12 revisions

Home >> Targets >> compiler

Compiler

Compiles files.

{
    "deploy.reloaded": {
        "targets": [
            {
                "type": "compiler",
                "compiler": "coffeescript"
            }
        ]
    }
}
Name Description
compiler* The compiler to use.
dir* The custom output directory. Relative paths will be mapped to the root directory of the underlying workspace.
options Additional options for the compiler.

* supports placeholders

Compilers

CoffeeScript

Valid values for compiler property:

  • coffee
  • coffeescript
{
    "deploy.reloaded": {
        "targets": [
            {
                "type": "compiler",
                "compiler": "coffee"
            }
        ]
    }
}

Additional options

Name Description
encoding* The encoding of / for the files. Default: utf8
extension* The custom file extension for the output files to use. Default: js

* supports placeholders

HTMLMinifier

Valid values for compiler property:

  • html-minifier
  • html-min
  • htmlminifier
  • htmlmin
{
    "deploy.reloaded": {
        "targets": [
            {
                "type": "compiler",
                "compiler": "htmlmin"
            }
        ]
    }
}

Additional options

Name Description
deleteSources Delete source files or not. Default: (false)
encoding* The encoding of / for the files. Default: utf8
extension* The custom file extension for the output files to use. Default: min.html

* supports placeholders

LESS

Valid values for compiler property:

  • less
{
    "deploy.reloaded": {
        "targets": [
            {
                "type": "compiler",
                "compiler": "less"
            }
        ]
    }
}

Additional options

Name Description
encoding* The encoding of / for the files. Default: utf8
extension* The custom file extension for the output files to use. Default: css

* supports placeholders

For more options: s. Programmatic Usage

Pug

Valid values for compiler property:

  • pug
{
    "deploy.reloaded": {
        "targets": [
            {
                "type": "compiler",
                "compiler": "pug"
            }
        ]
    }
}

Additional options

Name Description
encoding* The encoding of / for the files. Default: utf8
extension* The custom file extension for the output files to use. Default: html

* supports placeholders

For more options: s. API reference

UglifyJS

Valid values for compiler property:

  • uglifyjs
  • uglify-js
{
    "deploy.reloaded": {
        "targets": [
            {
                "type": "compiler",
                "compiler": "uglify-js"
            }
        ]
    }
}

Additional options

Name Description
deleteSources Delete source files or not. Default: (false)
encoding* The encoding of / for the files. Default: utf8
extension* The custom file extension for the output files to use. Default: min.js

* supports placeholders

Clone this wiki locally