@beeblock/svelar 0.6.3 → 0.6.4
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 +2 -1
- package/dist/cli/bin.js +387 -198
- package/dist/cli/commands/DeployTemplates.d.ts +1 -1
- package/dist/cli/commands/InfraSetupCommand.d.ts +32 -0
- package/dist/cli/commands/MakeInfraCommand.d.ts +1 -0
- package/dist/cli/index.js +348 -167
- package/package.json +1 -1
|
@@ -9,6 +9,6 @@ export declare class DeployTemplates {
|
|
|
9
9
|
static composeProdOverride(image: string): string;
|
|
10
10
|
static healthEndpoint(): string;
|
|
11
11
|
static githubActionsWorkflow(image: string): string;
|
|
12
|
-
static setupDropletScript(): string;
|
|
12
|
+
static setupDropletScript(appName: string): string;
|
|
13
13
|
static dropletEnvExample(appName: string): string;
|
|
14
14
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* infra:setup — Provision a droplet by running infra/setup-droplet.sh.
|
|
3
|
+
*
|
|
4
|
+
* Supports two modes:
|
|
5
|
+
* 1. Config file: reads from infra/droplet.env (default)
|
|
6
|
+
* 2. CLI flags: --ip, --key, --user, --deploy-user, --project
|
|
7
|
+
*
|
|
8
|
+
* The setup script SSHs into the droplet, creates a deploy user,
|
|
9
|
+
* installs Docker if needed, copies compose files, and configures UFW.
|
|
10
|
+
*
|
|
11
|
+
* .env is NOT copied — it's managed by CI/CD via the ENV_PROD secret.
|
|
12
|
+
*/
|
|
13
|
+
import { Command } from '../Command.js';
|
|
14
|
+
export declare class InfraSetupCommand extends Command {
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
arguments: never[];
|
|
18
|
+
flags: ({
|
|
19
|
+
name: string;
|
|
20
|
+
alias: string;
|
|
21
|
+
description: string;
|
|
22
|
+
type: "string";
|
|
23
|
+
} | {
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
type: "string";
|
|
27
|
+
alias?: undefined;
|
|
28
|
+
})[];
|
|
29
|
+
handle(_args: string[], flags: Record<string, any>): Promise<void>;
|
|
30
|
+
private resolveAppName;
|
|
31
|
+
private parseEnvFile;
|
|
32
|
+
}
|