Interface: BuilderConfig

serverBuilder.BuilderConfig

Server builder configuration.

Properties

build

Optional build: string

Intermediate build directory for resources that require multiple build steps. Defaults to build if not provided.


compileSls

Optional compileSls: "service" | "gameserver"

Optional serverless template to use for the build. Defaults to ‘gameserver’.

Allows to specify whether the project should use the gameserver.yml or the service.yml service template. Since the gameserver.yml has additional properties which are not necessary for our services.


config

config: Config

Project configuration loaded from *.project.


customImportRoot

Optional customImportRoot: string

Root path for custom imports. Required to maintain directory hierarchy when using a custom rootDir parameter for tsc.

The path is relative to the src directory.


customImports

Optional customImports: string | string[]

Custom files not copied by tsc. These are usually non-standard file extensions that are not copied by default, for example .graphql.

The glob patterns here match against the original files in the src directory.


dist

Optional dist: string

Destination path for final bundle. Defaults to dist if not provided.


entry

entry: string | string[]

Handler entrypoints.

The file lookup happens from the intermediate build directory where the TypeScript files are compiled to.


gulp

gulp: Gulp

The gulp instance from the project’s gulpfile.


scriptWatch

Optional scriptWatch: string | string[]

Watcher glob patterns for dev-env script compile. Watches all .ts, .mts and .json files recursively if not provided.

The glob patterns here match against the original files in the src directory.


src

Optional src: string

Source root path, ie. the base for all relative paths. Defaults to src if not provided.


templates

templates: string | string[]

Serverless templates to build.

The glob patterns here match against the original files in the src directory.


webpack

Optional webpack: Partial<WebpackConfig>

Webpack options to override built-in builder Webpack options. The options are deep merged with the default ones.