@cdklabs/deploy-time-build 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +9563 -0
- package/.jsii.tabl.json +1 -0
- package/API.md +1673 -0
- package/AmazonQ.md +65 -0
- package/LICENSE +202 -0
- package/README.md +212 -45
- package/lambda/trigger-codebuild/dist/index.js +279 -0
- package/lambda/trigger-codebuild/index.ts +269 -0
- package/lambda/trigger-codebuild/package.json +17 -0
- package/lib/container-image-build.d.ts +84 -0
- package/lib/container-image-build.js +221 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +21 -0
- package/lib/nodejs-build.d.ts +84 -0
- package/lib/nodejs-build.js +221 -0
- package/lib/singleton-project.d.ts +28 -0
- package/lib/singleton-project.js +43 -0
- package/lib/soci-index-build.d.ts +30 -0
- package/lib/soci-index-build.js +118 -0
- package/lib/soci-index-v2-build.d.ts +41 -0
- package/lib/soci-index-v2-build.js +131 -0
- package/lib/types.d.ts +44 -0
- package/lib/types.js +3 -0
- package/package.json +156 -6
- package/rosetta/default.ts-fixture +24 -0
- package/rosetta/imported.ts-fixture +25 -0
package/package.json
CHANGED
|
@@ -1,10 +1,160 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdklabs/deploy-time-build",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"description": "Run build on CDK deployment time.",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/cdklabs/deploy-time-build.git"
|
|
7
|
+
},
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "npx projen build",
|
|
10
|
+
"bump": "npx projen bump",
|
|
11
|
+
"clobber": "npx projen clobber",
|
|
12
|
+
"compat": "npx projen compat",
|
|
13
|
+
"compile": "npx projen compile",
|
|
14
|
+
"default": "npx projen default",
|
|
15
|
+
"docgen": "npx projen docgen",
|
|
16
|
+
"eject": "npx projen eject",
|
|
17
|
+
"eslint": "npx projen eslint",
|
|
18
|
+
"integ": "npx projen integ",
|
|
19
|
+
"integ:update": "npx projen integ:update",
|
|
20
|
+
"package": "npx projen package",
|
|
21
|
+
"package-all": "npx projen package-all",
|
|
22
|
+
"package:java": "npx projen package:java",
|
|
23
|
+
"package:js": "npx projen package:js",
|
|
24
|
+
"package:python": "npx projen package:python",
|
|
25
|
+
"post-compile": "npx projen post-compile",
|
|
26
|
+
"post-upgrade": "npx projen post-upgrade",
|
|
27
|
+
"pre-compile": "npx projen pre-compile",
|
|
28
|
+
"release": "npx projen release",
|
|
29
|
+
"rosetta:extract": "npx projen rosetta:extract",
|
|
30
|
+
"test": "npx projen test",
|
|
31
|
+
"test:watch": "npx projen test:watch",
|
|
32
|
+
"unbump": "npx projen unbump",
|
|
33
|
+
"upgrade": "npx projen upgrade",
|
|
34
|
+
"upgrade-cdklabs-projen-project-types": "npx projen upgrade-cdklabs-projen-project-types",
|
|
35
|
+
"upgrade-dev-deps": "npx projen upgrade-dev-deps",
|
|
36
|
+
"watch": "npx projen watch",
|
|
37
|
+
"projen": "npx projen"
|
|
38
|
+
},
|
|
39
|
+
"author": {
|
|
40
|
+
"name": "Amazon Web Services",
|
|
41
|
+
"email": "aws-cdk-dev@amazon.com",
|
|
42
|
+
"organization": true
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@aws-cdk/integ-runner": "latest",
|
|
46
|
+
"@aws-cdk/integ-tests-alpha": "latest",
|
|
47
|
+
"@stylistic/eslint-plugin": "^2",
|
|
48
|
+
"@types/jest": "^29",
|
|
49
|
+
"@types/node": "^18",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^8",
|
|
51
|
+
"@typescript-eslint/parser": "^8",
|
|
52
|
+
"aws-cdk": "^2.159.0",
|
|
53
|
+
"aws-cdk-lib": "^2.159.0",
|
|
54
|
+
"cdklabs-projen-project-types": "^0.3.14",
|
|
55
|
+
"commit-and-tag-version": "^12",
|
|
56
|
+
"eslint": "^9",
|
|
57
|
+
"eslint-import-resolver-typescript": "^2.7.1",
|
|
58
|
+
"eslint-plugin-import": "^2.32.0",
|
|
59
|
+
"jest": "^29",
|
|
60
|
+
"jest-junit": "^16",
|
|
61
|
+
"jsii": "~5.9.0",
|
|
62
|
+
"jsii-diff": "^1.125.0",
|
|
63
|
+
"jsii-docgen": "^10.5.0",
|
|
64
|
+
"jsii-pacmak": "^1.125.0",
|
|
65
|
+
"jsii-rosetta": "~5.9.26",
|
|
66
|
+
"projen": "^0.99.3",
|
|
67
|
+
"ts-jest": "^29",
|
|
68
|
+
"ts-node": "^10.9.2",
|
|
69
|
+
"typescript": "^4.9.5"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"aws-cdk-lib": "^2.38.0",
|
|
73
|
+
"constructs": "^10.0.5"
|
|
74
|
+
},
|
|
5
75
|
"keywords": [
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
76
|
+
"aws",
|
|
77
|
+
"aws-cdk",
|
|
78
|
+
"cdk",
|
|
79
|
+
"ecr",
|
|
80
|
+
"ecs",
|
|
81
|
+
"lambda"
|
|
82
|
+
],
|
|
83
|
+
"engines": {
|
|
84
|
+
"node": ">= 18.12.0"
|
|
85
|
+
},
|
|
86
|
+
"main": "lib/index.js",
|
|
87
|
+
"license": "Apache-2.0",
|
|
88
|
+
"publishConfig": {
|
|
89
|
+
"access": "public"
|
|
90
|
+
},
|
|
91
|
+
"version": "0.0.3",
|
|
92
|
+
"jest": {
|
|
93
|
+
"coverageProvider": "v8",
|
|
94
|
+
"testMatch": [
|
|
95
|
+
"<rootDir>/@(src|test)/**/*(*.)@(spec|test).ts?(x)",
|
|
96
|
+
"<rootDir>/@(src|test)/**/__tests__/**/*.ts?(x)",
|
|
97
|
+
"<rootDir>/@(projenrc)/**/*(*.)@(spec|test).ts?(x)",
|
|
98
|
+
"<rootDir>/@(projenrc)/**/__tests__/**/*.ts?(x)"
|
|
99
|
+
],
|
|
100
|
+
"clearMocks": true,
|
|
101
|
+
"collectCoverage": true,
|
|
102
|
+
"coverageReporters": [
|
|
103
|
+
"json",
|
|
104
|
+
"lcov",
|
|
105
|
+
"clover",
|
|
106
|
+
"cobertura",
|
|
107
|
+
"text"
|
|
108
|
+
],
|
|
109
|
+
"coverageDirectory": "coverage",
|
|
110
|
+
"coveragePathIgnorePatterns": [
|
|
111
|
+
"/node_modules/"
|
|
112
|
+
],
|
|
113
|
+
"testPathIgnorePatterns": [
|
|
114
|
+
"/node_modules/"
|
|
115
|
+
],
|
|
116
|
+
"watchPathIgnorePatterns": [
|
|
117
|
+
"/node_modules/"
|
|
118
|
+
],
|
|
119
|
+
"reporters": [
|
|
120
|
+
"default",
|
|
121
|
+
[
|
|
122
|
+
"jest-junit",
|
|
123
|
+
{
|
|
124
|
+
"outputDirectory": "test-reports"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
],
|
|
128
|
+
"transform": {
|
|
129
|
+
"^.+\\.[t]sx?$": [
|
|
130
|
+
"ts-jest",
|
|
131
|
+
{
|
|
132
|
+
"tsconfig": "tsconfig.dev.json"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"types": "lib/index.d.ts",
|
|
138
|
+
"stability": "experimental",
|
|
139
|
+
"jsii": {
|
|
140
|
+
"outdir": "dist",
|
|
141
|
+
"targets": {
|
|
142
|
+
"java": {
|
|
143
|
+
"package": "io.github.cdklabs.deploy.time.build",
|
|
144
|
+
"maven": {
|
|
145
|
+
"groupId": "io.github.cdklabs",
|
|
146
|
+
"artifactId": "deploy-time-build"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"python": {
|
|
150
|
+
"distName": "cdklabs.deploy-time-build",
|
|
151
|
+
"module": "cdklabs.deploy_time_build"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"tsc": {
|
|
155
|
+
"outDir": "lib",
|
|
156
|
+
"rootDir": "src"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
|
|
10
160
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Fixture with packages imported, but nothing else
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
import {
|
|
4
|
+
Stack,
|
|
5
|
+
} from 'aws-cdk-lib';
|
|
6
|
+
import { Platform, DockerImageAsset } from 'aws-cdk-lib/aws-ecr-assets';
|
|
7
|
+
import { Cluster, FargateTaskDefinition, CpuArchitecture, AwsLogDriver } from 'aws-cdk-lib/aws-ecs';
|
|
8
|
+
import { DockerImageFunction } from 'aws-cdk-lib/aws-lambda';
|
|
9
|
+
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
|
|
10
|
+
import * as s3 from 'aws-cdk-lib/aws-s3';
|
|
11
|
+
import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
|
|
12
|
+
import * as iam from 'aws-cdk-lib/aws-iam';
|
|
13
|
+
|
|
14
|
+
declare const api: apigateway.RestApi;
|
|
15
|
+
declare const destinationBucket: s3.IBucket;
|
|
16
|
+
declare const distribution: cloudfront.IDistribution;
|
|
17
|
+
|
|
18
|
+
class Fixture extends Stack {
|
|
19
|
+
constructor(scope: Construct, id: string) {
|
|
20
|
+
super(scope, id);
|
|
21
|
+
|
|
22
|
+
/// here
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Fixture with packages imported, but nothing else
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
import {
|
|
4
|
+
Stack,
|
|
5
|
+
} from 'aws-cdk-lib';
|
|
6
|
+
import { Platform, DockerImageAsset } from 'aws-cdk-lib/aws-ecr-assets';
|
|
7
|
+
import { Cluster, FargateTaskDefinition, CpuArchitecture, AwsLogDriver } from 'aws-cdk-lib/aws-ecs';
|
|
8
|
+
import { DockerImageFunction } from 'aws-cdk-lib/aws-lambda';
|
|
9
|
+
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
|
|
10
|
+
import * as s3 from 'aws-cdk-lib/aws-s3';
|
|
11
|
+
import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
|
|
12
|
+
import * as iam from 'aws-cdk-lib/aws-iam';
|
|
13
|
+
import { NodejsBuild } from '@cdklabs/deploy-time-build';
|
|
14
|
+
|
|
15
|
+
declare const api: apigateway.RestApi;
|
|
16
|
+
declare const destinationBucket: s3.IBucket;
|
|
17
|
+
declare const distribution: cloudfront.IDistribution;
|
|
18
|
+
|
|
19
|
+
class Fixture extends Stack {
|
|
20
|
+
constructor(scope: Construct, id: string) {
|
|
21
|
+
super(scope, id);
|
|
22
|
+
|
|
23
|
+
/// here
|
|
24
|
+
}
|
|
25
|
+
}
|