@stacksjs/ts-cloud 0.5.19 → 0.5.21
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/bin/cli.js +390 -384
- package/dist/deploy/site-config-editor.d.ts +15 -0
- package/dist/index.js +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface AddSiteConfigInput {
|
|
2
|
+
configText: string;
|
|
3
|
+
name: string;
|
|
4
|
+
root: string;
|
|
5
|
+
domain?: string;
|
|
6
|
+
path?: string;
|
|
7
|
+
deploy?: 'bucket' | 'server';
|
|
8
|
+
build?: string;
|
|
9
|
+
start?: string;
|
|
10
|
+
port?: number;
|
|
11
|
+
type?: string;
|
|
12
|
+
pathRewriteStyle?: 'directory' | 'flat';
|
|
13
|
+
}
|
|
14
|
+
export declare function addSiteToCloudConfig(input: AddSiteConfigInput): string;
|
|
15
|
+
export declare function renderSiteSnippet(input: Omit<AddSiteConfigInput, 'configText'>): string;
|
package/dist/index.js
CHANGED
|
@@ -84221,6 +84221,7 @@ function buildNginxVhostScript(options) {
|
|
|
84221
84221
|
const enabled2 = `/etc/nginx/sites-enabled/${options.siteName}`;
|
|
84222
84222
|
const vhost = buildNginxVhost(options);
|
|
84223
84223
|
const out = [];
|
|
84224
|
+
out.push("mkdir -p /etc/nginx/sites-available /etc/nginx/sites-enabled");
|
|
84224
84225
|
if (options.auth) {
|
|
84225
84226
|
const file = htpasswdPath(options.siteName);
|
|
84226
84227
|
const sq = (v) => v.split("'").join("'\\''");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ts-cloud",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.21",
|
|
5
5
|
"description": "A lightweight, performant infrastructure-as-code library and CLI for deploying both server-based (EC2) and serverless applications.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"test": "bun test"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@ts-cloud/aws-types": "0.5.
|
|
93
|
-
"@ts-cloud/core": "0.5.
|
|
92
|
+
"@ts-cloud/aws-types": "0.5.21",
|
|
93
|
+
"@ts-cloud/core": "0.5.21",
|
|
94
94
|
"@stacksjs/ts-xml": "^0.1.0"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|