Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(toolkit): generate docs #32991

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/@aws-cdk/toolkit/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dist
coverage
.nyc_output
*.tgz
docs

# Ignore config files
.eslintrc.js
Expand Down
6 changes: 3 additions & 3 deletions packages/@aws-cdk/toolkit/lib/actions/diff/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class DiffMethod {
*
* This will create, analyze, and subsequently delete a changeset against the CloudFormation stack.
*/
public static ChangeSet(options: ChangeSetDiffOptions = {}) {
public static ChangeSet(options: ChangeSetDiffOptions = {}): DiffMethod {
return new class extends DiffMethod {
public override readonly options: ChangeSetDiffOptions;
public constructor(opts: ChangeSetDiffOptions) {
Expand All @@ -44,7 +44,7 @@ export class DiffMethod {
}(options);
}

public static TemplateOnly(options: CloudFormationDiffOptions = {}) {
public static TemplateOnly(options: CloudFormationDiffOptions = {}): DiffMethod {
return new class extends DiffMethod {
public override readonly options: CloudFormationDiffOptions;
public constructor(opts: CloudFormationDiffOptions) {
Expand All @@ -54,7 +54,7 @@ export class DiffMethod {
}(options);
}

public static LocalFile(path: string) {
public static LocalFile(path: string): DiffMethod {
return new class extends DiffMethod {
public override readonly options: { path: string };
public constructor(opts: { path: string }) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export abstract class CloudAssemblySourceBuilder {

/**
* Create a Cloud Assembly from a Cloud Assembly builder function.
* @param builder the builder function
* @param props additional configuration properties
* @returns the CloudAssembly source
*/
public async fromAssemblyBuilder(
builder: AssemblyBuilder,
Expand Down Expand Up @@ -52,9 +55,8 @@ export abstract class CloudAssemblySourceBuilder {

/**
* Creates a Cloud Assembly from an existing assembly directory.
* @param directory the directory of the AWS CDK app. Defaults to the current working directory.
* @param props additional configuration properties
* @returns an instance of `AwsCdkCli`
* @param directory the directory of a already produced Cloud Assembly.
* @returns the CloudAssembly source
*/
public async fromAssemblyDirectory(directory: string): Promise<ICloudAssemblySource> {
const services: ToolkitServices = await this.toolkitServices();
Expand All @@ -78,9 +80,8 @@ export abstract class CloudAssemblySourceBuilder {
}
/**
* Use a directory containing an AWS CDK app as source.
* @param directory the directory of the AWS CDK app. Defaults to the current working directory.
* @param props additional configuration properties
* @returns an instance of `AwsCdkCli`
* @returns the CloudAssembly source
*/
public async fromCdkApp(app: string, props: CdkAppSourceProps = {}): Promise<ICloudAssemblySource> {
const services: ToolkitServices = await this.toolkitServices();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export class StackAssembly extends CloudAssembly implements ICloudAssemblySource
/**
* Select all stacks that have the validateOnSynth flag et.
*
* @param assembly
* @returns a `StackCollection` of all stacks that needs to be validated
*/
public selectStacksForValidation() {
Expand Down
2 changes: 2 additions & 0 deletions packages/@aws-cdk/toolkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"build+extract": "yarn build",
"build+test+extract": "yarn build+test",
"bundle": "node bundle.mjs",
"docs": "typedoc lib/index.ts --excludeExternals --excludePrivate --excludeProtected --excludeInternal",
"lint": "cdk-lint",
"package": "cdk-package",
"pkglint": "pkglint -f",
Expand Down Expand Up @@ -49,6 +50,7 @@
"aws-cdk-lib": "0.0.0",
"esbuild": "^0.24.0",
"jest": "^29.7.0",
"typedoc": "^0.27.6",
"typescript": "~5.6.3"
},
"dependencies": {
Expand Down
Loading
Loading