@kirschbaum-development/sst-laravel 0.0.20 → 0.0.22
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/laravel-sst.ts +4 -4
- package/package.json +10 -2
- package/src/laravel-env.ts +2 -5
package/laravel-sst.ts
CHANGED
|
@@ -4,12 +4,12 @@ import * as path from 'path';
|
|
|
4
4
|
import * as fs from 'fs';
|
|
5
5
|
import { Component } from "../../../.sst/platform/src/components/component.js";
|
|
6
6
|
import { FunctionArgs } from "../../../.sst/platform/src/components/aws/function.js";;
|
|
7
|
-
import { ComponentResourceOptions, Output, all, output } from "
|
|
7
|
+
import { ComponentResourceOptions, Output, all, output } from "@pulumi/pulumi";
|
|
8
8
|
import { Input } from "../../../.sst/platform/src/components/input.js";
|
|
9
9
|
import { ClusterArgs } from "../../../.sst/platform/src/components/aws/cluster.js";
|
|
10
10
|
import { ServiceArgs } from "../../../.sst/platform/src/components/aws/service.js";
|
|
11
11
|
import { Dns } from "../../../.sst/platform/src/components/dns.js";
|
|
12
|
-
import { applyLinkedResourcesEnv, EnvCallback, EnvCallbacks } from "./src/laravel-env
|
|
12
|
+
import { applyLinkedResourcesEnv, EnvCallback, EnvCallbacks } from "./src/laravel-env";
|
|
13
13
|
|
|
14
14
|
// duplicate from cluster.ts
|
|
15
15
|
type Port = `${number}/${"http" | "https" | "tcp" | "udp" | "tcp_udp" | "tls"}`;
|
|
@@ -484,12 +484,12 @@ export class LaravelService extends Component {
|
|
|
484
484
|
};
|
|
485
485
|
|
|
486
486
|
const envFile = path.resolve(pluginBuildPath, 'deploy', '.env');
|
|
487
|
-
|
|
487
|
+
|
|
488
488
|
all(Object.entries(resourcesEnvVars)).apply(entries => {
|
|
489
489
|
const envContent = entries
|
|
490
490
|
.map(([key, value]) => `${key}=${value}`)
|
|
491
491
|
.join('\n');
|
|
492
|
-
|
|
492
|
+
|
|
493
493
|
if (envContent) {
|
|
494
494
|
fs.appendFileSync(envFile, '\n' + envContent);
|
|
495
495
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kirschbaum-development/sst-laravel",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "An unofficial extension of SST to deploy containerized Laravel applications to AWS Fargate.",
|
|
6
6
|
"main": "laravel-sst.ts",
|
|
7
|
+
"types": "laravel-sst.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./laravel-sst.ts",
|
|
11
|
+
"import": "./laravel-sst.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
7
14
|
"files": [
|
|
8
15
|
"dist/bin",
|
|
9
16
|
"src",
|
|
@@ -18,7 +25,6 @@
|
|
|
18
25
|
],
|
|
19
26
|
"scripts": {
|
|
20
27
|
"build": "tsc",
|
|
21
|
-
"prepublishOnly": "npm run build",
|
|
22
28
|
"publish": "npm publish --access public"
|
|
23
29
|
},
|
|
24
30
|
"repository": {
|
|
@@ -46,6 +52,8 @@
|
|
|
46
52
|
"dependencies": {
|
|
47
53
|
"@aws-sdk/client-ecs": "^3.0.0",
|
|
48
54
|
"@inquirer/prompts": "^7.0.0",
|
|
55
|
+
"@pulumi/aws": "^7.8.0",
|
|
56
|
+
"@pulumi/pulumi": "^3.203.0",
|
|
49
57
|
"commander": "^12.0.0"
|
|
50
58
|
},
|
|
51
59
|
"devDependencies": {
|
package/src/laravel-env.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { Email } from "../../../../.sst/platform/src/components/aws/email.js";
|
|
|
2
2
|
import { Mysql } from "../../../../.sst/platform/src/components/aws/mysql.js";
|
|
3
3
|
import { Postgres } from "../../../../.sst/platform/src/components/aws/postgres.js";
|
|
4
4
|
import { Redis } from "../../../../.sst/platform/src/components/aws/redis.js";
|
|
5
|
-
import { Output } from "
|
|
6
|
-
import * as pulumiAws from "
|
|
5
|
+
import { Output } from "@pulumi/pulumi";
|
|
6
|
+
import * as pulumiAws from "@pulumi/aws";
|
|
7
7
|
import { Queue } from "../../../../.sst/platform/src/components/aws/queue.js";
|
|
8
8
|
import { Aurora } from "../../../../.sst/platform/src/components/aws/aurora.js";
|
|
9
9
|
import { Bucket } from "../../../../.sst/platform/src/components/aws/bucket.js";
|
|
@@ -128,7 +128,6 @@ export function applyRedisEnv(database: Redis): EnvType {
|
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
// TODO
|
|
132
131
|
export function applyEmailEnv(mail: Email): EnvType {
|
|
133
132
|
return {
|
|
134
133
|
MAIL_MAILER: 'ses',
|
|
@@ -136,13 +135,11 @@ export function applyEmailEnv(mail: Email): EnvType {
|
|
|
136
135
|
};
|
|
137
136
|
}
|
|
138
137
|
|
|
139
|
-
// TODO
|
|
140
138
|
export function applyQueueEnv(queue: Queue): EnvType {
|
|
141
139
|
const queueUrl: Output<string> = queue.url;
|
|
142
140
|
|
|
143
141
|
return {
|
|
144
142
|
SQS_QUEUE: queue.url,
|
|
145
|
-
// MAIL_FROM_ADDRESS: link.sender,
|
|
146
143
|
};
|
|
147
144
|
}
|
|
148
145
|
|