@worktif/runtime 0.3.0-edge.0 → 0.3.0-edge.10
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/README.md +26 -26
- package/out/dist/bin/index.js +41 -35
- package/out/dist/bin/purenow.js +23 -22
- package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/package.json +1 -1
- package/out/dist/bin/templates/runtime-web/cdk/package.json.template +1 -1
- package/out/dist/infra/index.js +164 -0
- package/out/dist/lambda/bundle.js +57 -0
- package/out/dist/lib/index.d.ts +0 -1
- package/out/dist/lib/index.js +4 -4
- package/out/dist/lib/lib/runtime-web/index.d.ts +3 -8
- package/out/dist/lib/lib/runtime-web/pureweb.d.ts +1 -1
- package/out/dist/src/bin/commands/index.d.ts +3 -0
- package/out/dist/src/bin/commands/runtime-web-deployment.service.d.ts +15 -0
- package/out/dist/src/bin/index.d.ts +3 -2
- package/out/dist/src/bin/{purenow-runtime-cli.d.ts → runtime-web-cli.d.ts} +13 -4
- package/out/dist/src/bin/services/index.d.ts +0 -1
- package/out/dist/src/bin/services/purenow-runtime-deployment.strategy.d.ts +2 -2
- package/out/dist/src/bin/services/purenow-runtime-stacks-deploy.service.d.ts +2 -3
- package/out/dist/src/bin/services/purenow-runtime-stacks-deploy.service.types.d.ts +1 -1
- package/out/dist/src/bin/services/runtime-web-cli-extensions.d.ts +0 -1
- package/out/dist/src/core/bundle/index.d.ts +5 -0
- package/out/dist/src/core/bundle/index.d.ts.map +1 -0
- package/out/dist/src/core/bundle/runtime.container.d.ts +35 -0
- package/out/dist/src/core/bundle/runtime.container.d.ts.map +1 -0
- package/out/dist/src/core/bundle/runtime.container.types.d.ts +15 -0
- package/out/dist/src/core/bundle/runtime.container.types.d.ts.map +1 -0
- package/out/dist/src/core/index.d.ts +5 -0
- package/out/dist/src/core/index.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/detector/index.d.ts +7 -0
- package/out/dist/src/core/runtime-web/detector/index.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/detector/metadata-collectors.d.ts +52 -0
- package/out/dist/src/core/runtime-web/detector/metadata-collectors.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/detector/runtime-detector.d.ts +69 -0
- package/out/dist/src/core/runtime-web/detector/runtime-detector.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/detector/runtime-detector.types.d.ts +40 -0
- package/out/dist/src/core/runtime-web/detector/runtime-detector.types.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/di/di-errors.d.ts +44 -0
- package/out/dist/src/core/runtime-web/di/di-errors.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/di/index.d.ts +9 -0
- package/out/dist/src/core/runtime-web/di/index.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/di/pure-container-factory.d.ts +105 -0
- package/out/dist/src/core/runtime-web/di/pure-container-factory.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/di/ties-registrar.d.ts +87 -0
- package/out/dist/src/core/runtime-web/di/ties-registrar.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/factory/handler-wrappers.d.ts +122 -0
- package/out/dist/src/core/runtime-web/factory/handler-wrappers.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/factory/index.d.ts +12 -0
- package/out/dist/src/core/runtime-web/factory/index.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/factory/lambda-handler-factory.d.ts +110 -0
- package/out/dist/src/core/runtime-web/factory/lambda-handler-factory.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/factory/runtime-web-lambda-handler.d.ts +94 -0
- package/out/dist/src/core/runtime-web/factory/runtime-web-lambda-handler.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/index.d.ts +7 -0
- package/out/dist/src/core/runtime-web/index.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/pipelines/index.d.ts +3 -0
- package/out/dist/src/core/runtime-web/pipelines/index.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/pipelines/lambda-pipeline.d.ts +110 -0
- package/out/dist/src/core/runtime-web/pipelines/lambda-pipeline.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/registrar/container-registry.d.ts +261 -0
- package/out/dist/src/core/runtime-web/registrar/container-registry.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/registrar/index.d.ts +6 -0
- package/out/dist/src/core/runtime-web/registrar/index.d.ts.map +1 -0
- package/out/dist/src/core/runtime-web/registrar/microservice-registrar.d.ts +167 -0
- package/out/dist/src/core/runtime-web/registrar/microservice-registrar.d.ts.map +1 -0
- package/out/dist/src/core/services/index.d.ts +4 -0
- package/out/dist/src/core/services/index.d.ts.map +1 -0
- package/out/dist/src/core/services/runtime-extensions/index.d.ts +4 -0
- package/out/dist/src/core/services/runtime-extensions/index.d.ts.map +1 -0
- package/out/dist/src/core/services/runtime-extensions/runtime-extensions.service.d.ts +98 -0
- package/out/dist/src/core/services/runtime-extensions/runtime-extensions.service.d.ts.map +1 -0
- package/out/dist/src/core/services/runtime-extensions/runtime-extensions.types.d.ts +71 -0
- package/out/dist/src/core/services/runtime-extensions/runtime-extensions.types.d.ts.map +1 -0
- package/out/dist/src/infra/index.d.ts +3 -0
- package/out/dist/src/infra/runtime-web/constructs/api-gateway-builder.d.ts +157 -0
- package/out/dist/src/infra/runtime-web/constructs/index.d.ts +3 -0
- package/out/dist/src/infra/runtime-web/constructs/lambda-builder.d.ts +158 -0
- package/out/dist/src/infra/runtime-web/index.d.ts +21 -0
- package/out/dist/src/infra/runtime-web/pipelines/cdk-pipeline.d.ts +112 -0
- package/out/dist/src/infra/runtime-web/pipelines/index.d.ts +2 -0
- package/out/dist/src/infra/runtime-web/stacks/index.d.ts +2 -0
- package/out/dist/src/infra/runtime-web/stacks/runtime-web-stack.d.ts +182 -0
- package/out/dist/src/infra/runtime-web/validation/config-validator.d.ts +127 -0
- package/out/dist/src/infra/runtime-web/validation/index.d.ts +2 -0
- package/out/dist/src/lib/index.d.ts +3 -0
- package/out/dist/src/lib/runtime-web/index.d.ts +3 -8
- package/out/dist/src/lib/runtime-web/pureweb.d.ts +1 -1
- package/out/dist/src/lib/runtime-web/runtime.config.types.d.ts +71 -0
- package/package.json +44 -11
- package/out/dist/lib/utils/index.d.ts +0 -2
- package/out/dist/lib/utils/types/index.d.ts +0 -3
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/.env.example +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/README.md +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/gitignore.template +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/purenow.config.ts +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/app.tsx +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/handlers/users/index.ts +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/handlers/users/users.handlers.ts +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/index.tsx +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/pages/about-page.tsx +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/pages/home-page.tsx +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/pages/users-page.tsx +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/routes.tsx +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/services/index.ts +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/services/users.service.ts +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/ties/index.ts +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/src/ties/users.ties.ts +0 -0
- /package/out/dist/bin/templates/runtime-web/{purenow-basic → basic}/tsconfig.json +0 -0
- /package/out/dist/lib/{utils/types → lib/runtime-web}/runtime.config.types.d.ts +0 -0
package/README.md
CHANGED
|
@@ -125,7 +125,7 @@ You'll be prompted to set up AWS CDK infrastructure with three-stack deployment.
|
|
|
125
125
|
|
|
126
126
|
```bash
|
|
127
127
|
# Start development server (from purenow base framework)
|
|
128
|
-
npx
|
|
128
|
+
npx runtime dev
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
Your app runs at `http://localhost:3000` with all purenow features (SSR, HMR, caching) plus runtime extensions.
|
|
@@ -137,7 +137,7 @@ Your app runs at `http://localhost:3000` with all purenow features (SSR, HMR, ca
|
|
|
137
137
|
aws configure
|
|
138
138
|
|
|
139
139
|
# Deploy with three-stack architecture (runtime extension)
|
|
140
|
-
npx
|
|
140
|
+
npx runtime deploy --stage dev
|
|
141
141
|
```
|
|
142
142
|
|
|
143
143
|
Your application is now live on CloudFront with three-stack deployment architecture!
|
|
@@ -145,7 +145,7 @@ Your application is now live on CloudFront with three-stack deployment architect
|
|
|
145
145
|
**Clean Up Resources:**
|
|
146
146
|
```bash
|
|
147
147
|
# When you're done, destroy all stacks to avoid AWS charges
|
|
148
|
-
npx
|
|
148
|
+
npx runtime destroy --stage dev
|
|
149
149
|
```
|
|
150
150
|
|
|
151
151
|
**Next Steps:**
|
|
@@ -165,28 +165,28 @@ The runtime package preserves all base purenow CLI functionality:
|
|
|
165
165
|
|
|
166
166
|
```bash
|
|
167
167
|
# Development (from purenow base framework)
|
|
168
|
-
npx
|
|
169
|
-
npx
|
|
168
|
+
npx runtime dev # Start development server
|
|
169
|
+
npx runtime dev --port 8080 # Custom port
|
|
170
170
|
|
|
171
171
|
# Building (from purenow base framework)
|
|
172
|
-
npx
|
|
173
|
-
npx
|
|
172
|
+
npx runtime build # Build for deployment
|
|
173
|
+
npx runtime build --target lambda # Build specific target
|
|
174
174
|
|
|
175
175
|
# Deployment (from purenow base framework)
|
|
176
|
-
npx
|
|
177
|
-
npx
|
|
176
|
+
npx runtime deploy --stage dev # Deploy to AWS (now uses three stacks)
|
|
177
|
+
npx runtime destroy --stage dev # Destroy all stacks
|
|
178
178
|
|
|
179
179
|
# Resource Management (from purenow base framework)
|
|
180
|
-
npx
|
|
181
|
-
npx
|
|
180
|
+
npx runtime stacks list --outputs # List stack outputs
|
|
181
|
+
npx runtime cache-clear --stage dev # Clear CloudFront/S3 cache
|
|
182
182
|
|
|
183
183
|
# SEO Management (from purenow base framework)
|
|
184
|
-
npx
|
|
185
|
-
npx
|
|
184
|
+
npx runtime seo sync --stage dev # Sync SEO metadata
|
|
185
|
+
npx runtime seo clear --stage dev # Clear SEO data
|
|
186
186
|
|
|
187
187
|
# Diagnostics (from purenow base framework)
|
|
188
|
-
npx
|
|
189
|
-
npx
|
|
188
|
+
npx runtime doctor # System diagnostics
|
|
189
|
+
npx runtime info # Display configuration
|
|
190
190
|
```
|
|
191
191
|
|
|
192
192
|
### Extended CLI Commands
|
|
@@ -195,8 +195,8 @@ Runtime adds additional commands using purenow's extensible CLI architecture:
|
|
|
195
195
|
|
|
196
196
|
```bash
|
|
197
197
|
# Runtime-specific diagnostics
|
|
198
|
-
npx
|
|
199
|
-
npx
|
|
198
|
+
npx runtime runtime:info # Display runtime extension information
|
|
199
|
+
npx runtime runtime:stacks # Show three-stack deployment status
|
|
200
200
|
```
|
|
201
201
|
|
|
202
202
|
**Complete CLI Reference:** See [@worktif/purenow CLI documentation](https://www.npmjs.com/package/@worktif/purenow#cli-commands) for all base commands
|
|
@@ -305,13 +305,13 @@ Runtime extends purenow's deployment from two stacks to three:
|
|
|
305
305
|
**Deployment Commands:**
|
|
306
306
|
```bash
|
|
307
307
|
# Deploy all three stacks (runtime extension)
|
|
308
|
-
npx
|
|
308
|
+
npx runtime deploy --stage dev
|
|
309
309
|
|
|
310
310
|
# Destroy all three stacks (runtime extension)
|
|
311
|
-
npx
|
|
311
|
+
npx runtime destroy --stage dev
|
|
312
312
|
|
|
313
313
|
# List all stack outputs (includes third stack)
|
|
314
|
-
npx
|
|
314
|
+
npx runtime stacks list --outputs
|
|
315
315
|
```
|
|
316
316
|
|
|
317
317
|
### Extended CLI Architecture
|
|
@@ -320,18 +320,18 @@ Runtime uses purenow's extensible CLI architecture to add commands:
|
|
|
320
320
|
|
|
321
321
|
```bash
|
|
322
322
|
# Runtime-specific commands (added via CLI extension)
|
|
323
|
-
npx
|
|
324
|
-
npx
|
|
323
|
+
npx runtime runtime:info # Display runtime extension information
|
|
324
|
+
npx runtime runtime:stacks # Show three-stack deployment status
|
|
325
325
|
```
|
|
326
326
|
|
|
327
327
|
### Complete Purenow Features (Preserved)
|
|
328
328
|
|
|
329
329
|
All features from @worktif/purenow are available unchanged:
|
|
330
330
|
|
|
331
|
-
- **SEO Integration** with DynamoDB (`npx
|
|
332
|
-
- **Cache Management** for S3, CloudFront (`npx
|
|
333
|
-
- **Development Server** with HMR (`npx
|
|
334
|
-
- **CloudFormation Resource Resolution** (`npx
|
|
331
|
+
- **SEO Integration** with DynamoDB (`npx runtime seo sync/clear`)
|
|
332
|
+
- **Cache Management** for S3, CloudFront (`npx runtime cache-clear`)
|
|
333
|
+
- **Development Server** with HMR (`npx runtime dev`)
|
|
334
|
+
- **CloudFormation Resource Resolution** (`npx runtime stacks list`)
|
|
335
335
|
- **HTML Template Customization** (all configuration options)
|
|
336
336
|
- **Complete CLI Commands** (deploy, destroy, build, doctor, info)
|
|
337
337
|
|