@ts-cloud/core 0.2.26 → 0.3.0
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/dist/drivers/types.d.ts +20 -2
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1361 -3
- package/dist/modules/cdn.d.ts +1 -1
- package/dist/modules/compute.d.ts +9 -2
- package/dist/presets/dashboard.d.ts +26 -0
- package/dist/presets/index.d.ts +3 -0
- package/dist/presets/laravel.d.ts +36 -0
- package/dist/presets/serverless-laravel.d.ts +38 -0
- package/dist/presets/serverless-node.d.ts +36 -0
- package/dist/serverless/adapter.test.d.ts +1 -0
- package/dist/serverless/app-image.d.ts +22 -0
- package/dist/serverless/app-image.test.d.ts +1 -0
- package/dist/serverless/bootstrap.d.ts +13 -0
- package/dist/serverless/composer.d.ts +43 -0
- package/dist/serverless/composer.test.d.ts +1 -0
- package/dist/serverless/index.d.ts +10 -0
- package/dist/serverless/naming.test.d.ts +1 -0
- package/dist/serverless/package.d.ts +46 -0
- package/dist/serverless/package.test.d.ts +1 -0
- package/dist/serverless/runtime/adapter.d.ts +122 -0
- package/dist/serverless/zip.d.ts +25 -0
- package/dist/serverless/zip.test.d.ts +1 -0
- package/dist/serverless-php/dockerfile.d.ts +36 -0
- package/dist/serverless-php/index.d.ts +10 -0
- package/dist/serverless-php/layer-build.d.ts +33 -0
- package/dist/serverless-php/package-php.d.ts +43 -0
- package/dist/serverless-php/php-fpm-conf.d.ts +16 -0
- package/dist/serverless-php/runtime-assets.d.ts +34 -0
- package/dist/serverless-php/serverless-php.test.d.ts +1 -0
- package/dist/stack-naming.d.ts +17 -0
- package/dist/types.d.ts +611 -5
- package/package.json +2 -2
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accessors for the in-repo PHP runtime asset sources (bootstrap, runtime loops,
|
|
3
|
+
* FastCGI client) and the Laravel-on-Lambda environment defaults.
|
|
4
|
+
*
|
|
5
|
+
* The layer builder bundles these files plus the generated php-fpm.conf into the
|
|
6
|
+
* ts-cloud PHP runtime layer (mounted at /opt on Lambda).
|
|
7
|
+
*/
|
|
8
|
+
export interface RuntimeAsset {
|
|
9
|
+
/** Path inside the layer, relative to /opt. */
|
|
10
|
+
path: string;
|
|
11
|
+
/** File contents. */
|
|
12
|
+
contents: string;
|
|
13
|
+
/** Unix mode (bootstrap must be executable). */
|
|
14
|
+
mode: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The full set of files the PHP runtime layer ships, with their `/opt`-relative
|
|
18
|
+
* paths and modes. `bootstrap` lives at the layer root; the rest under
|
|
19
|
+
* `/opt/tscloud`.
|
|
20
|
+
*/
|
|
21
|
+
export declare function phpRuntimeLayerAssets(): RuntimeAsset[];
|
|
22
|
+
/**
|
|
23
|
+
* Environment variables a Laravel app needs to run serverless on Lambda:
|
|
24
|
+
* read-only filesystem (only /tmp writable), no `file` drivers, S3 storage, SQS
|
|
25
|
+
* queue, and logs to stderr → CloudWatch.
|
|
26
|
+
*/
|
|
27
|
+
export declare function laravelServerlessEnvDefaults(opts?: {
|
|
28
|
+
cacheDriver?: 'dynamodb' | 'redis';
|
|
29
|
+
}): Record<string, string>;
|
|
30
|
+
/**
|
|
31
|
+
* The Laravel artisan caching steps that must run during the BUILD phase (the
|
|
32
|
+
* runtime filesystem is read-only), mirroring the Forge/EC2 deploy semantics.
|
|
33
|
+
*/
|
|
34
|
+
export declare const LARAVEL_SERVERLESS_BUILD_STEPS: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/stack-naming.d.ts
CHANGED
|
@@ -29,3 +29,20 @@ export declare function resolveStorageBucketName(slug: string, environment: Envi
|
|
|
29
29
|
* Convention: `{slug}-{environment}-deploy`.
|
|
30
30
|
*/
|
|
31
31
|
export declare function resolveDeployBucketName(slug: string, environment: EnvironmentType): string;
|
|
32
|
+
/**
|
|
33
|
+
* CloudFormation stack for a serverless application (Lambda http/queue/cli +
|
|
34
|
+
* API Gateway + SQS + assets). Kept distinct from {@link resolveProjectStackName}
|
|
35
|
+
* so the app stack can be deployed/rolled-back independently of shared infra.
|
|
36
|
+
* Convention: `{slug}-{environment}-app` (e.g. `pantry-production-app`).
|
|
37
|
+
*/
|
|
38
|
+
export declare function resolveServerlessAppStackName(config: Pick<CloudConfig, 'project'>, environment: EnvironmentType): string;
|
|
39
|
+
/**
|
|
40
|
+
* S3 bucket holding serverless deployment artifacts + release snapshots.
|
|
41
|
+
* Convention: `{slug}-{environment}-deployments`.
|
|
42
|
+
*/
|
|
43
|
+
export declare function resolveServerlessArtifactBucketName(slug: string, environment: EnvironmentType): string;
|
|
44
|
+
/**
|
|
45
|
+
* S3 bucket fronting CloudFront for versioned serverless app assets.
|
|
46
|
+
* Convention: `{slug}-{environment}-assets`.
|
|
47
|
+
*/
|
|
48
|
+
export declare function resolveServerlessAssetBucketName(slug: string, environment: EnvironmentType): string;
|