Skip to content

Config reference

srcDir include exclude

javascript { host }

typescript { types noExplicitAny }

compiler { emitDir emitCode emitCodeLang emitSourceMaps }

dev { wipeEmitDir }

srcDir

Source directory of your program

Default ./src

include

List of glob patterns to include in your program from the srcDir

{
"include": ["./src/**", "./tests/**"]
}
  • Directoryscripts
    • format.jsp
    • lint.jsp
  • Directorysrc
    • Directoryclient
      • index.jsp
    • utils.jsp
    • utils.ts
    • Directoryserver
      • index.jsp
    • lsp.ts
    • index.jsp
  • Directorytests
    • index.jsp
    • utils.jsp
Default [./**]

exclude

List of glob patterns to exclude when resolving include

Default []

Configuration for JavaScript

host

Where will your JavaScript run. Can be Browser or Server

Default Browser

Configuration for TypeScript

types

TypeScript types field

Default []

Configuration for the compilation process

emitDir

Directory to emit compiled JS+ files into

Default ./dist

emitCode

Emit compiled JS+

If set to false the JS+ compiler will check for syntax, semantic and type errors but not emit any code

Default true

emitCodeLang

Language to compile JS+ into. Can be JavaScript or TypeScript

Default TypeScript

emitSourceMaps

Emit source maps

Default false

Configuration for development

wipeEmitDir

Wipe the emitDir before each compilation

Default false