diff --git a/platform/create-bundle/bin/create-bundle b/platform/create-bundle/bin/create-bundle new file mode 100755 index 00000000..7e2db81d --- /dev/null +++ b/platform/create-bundle/bin/create-bundle @@ -0,0 +1,3 @@ +#!/usr/bin/env node +// dedicated bin file required due to https://github.com/microsoft/rushstack/issues/1100 +require('../dist/create-bundle-bin.js'); diff --git a/platform/create-bundle/package.json b/platform/create-bundle/package.json index cb93fcdd..4ff7b26a 100644 --- a/platform/create-bundle/package.json +++ b/platform/create-bundle/package.json @@ -2,7 +2,7 @@ "name": "@cats-cradle/create-bundle", "license": "MIT", "bin": { - "create-bundle": "./dist/create-bundle-bin.js" + "create-bundle": "bin/create-bundle" }, "main": "./dist/index.js", "version": "1.0.0", diff --git a/services/admin-client/cdk.json b/services/admin-client/cdk.json index 6a8b8397..4206474f 100644 --- a/services/admin-client/cdk.json +++ b/services/admin-client/cdk.json @@ -1,17 +1,8 @@ { - "app": "npx ts-node --esm --prefer-ts-exts bin/app.ts", + "app": "create-bundle && npx ts-node --esm --prefer-ts-exts bin/app.ts", "watch": { - "include": ["dist/"], - "exclude": [ - "README.md", - "cdk*.json", - "**/*.d.ts", - "**/*.js", - "tsconfig.json", - "package*.json", - "node_modules", - "__tests__" - ] + "include": ["src/", "stacks/", "pages/", "components/"], + "exclude": ["__tests__", "*.test.ts", "*.e2e-spec.ts"] }, "context": { "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true, diff --git a/services/authentication-service/cdk.json b/services/authentication-service/cdk.json index bc1f90e2..caaf9b25 100644 --- a/services/authentication-service/cdk.json +++ b/services/authentication-service/cdk.json @@ -1,17 +1,8 @@ { - "app": "npx ts-node --prefer-ts-exts bin/app.ts", + "app": "create-bundle && npx ts-node --prefer-ts-exts bin/app.ts", "watch": { - "include": ["dist/"], - "exclude": [ - "README.md", - "cdk*.json", - "**/*.d.ts", - "**/*.js", - "tsconfig.json", - "package*.json", - "node_modules", - "__tests__" - ] + "include": ["src/", "stacks/"], + "exclude": ["__tests__", "*.test.ts", "*.e2e-spec.ts"] }, "context": { "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true, diff --git a/services/authentication-service/package.json b/services/authentication-service/package.json index bc003aa2..76aa8675 100644 --- a/services/authentication-service/package.json +++ b/services/authentication-service/package.json @@ -18,7 +18,8 @@ "cdk:diff": "cdk diff", "cdk:synth": "cdk synth", "cdk:hotswap": "cdk deploy --hotswap", - "cdk:deploy": "create-bundle && cdk deploy", + "cdk:deploy": "cdk deploy", + "cdk:watch": "cdk watch", "cdk:destroy": "cdk destroy", "depcheck": "npx depcheck", "typecheck": "tsc --noEmit" diff --git a/services/billing-system/cdk.json b/services/billing-system/cdk.json index bc1f90e2..caaf9b25 100644 --- a/services/billing-system/cdk.json +++ b/services/billing-system/cdk.json @@ -1,17 +1,8 @@ { - "app": "npx ts-node --prefer-ts-exts bin/app.ts", + "app": "create-bundle && npx ts-node --prefer-ts-exts bin/app.ts", "watch": { - "include": ["dist/"], - "exclude": [ - "README.md", - "cdk*.json", - "**/*.d.ts", - "**/*.js", - "tsconfig.json", - "package*.json", - "node_modules", - "__tests__" - ] + "include": ["src/", "stacks/"], + "exclude": ["__tests__", "*.test.ts", "*.e2e-spec.ts"] }, "context": { "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true, diff --git a/services/billing-system/package.json b/services/billing-system/package.json index 6b406019..cd99d239 100644 --- a/services/billing-system/package.json +++ b/services/billing-system/package.json @@ -20,6 +20,7 @@ "cdk:diff": "cdk diff", "cdk:deploy": "cdk deploy", "cdk:hotswap": "cdk deploy --hotswap", + "cdk:watch": "cdk watch", "cdk:destroy": "cdk destroy", "depcheck": "npx depcheck" }, diff --git a/services/character-sheet/cdk.json b/services/character-sheet/cdk.json index bc1f90e2..caaf9b25 100644 --- a/services/character-sheet/cdk.json +++ b/services/character-sheet/cdk.json @@ -1,17 +1,8 @@ { - "app": "npx ts-node --prefer-ts-exts bin/app.ts", + "app": "create-bundle && npx ts-node --prefer-ts-exts bin/app.ts", "watch": { - "include": ["dist/"], - "exclude": [ - "README.md", - "cdk*.json", - "**/*.d.ts", - "**/*.js", - "tsconfig.json", - "package*.json", - "node_modules", - "__tests__" - ] + "include": ["src/", "stacks/"], + "exclude": ["__tests__", "*.test.ts", "*.e2e-spec.ts"] }, "context": { "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true, diff --git a/services/character-sheet/package.json b/services/character-sheet/package.json index f3eb6262..f2f9299d 100644 --- a/services/character-sheet/package.json +++ b/services/character-sheet/package.json @@ -18,7 +18,8 @@ "cdk:diff": "cdk diff", "cdk:synth": "cdk synth", "cdk:hotswap": "cdk deploy --hotswap", - "cdk:deploy": "create-bundle && cdk deploy", + "cdk:deploy": "cdk deploy", + "cdk:watch": "cdk watch", "cdk:destroy": "cdk destroy", "depcheck": "npx depcheck", "typecheck": "tsc --noEmit" diff --git a/services/design-system/cdk.json b/services/design-system/cdk.json index e3354860..5b1ff5d7 100644 --- a/services/design-system/cdk.json +++ b/services/design-system/cdk.json @@ -1,17 +1,8 @@ { - "app": "npx ts-node --prefer-ts-exts --esm bin/app.ts", + "app": "create-bundle && npx ts-node --prefer-ts-exts --esm bin/app.ts", "watch": { - "include": ["dist/"], - "exclude": [ - "README.md", - "cdk*.json", - "**/*.d.ts", - "**/*.js", - "tsconfig.json", - "package*.json", - "node_modules", - "__tests__" - ] + "include": ["src/", "stacks/", "pages/", "components/"], + "exclude": ["__tests__", "*.test.ts", "*.e2e-spec.ts"] }, "context": { "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true, diff --git a/services/design-system/package.json b/services/design-system/package.json index 6533f3b8..69d826e4 100644 --- a/services/design-system/package.json +++ b/services/design-system/package.json @@ -28,6 +28,7 @@ "cdk:synth": "cdk synth", "cdk:hotswap": "cdk deploy --hotswap", "cdk:deploy": "storybook build && cdk deploy", + "cdk:watch": "cdk watch", "cdk:destroy": "cdk destroy", "depcheck": "npx depcheck" }, diff --git a/services/email-service/cdk.json b/services/email-service/cdk.json index bc1f90e2..caaf9b25 100644 --- a/services/email-service/cdk.json +++ b/services/email-service/cdk.json @@ -1,17 +1,8 @@ { - "app": "npx ts-node --prefer-ts-exts bin/app.ts", + "app": "create-bundle && npx ts-node --prefer-ts-exts bin/app.ts", "watch": { - "include": ["dist/"], - "exclude": [ - "README.md", - "cdk*.json", - "**/*.d.ts", - "**/*.js", - "tsconfig.json", - "package*.json", - "node_modules", - "__tests__" - ] + "include": ["src/", "stacks/"], + "exclude": ["__tests__", "*.test.ts", "*.e2e-spec.ts"] }, "context": { "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true, diff --git a/services/email-service/package.json b/services/email-service/package.json index 4d1b5163..cc5183b9 100644 --- a/services/email-service/package.json +++ b/services/email-service/package.json @@ -19,6 +19,7 @@ "cdk:synth": "cdk synth", "cdk:hotswap": "cdk deploy --hotswap", "cdk:deploy": "cdk deploy", + "cdk:watch": "cdk watch", "cdk:destroy": "cdk destroy", "depcheck": "npx depcheck" }, diff --git a/services/graphql/cdk.json b/services/graphql/cdk.json index bc1f90e2..caaf9b25 100644 --- a/services/graphql/cdk.json +++ b/services/graphql/cdk.json @@ -1,17 +1,8 @@ { - "app": "npx ts-node --prefer-ts-exts bin/app.ts", + "app": "create-bundle && npx ts-node --prefer-ts-exts bin/app.ts", "watch": { - "include": ["dist/"], - "exclude": [ - "README.md", - "cdk*.json", - "**/*.d.ts", - "**/*.js", - "tsconfig.json", - "package*.json", - "node_modules", - "__tests__" - ] + "include": ["src/", "stacks/"], + "exclude": ["__tests__", "*.test.ts", "*.e2e-spec.ts"] }, "context": { "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true, diff --git a/services/graphql/package.json b/services/graphql/package.json index b84a1bed..f71a1bd2 100644 --- a/services/graphql/package.json +++ b/services/graphql/package.json @@ -20,6 +20,7 @@ "cdk:diff": "cdk diff", "cdk:deploy": "cdk deploy", "cdk:hotswap": "cdk deploy --hotswap", + "cdk:watch": "cdk watch", "cdk:destroy": "cdk destroy", "depcheck": "npx depcheck" }, diff --git a/services/html-to-pdf/cdk.json b/services/html-to-pdf/cdk.json index bc1f90e2..caaf9b25 100644 --- a/services/html-to-pdf/cdk.json +++ b/services/html-to-pdf/cdk.json @@ -1,17 +1,8 @@ { - "app": "npx ts-node --prefer-ts-exts bin/app.ts", + "app": "create-bundle && npx ts-node --prefer-ts-exts bin/app.ts", "watch": { - "include": ["dist/"], - "exclude": [ - "README.md", - "cdk*.json", - "**/*.d.ts", - "**/*.js", - "tsconfig.json", - "package*.json", - "node_modules", - "__tests__" - ] + "include": ["src/", "stacks/"], + "exclude": ["__tests__", "*.test.ts", "*.e2e-spec.ts"] }, "context": { "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true, diff --git a/services/html-to-pdf/package.json b/services/html-to-pdf/package.json index 55d81bb1..243285a5 100644 --- a/services/html-to-pdf/package.json +++ b/services/html-to-pdf/package.json @@ -29,8 +29,9 @@ "cdk:bootstrap": "cdk bootstrap", "cdk:synth": "cdk synth", "cdk:diff": "cdk diff", - "cdk:deploy": "create-bundle && cdk deploy", - "cdk:hotswap": "create-bundle && cdk deploy --hotswap", + "cdk:deploy": "cdk deploy", + "cdk:hotswap": "cdk deploy --hotswap", + "cdk:watch": "cdk watch", "cdk:destroy": "cdk destroy", "depcheck": "npx depcheck" }, diff --git a/services/jukebox/cdk.json b/services/jukebox/cdk.json index bc1f90e2..9490a787 100644 --- a/services/jukebox/cdk.json +++ b/services/jukebox/cdk.json @@ -1,17 +1,8 @@ { - "app": "npx ts-node --prefer-ts-exts bin/app.ts", + "app": "create-bundle && npx ts-node --prefer-ts-exts bin/app.ts", "watch": { - "include": ["dist/"], - "exclude": [ - "README.md", - "cdk*.json", - "**/*.d.ts", - "**/*.js", - "tsconfig.json", - "package*.json", - "node_modules", - "__tests__" - ] + "include": ["src/", "stacks/", "public/"], + "exclude": ["__tests__", "*.test.ts", "*.e2e-spec.ts"] }, "context": { "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true, diff --git a/services/jukebox/package.json b/services/jukebox/package.json index d4cfbbd2..4806b559 100644 --- a/services/jukebox/package.json +++ b/services/jukebox/package.json @@ -17,7 +17,8 @@ "cdk:diff": "cdk diff", "cdk:synth": "cdk synth", "cdk:hotswap": "cdk deploy --hotswap", - "cdk:deploy": "create-bundle && cdk deploy", + "cdk:deploy": "cdk deploy", + "cdk:watch": "cdk watch", "cdk:destroy": "cdk destroy", "depcheck": "npx depcheck" }, diff --git a/services/jukebox/public/index.html b/services/jukebox/public/index.html index 39a1b7d0..8a2f68ac 100644 --- a/services/jukebox/public/index.html +++ b/services/jukebox/public/index.html @@ -102,7 +102,7 @@
Cats Cradle JukeboxCats Cradle::Jukebox
diff --git a/services/luck-by-dice/cdk.json b/services/luck-by-dice/cdk.json index bc1f90e2..caaf9b25 100644 --- a/services/luck-by-dice/cdk.json +++ b/services/luck-by-dice/cdk.json @@ -1,17 +1,8 @@ { - "app": "npx ts-node --prefer-ts-exts bin/app.ts", + "app": "create-bundle && npx ts-node --prefer-ts-exts bin/app.ts", "watch": { - "include": ["dist/"], - "exclude": [ - "README.md", - "cdk*.json", - "**/*.d.ts", - "**/*.js", - "tsconfig.json", - "package*.json", - "node_modules", - "__tests__" - ] + "include": ["src/", "stacks/"], + "exclude": ["__tests__", "*.test.ts", "*.e2e-spec.ts"] }, "context": { "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true, diff --git a/services/luck-by-dice/package.json b/services/luck-by-dice/package.json index e155de7b..f51269c7 100644 --- a/services/luck-by-dice/package.json +++ b/services/luck-by-dice/package.json @@ -8,6 +8,7 @@ }, "scripts": { "artifact": "create-artifact @cats-cradle/luck-by-dice", + "bundle": "create-bundle --watch", "dev": "nest start --debug --watch", "build": "tsc", "build:all": "rush build -t .", @@ -21,8 +22,9 @@ "cdk:bootstrap": "cdk bootstrap", "cdk:synth": "cdk synth", "cdk:diff": "cdk diff", - "cdk:deploy": "create-bundle && cdk deploy", "cdk:hotswap": "cdk deploy --hotswap", + "cdk:deploy": "cdk deploy", + "cdk:watch": "cdk watch", "cdk:destroy": "cdk destroy", "depcheck": "npx depcheck" }, diff --git a/services/weather-control/cdk.json b/services/weather-control/cdk.json index bc1f90e2..caaf9b25 100644 --- a/services/weather-control/cdk.json +++ b/services/weather-control/cdk.json @@ -1,17 +1,8 @@ { - "app": "npx ts-node --prefer-ts-exts bin/app.ts", + "app": "create-bundle && npx ts-node --prefer-ts-exts bin/app.ts", "watch": { - "include": ["dist/"], - "exclude": [ - "README.md", - "cdk*.json", - "**/*.d.ts", - "**/*.js", - "tsconfig.json", - "package*.json", - "node_modules", - "__tests__" - ] + "include": ["src/", "stacks/"], + "exclude": ["__tests__", "*.test.ts", "*.e2e-spec.ts"] }, "context": { "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true, diff --git a/services/weather-control/package.json b/services/weather-control/package.json index 7ceb4b84..8ed6eb5b 100644 --- a/services/weather-control/package.json +++ b/services/weather-control/package.json @@ -18,6 +18,7 @@ "cdk:synth": "cdk synth", "cdk:hotswap": "cdk deploy --hotswap", "cdk:deploy": "cdk deploy", + "cdk:watch": "cdk watch", "cdk:destroy": "cdk destroy", "depcheck": "npx depcheck" },