ReadonlyabsoluteThe absolute path of this file.
Indicates if the file should be marked as executable
ReadonlyfileReadonlynodeThe tree node.
ReadonlyoptionsReadonlypathThe file path, relative to the project's outdir.
ReadonlyprojectIndicates if the file should be read-only or read-write.
ReadonlytsconfigIndicates if the file has been changed during synthesis. This property is
only available in postSynthesize() hooks. If this is undefined, the
file has not been synthesized yet.
The projen marker, used to identify files as projen-generated.
Value is undefined if the project is being ejected.
Merge configuration.
Transform config.
Transformation to apply.
Add plugin to config.
Plugin spec to add.
Get or create property assignment initializer on object literal.
Source ObjectLiteralExpression
Property assignment name.
SyntaxKind of initializer.
OptionaldefaultInitializer: string | WriterFunctionSpecify initializer to use if creation is warranted. Default depends on initializerKind.
Called after synthesis. Order is not guaranteed.
Called before synthesis.
Writes the file to the project's output directory
ProtectedsynthesizeImplemented by derived classes and returns the contents of the file to emit.
the content to synthesize or undefined to skip the file
Returns a string representation of this construct.
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
The mixins to apply
This construct for chaining
StaticisTest whether the given construct is a component.
StaticisChecks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
Any object
true if x is an object created from a class which extends Construct.
StaticwithCreate config with call expression config resolver.
Project to add config to.
Path to config file.
Config options.
Managed TypeScriptSourceFile through TypeScript AST
See
Based on: https://github.com/mrgrain/cdk-esbuild/blob/main/projenrc/TypeScriptSourceFile.ts