Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NodeTarget

Represents a Node program. This is compatible with both browsers and Node.

Hierarchy

Index

Properties

Optional afterBuild

afterBuild: TaskFunction

External task to run after {target}:build

Optional buildDir

buildDir: RelPosixPath

Relative path to the build directory for this target, relative to project.rootDir. The default value is join(project.buildDir, target.name).

Optional clean

Minimatch patterns to clean the files created during the build and dist tasks, relative to project.root.

Default: { dirs: [ path.join(project.buildDir, target.targetDir), path.join(project.distDir, target.targetDir) ] }

Optional copy

copy: CopyOptions[]

A list of copy operations to perform during the build process.

Default: []

Optional dependencies

dependencies: BaseDependencies

Override default dependencies or provide optional dependencies.

mainModule

mainModule: RelPosixPath

Relative path for the main module (entry point of the lib) WITHOUT EXTENSION, relative to project.srcDir. Default: "index".

name

name: string

Name of the target. All the tasks related to this target will be prefixed by this name. It will also be used to resolve the default values for some paths, so it must avoid any special characters.

project

project: Project

Optional scripts

scripts: Iterable<string>

Glob patterns for the Typescript sources, relative to target.srcDir.

It uses the minimatch patterns. Glob stars (wild stars, **) use target.srcDir as their base directory.

Default: [join(target.srcDir, "**", "*.ts")]

Optional srcDir

srcDir: RelPosixPath

Relative path to the base directory for the sources, relative to project.rootDir. The default value is project.srcDir.

Optional tscOptions

tscOptions: CustomTscOptions

Overrides for the options of the Typescript compiler.

Optional tsconfigJson

tsconfigJson: RelPosixPath

Path to the tsconfig.json file for this target, relative to project.rootDir.

The default value is join(target.srcDir, "tsconfig.json").

Generated using TypeDoc