@jaykingson/cdk-toolbox 0.0.0-stage → 0.0.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Johannes Konings
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,34 @@
1
- # Temporary Holding Version
1
+ # cdk-toolbox
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ vite-plus monorepo for shared CDK constructs and deployment apps. The published package is `@jaykingson/cdk-toolbox` (MIT).
4
+
5
+ ## Layout
6
+
7
+ | Path | Purpose |
8
+ | ---------------------------- | ---------------------------------------------------- |
9
+ | `packages/cdk-constructs` | Shared CDK constructs (placeholder) |
10
+ | `apps/cdk-account-setup` | Account-wide bootstrap (permanent) |
11
+ | `apps/cdk-app-ephemeral` | Ephemeral PR stacks (deploy on PR, destroy on merge) |
12
+ | `apps/cdk-app-non-ephemeral` | Permanent main stack (deploy on main only) |
13
+
14
+ ## Quick start
15
+
16
+ ```bash
17
+ vp install
18
+ vp check
19
+ vp run -r test
20
+ vp run -r build
21
+ ```
22
+
23
+ ## CDK commands
24
+
25
+ ```bash
26
+ vp -C apps/cdk-account-setup exec cdk synth
27
+ vp -C apps/cdk-app-ephemeral exec cdk synth
28
+ vp -C apps/cdk-app-non-ephemeral exec cdk synth
29
+ ```
30
+
31
+ ## GitHub Actions prerequisites
32
+
33
+ - `AWS_ROLE_TO_ASSUME` secret: ARN of `GitHubActionsCdkDeployRole` from `AccountSetupStack` (`GitHubActionsDeployRoleArn`). The first account-setup deploy is local; later workflow runs assume this role.
34
+ - `CDK_DEFAULT_ACCOUNT` is set from OIDC credentials in deploy workflows
package/package.json CHANGED
@@ -1,6 +1,60 @@
1
1
  {
2
2
  "name": "@jaykingson/cdk-toolbox",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.0.1",
4
+ "description": "CDK apps and bingo blocks for vite-plus-base.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/JohannesKonings/cdk-toolbox.git"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "src/bingo-blocks/index.ts",
13
+ "src/bingo-blocks/blockCdkPreflight/blockCdkPreflight.ts"
14
+ ],
15
+ "type": "module",
16
+ "exports": {
17
+ "./bingo-blocks": {
18
+ "types": "./src/bingo-blocks/index.ts",
19
+ "default": "./dist/bingo-blocks.mjs"
20
+ },
21
+ "./package.json": "./package.json"
22
+ },
23
+ "devDependencies": {
24
+ "@jaykingson/vite-plus-base": "0.0.13",
25
+ "@types/node": "^24",
26
+ "bingo-stratum": "0.11.1",
27
+ "dependency-cruiser": "^18.5.0",
28
+ "tsrs": "7.1.0-beta.tsrs2",
29
+ "tsx": "^4.23.0",
30
+ "vite": "npm:@voidzero-dev/vite-plus-core@1.0.0",
31
+ "vite-plus": "1.0.0",
32
+ "vitest": "5.0.3"
33
+ },
34
+ "peerDependencies": {
35
+ "@jaykingson/vite-plus-base": ">=0.0.13"
36
+ },
37
+ "devEngines": {
38
+ "packageManager": {
39
+ "name": "pnpm",
40
+ "version": "12.23.0",
41
+ "onFail": "download"
42
+ },
43
+ "runtime": {
44
+ "name": "node",
45
+ "version": "^26.13.1",
46
+ "onFail": "download"
47
+ }
48
+ },
49
+ "engines": {
50
+ "node": ">=26.13.1"
51
+ },
52
+ "scripts": {
53
+ "build": "vp -C . pack",
54
+ "ready": "vp check && vp run -r test && vp run -r build",
55
+ "test": "vp test",
56
+ "cdk:account": "vp -C apps/cdk-account-setup exec cdk",
57
+ "cdk:ephemeral": "vp -C apps/cdk-app-ephemeral exec cdk",
58
+ "cdk:non-ephemeral": "vp -C apps/cdk-app-non-ephemeral exec cdk"
59
+ }
6
60
  }
@@ -0,0 +1,22 @@
1
+ import { base, blockPackageJson } from "@jaykingson/vite-plus-base/bingo";
2
+
3
+ const cdkPreflightRange = "^1.20.19";
4
+
5
+ export const blockCdkPreflight = base.createBlock({
6
+ about: {
7
+ name: "CDK Preflight",
8
+ },
9
+ produce() {
10
+ return {
11
+ extensions: [
12
+ blockPackageJson({
13
+ properties: {
14
+ devDependencies: {
15
+ "cdk-preflight": cdkPreflightRange,
16
+ },
17
+ },
18
+ }),
19
+ ],
20
+ };
21
+ },
22
+ });
@@ -0,0 +1,16 @@
1
+ import { base, blockPackageJson } from "@jaykingson/vite-plus-base/bingo";
2
+
3
+ import { blockCdkPreflight } from "./blockCdkPreflight/blockCdkPreflight.ts";
4
+
5
+ export { blockCdkPreflight };
6
+
7
+ export function cdkToolbox() {
8
+ return base.createPreset({
9
+ about: {
10
+ name: "cdk-toolbox",
11
+ },
12
+ // Package scope does not include the base preset, and extensions only apply
13
+ // to blocks already in the preset. Package JSON has to travel with the block.
14
+ blocks: [blockPackageJson, blockCdkPreflight],
15
+ });
16
+ }