@vlandoss/localproxy 0.1.1-git-de71cb6.0 → 0.1.2-git-ee582d6.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/bin.ts +1 -1
- package/package.json +3 -3
- package/src/commands/clean.ts +5 -5
- package/src/commands/setup.ts +7 -7
- package/src/commands/start.ts +3 -3
- package/src/commands/status.ts +6 -6
- package/src/commands/stop.ts +3 -3
- package/src/main.ts +8 -8
- package/src/services/caddy.ts +2 -2
- package/src/services/caddyfile/index.ts +1 -1
- package/src/services/caddyfile/service.ts +2 -2
- package/src/services/hosts.ts +3 -3
- package/src/services/sudo.ts +2 -2
- package/tsconfig.json +1 -8
package/bin.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vlandoss/localproxy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2-git-ee582d6.0",
|
|
4
4
|
"description": "Simple local development proxy automation",
|
|
5
5
|
"homepage": "https://github.com/variableland/dx/tree/main/packages/localproxy#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@inquirer/prompts": "8.3.0",
|
|
35
35
|
"commander": "14.0.3",
|
|
36
|
-
"@vlandoss/clibuddy": "0.1.1
|
|
37
|
-
"@vlandoss/loggy": "0.1.1
|
|
36
|
+
"@vlandoss/clibuddy": "0.1.1",
|
|
37
|
+
"@vlandoss/loggy": "0.1.1"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
package/src/commands/clean.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createCommand } from "commander";
|
|
2
|
-
import { CaddyService } from "#/services/caddy";
|
|
3
|
-
import { CaddyfileService } from "#/services/caddyfile";
|
|
4
|
-
import { HostsService } from "#/services/hosts";
|
|
5
|
-
import { logger } from "#/services/logger";
|
|
6
|
-
import type { Context } from "#/types";
|
|
2
|
+
import { CaddyService } from "#/services/caddy.ts";
|
|
3
|
+
import { CaddyfileService } from "#/services/caddyfile/index.ts";
|
|
4
|
+
import { HostsService } from "#/services/hosts.ts";
|
|
5
|
+
import { logger } from "#/services/logger.ts";
|
|
6
|
+
import type { Context } from "#/types.ts";
|
|
7
7
|
|
|
8
8
|
type CommandOptions = {
|
|
9
9
|
verbose: boolean;
|
package/src/commands/setup.ts
CHANGED
|
@@ -2,13 +2,13 @@ import * as fs from "node:fs/promises";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { editor as editorPrompt } from "@inquirer/prompts";
|
|
4
4
|
import { createCommand } from "commander";
|
|
5
|
-
import { CaddyService } from "#/services/caddy";
|
|
6
|
-
import { CaddyfileService } from "#/services/caddyfile";
|
|
7
|
-
import { FileService } from "#/services/file";
|
|
8
|
-
import { HostsService } from "#/services/hosts";
|
|
9
|
-
import { logger } from "#/services/logger";
|
|
10
|
-
import { quietShell } from "#/services/shell";
|
|
11
|
-
import type { Context } from "#/types";
|
|
5
|
+
import { CaddyService } from "#/services/caddy.ts";
|
|
6
|
+
import { CaddyfileService } from "#/services/caddyfile/index.ts";
|
|
7
|
+
import { FileService } from "#/services/file.ts";
|
|
8
|
+
import { HostsService } from "#/services/hosts.ts";
|
|
9
|
+
import { logger } from "#/services/logger.ts";
|
|
10
|
+
import { quietShell } from "#/services/shell.ts";
|
|
11
|
+
import type { Context } from "#/types.ts";
|
|
12
12
|
|
|
13
13
|
type CommandOptions = {
|
|
14
14
|
verbose: boolean;
|
package/src/commands/start.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCommand } from "commander";
|
|
2
|
-
import { CaddyService } from "#/services/caddy";
|
|
3
|
-
import { logger } from "#/services/logger";
|
|
4
|
-
import type { Context } from "#/types";
|
|
2
|
+
import { CaddyService } from "#/services/caddy.ts";
|
|
3
|
+
import { logger } from "#/services/logger.ts";
|
|
4
|
+
import type { Context } from "#/types.ts";
|
|
5
5
|
|
|
6
6
|
type CommandOptions = {
|
|
7
7
|
verbose: boolean;
|
package/src/commands/status.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createCommand } from "commander";
|
|
2
|
-
import { CaddyService } from "#/services/caddy";
|
|
3
|
-
import { CaddyfileService } from "#/services/caddyfile";
|
|
4
|
-
import { FileService } from "#/services/file";
|
|
5
|
-
import { HostsService } from "#/services/hosts";
|
|
6
|
-
import { logger } from "#/services/logger";
|
|
7
|
-
import type { Context } from "#/types";
|
|
2
|
+
import { CaddyService } from "#/services/caddy.ts";
|
|
3
|
+
import { CaddyfileService } from "#/services/caddyfile/index.ts";
|
|
4
|
+
import { FileService } from "#/services/file.ts";
|
|
5
|
+
import { HostsService } from "#/services/hosts.ts";
|
|
6
|
+
import { logger } from "#/services/logger.ts";
|
|
7
|
+
import type { Context } from "#/types.ts";
|
|
8
8
|
|
|
9
9
|
export function createStatusCommand({ caddyfilePath }: Context) {
|
|
10
10
|
return createCommand("status")
|
package/src/commands/stop.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCommand } from "commander";
|
|
2
|
-
import { CaddyService } from "#/services/caddy";
|
|
3
|
-
import { logger } from "#/services/logger";
|
|
4
|
-
import type { Context } from "#/types";
|
|
2
|
+
import { CaddyService } from "#/services/caddy.ts";
|
|
3
|
+
import { logger } from "#/services/logger.ts";
|
|
4
|
+
import type { Context } from "#/types.ts";
|
|
5
5
|
|
|
6
6
|
type CommandOptions = {
|
|
7
7
|
verbose: boolean;
|
package/src/main.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { createPkgService, getVersion } from "@vlandoss/clibuddy";
|
|
3
3
|
import { createCommand } from "commander";
|
|
4
|
-
import { createCleanCommand } from "./commands/clean";
|
|
5
|
-
import { createSetupCommand } from "./commands/setup";
|
|
6
|
-
import { createStartCommand } from "./commands/start";
|
|
7
|
-
import { createStatusCommand } from "./commands/status";
|
|
8
|
-
import { createStopCommand } from "./commands/stop";
|
|
9
|
-
import { logger } from "./services/logger";
|
|
10
|
-
import type { Context, ProgramOptions } from "./types";
|
|
11
|
-
import { BANNER_TEXT, CREDITS_TEXT } from "./ui";
|
|
4
|
+
import { createCleanCommand } from "./commands/clean.ts";
|
|
5
|
+
import { createSetupCommand } from "./commands/setup.ts";
|
|
6
|
+
import { createStartCommand } from "./commands/start.ts";
|
|
7
|
+
import { createStatusCommand } from "./commands/status.ts";
|
|
8
|
+
import { createStopCommand } from "./commands/stop.ts";
|
|
9
|
+
import { logger } from "./services/logger.ts";
|
|
10
|
+
import type { Context, ProgramOptions } from "./types.ts";
|
|
11
|
+
import { BANNER_TEXT, CREDITS_TEXT } from "./ui.ts";
|
|
12
12
|
|
|
13
13
|
async function createContext({ binDir, installDir }: ProgramOptions) {
|
|
14
14
|
const binPkg = await createPkgService(binDir);
|
package/src/services/caddy.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { logger } from "./logger";
|
|
4
|
-
import { quietShell, silentShell, verboseShell } from "./shell";
|
|
3
|
+
import { logger } from "./logger.ts";
|
|
4
|
+
import { quietShell, silentShell, verboseShell } from "./shell.ts";
|
|
5
5
|
|
|
6
6
|
const debug = logger.subdebug("caddy");
|
|
7
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./service";
|
|
1
|
+
export * from "./service.ts";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as fs from "node:fs/promises";
|
|
2
|
-
import { logger } from "../logger";
|
|
3
|
-
import { CaddyfileParser } from "./parser";
|
|
2
|
+
import { logger } from "../logger.ts";
|
|
3
|
+
import { CaddyfileParser } from "./parser.ts";
|
|
4
4
|
|
|
5
5
|
const debug = logger.subdebug("caddyfile-service");
|
|
6
6
|
|
package/src/services/hosts.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { logger } from "./logger";
|
|
2
|
-
import { quietShell, silentShell, verboseShell } from "./shell";
|
|
3
|
-
import { SudoService } from "./sudo";
|
|
1
|
+
import { logger } from "./logger.ts";
|
|
2
|
+
import { quietShell, silentShell, verboseShell } from "./shell.ts";
|
|
3
|
+
import { SudoService } from "./sudo.ts";
|
|
4
4
|
|
|
5
5
|
type SetupOptions = {
|
|
6
6
|
verbose: boolean;
|
package/src/services/sudo.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { password as passwordPrompt } from "@inquirer/prompts";
|
|
2
2
|
import type { ShellService } from "@vlandoss/clibuddy";
|
|
3
|
-
import { logger } from "./logger";
|
|
4
|
-
import { silentShell } from "./shell";
|
|
3
|
+
import { logger } from "./logger.ts";
|
|
4
|
+
import { silentShell } from "./shell.ts";
|
|
5
5
|
|
|
6
6
|
const debug = logger.subdebug("sudo");
|
|
7
7
|
|
package/tsconfig.json
CHANGED