@fedify/init 2.0.0-dev.0 → 2.0.0-dev.372

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.
Files changed (63) hide show
  1. package/dist/action/{configs.mjs → configs.js} +6 -6
  2. package/dist/action/{deps.mjs → deps.js} +7 -5
  3. package/dist/action/{env.mjs → env.js} +2 -2
  4. package/dist/action/{install.mjs → install.js} +1 -1
  5. package/dist/action/{mod.d.mts → mod.d.ts} +2 -2
  6. package/dist/action/{mod.mjs → mod.js} +11 -11
  7. package/dist/action/{notice.mjs → notice.js} +1 -1
  8. package/dist/action/{patch.mjs → patch.js} +8 -7
  9. package/dist/action/{precommand.mjs → precommand.js} +1 -1
  10. package/dist/action/{recommend.mjs → recommend.js} +4 -4
  11. package/dist/action/{set.mjs → set.js} +3 -3
  12. package/dist/action/{templates.mjs → templates.js} +3 -3
  13. package/dist/ask/{dir.mjs → dir.js} +2 -2
  14. package/dist/ask/{kv.mjs → kv.js} +3 -3
  15. package/dist/ask/{mod.mjs → mod.js} +5 -5
  16. package/dist/ask/{mq.mjs → mq.js} +3 -3
  17. package/dist/ask/{pm.mjs → pm.js} +4 -4
  18. package/dist/ask/{wf.mjs → wf.js} +2 -2
  19. package/dist/{command.mjs → command.js} +2 -2
  20. package/dist/deno.js +38 -0
  21. package/dist/json/biome.js +18 -0
  22. package/dist/json/db-to-check.js +24 -0
  23. package/dist/json/kv.js +50 -0
  24. package/dist/json/mq.js +69 -0
  25. package/dist/json/pm.js +41 -0
  26. package/dist/json/rt.js +36 -0
  27. package/dist/json/vscode-settings-for-deno.js +50 -0
  28. package/dist/json/vscode-settings.js +46 -0
  29. package/dist/{lib.mjs → lib.js} +9 -8
  30. package/dist/mod.d.ts +3 -0
  31. package/dist/mod.js +4 -0
  32. package/dist/test/{action.mjs → action.js} +5 -5
  33. package/dist/test/{create.mjs → create.js} +14 -10
  34. package/dist/test/db.js +52 -0
  35. package/dist/test/{fill.mjs → fill.js} +1 -1
  36. package/dist/test/{lookup.mjs → lookup.js} +12 -8
  37. package/dist/test/{mod.mjs → mod.js} +6 -6
  38. package/dist/test/{run.mjs → run.js} +4 -4
  39. package/dist/test/{utils.mjs → utils.js} +1 -1
  40. package/dist/{types.d.mts → types.d.ts} +3 -3
  41. package/dist/{utils.mjs → utils.js} +2 -2
  42. package/dist/{webframeworks.mjs → webframeworks.js} +3 -3
  43. package/package.json +9 -4
  44. package/dist/deno.mjs +0 -5
  45. package/dist/json/biome.mjs +0 -14
  46. package/dist/json/db-to-check.mjs +0 -21
  47. package/dist/json/kv.mjs +0 -47
  48. package/dist/json/mq.mjs +0 -65
  49. package/dist/json/pm.mjs +0 -36
  50. package/dist/json/rt.mjs +0 -31
  51. package/dist/json/vscode-settings-for-deno.mjs +0 -39
  52. package/dist/json/vscode-settings.mjs +0 -37
  53. package/dist/mod.d.mts +0 -3
  54. package/dist/mod.mjs +0 -4
  55. package/dist/test/db.mjs +0 -42
  56. /package/dist/action/{const.mjs → const.js} +0 -0
  57. /package/dist/action/{dir.mjs → dir.js} +0 -0
  58. /package/dist/action/{utils.mjs → utils.js} +0 -0
  59. /package/dist/{command.d.mts → command.d.ts} +0 -0
  60. /package/dist/{const.d.mts → const.d.ts} +0 -0
  61. /package/dist/{const.mjs → const.js} +0 -0
  62. /package/dist/test/{mod.d.mts → mod.d.ts} +0 -0
  63. /package/dist/{utils.d.mts → utils.d.ts} +0 -0
@@ -1,9 +1,9 @@
1
- import { merge } from "../utils.mjs";
2
- import biome_default from "../json/biome.mjs";
3
- import vscode_settings_for_deno_default from "../json/vscode-settings-for-deno.mjs";
4
- import vscode_settings_default from "../json/vscode-settings.mjs";
5
- import { PACKAGES_PATH } from "./const.mjs";
6
- import { getDependencies, getDevDependencies, joinDepsReg } from "./deps.mjs";
1
+ import { merge } from "../utils.js";
2
+ import biome_default from "../json/biome.js";
3
+ import vscode_settings_for_deno_default from "../json/vscode-settings-for-deno.js";
4
+ import vscode_settings_default from "../json/vscode-settings.js";
5
+ import { PACKAGES_PATH } from "./const.js";
6
+ import { getDependencies, getDevDependencies, joinDepsReg } from "./deps.js";
7
7
  import { uniq } from "es-toolkit";
8
8
  import { realpathSync } from "node:fs";
9
9
  import { join, relative } from "node:path";
@@ -1,7 +1,7 @@
1
- import { merge, replace } from "../utils.mjs";
2
- import { PACKAGE_VERSION } from "../lib.mjs";
3
- import { PACKAGES_PATH } from "./const.mjs";
4
- import { isDeno } from "./utils.mjs";
1
+ import { merge, replace } from "../utils.js";
2
+ import { PACKAGE_VERSION } from "../lib.js";
3
+ import { PACKAGES_PATH } from "./const.js";
4
+ import { isDeno } from "./utils.js";
5
5
  import { always, entries, filter, fromEntries, map, pipe, when } from "@fxts/core";
6
6
  import { join as join$1 } from "node:path";
7
7
 
@@ -40,7 +40,9 @@ const getDevDependencies = ({ initializer, kv, mq, packageManager }) => pipe({ "
40
40
  * @returns \{ name: `${registry}:${package}@${version}` } for deno
41
41
  */
42
42
  const joinDepsReg = (pm) => (dependencies) => pipe(dependencies, entries, map(([name, version]) => {
43
- return [name.substring(4), version.startsWith("npm:") || version.startsWith("jsr:") ? version : `${name}@${getPackageVersion(pm, version)}`];
43
+ const cleanName = name.substring(4);
44
+ const fullSpec = version.startsWith("npm:") || version.startsWith("jsr:") ? version : `${name}@${getPackageVersion(pm, version)}`;
45
+ return [cleanName, fullSpec];
44
46
  }), fromEntries);
45
47
  const getPackageVersion = (pm, version) => pm !== "deno" && version.includes("+") ? version.substring(0, version.indexOf("+")) : version;
46
48
  const normalizePackageNames = (pm) => (deps) => pipe(deps, entries, map(([name, version]) => [getPackageName(pm, name), version]), fromEntries);
@@ -1,5 +1,5 @@
1
- import { notEmpty } from "../utils.mjs";
2
- import { noticeConfigEnv, noticeEnvKeyValue } from "./notice.mjs";
1
+ import { notEmpty } from "../utils.js";
2
+ import { noticeConfigEnv, noticeEnvKeyValue } from "./notice.js";
3
3
  import { entries, forEach, pipeLazy, tap, toArray, when } from "@fxts/core";
4
4
 
5
5
  //#region src/action/env.ts
@@ -1,4 +1,4 @@
1
- import { CommandError, runSubCommand } from "../utils.mjs";
1
+ import { CommandError, runSubCommand } from "../utils.js";
2
2
  import { apply, pipe } from "@fxts/core";
3
3
 
4
4
  //#region src/action/install.ts
@@ -1,5 +1,5 @@
1
- import { InitCommand } from "../command.mjs";
2
- import { InitCommandData } from "../types.mjs";
1
+ import { InitCommand } from "../command.js";
2
+ import { InitCommandData } from "../types.js";
3
3
 
4
4
  //#region src/action/mod.d.ts
5
5
 
@@ -1,14 +1,14 @@
1
- import { set } from "../utils.mjs";
2
- import ask_default from "../ask/mod.mjs";
3
- import { makeDirIfHyd } from "./dir.mjs";
4
- import { drawDinosaur, noticeHowToRun, noticeOptions, noticePrecommand } from "./notice.mjs";
5
- import env_default from "./env.mjs";
6
- import install_default from "./install.mjs";
7
- import { hasCommand, isDry } from "./utils.mjs";
8
- import { patchFiles, recommendPatchFiles } from "./patch.mjs";
9
- import precommand_default from "./precommand.mjs";
10
- import recommend_default from "./recommend.mjs";
11
- import set_default from "./set.mjs";
1
+ import { set } from "../utils.js";
2
+ import ask_default from "../ask/mod.js";
3
+ import { makeDirIfHyd } from "./dir.js";
4
+ import { drawDinosaur, noticeHowToRun, noticeOptions, noticePrecommand } from "./notice.js";
5
+ import env_default from "./env.js";
6
+ import install_default from "./install.js";
7
+ import { hasCommand, isDry } from "./utils.js";
8
+ import { patchFiles, recommendPatchFiles } from "./patch.js";
9
+ import precommand_default from "./precommand.js";
10
+ import recommend_default from "./recommend.js";
11
+ import set_default from "./set.js";
12
12
  import { pipe, tap, unless, when } from "@fxts/core";
13
13
  import process from "node:process";
14
14
 
@@ -1,4 +1,4 @@
1
- import { colors, printMessage } from "../utils.mjs";
1
+ import { colors, printMessage } from "../utils.js";
2
2
  import { text } from "@optique/core";
3
3
  import { flow } from "es-toolkit";
4
4
 
@@ -1,9 +1,9 @@
1
- import { formatJson, merge, replaceAll, set } from "../utils.mjs";
2
- import { createFile, throwUnlessNotExists } from "../lib.mjs";
3
- import { displayFile, noticeFilesToCreate, noticeFilesToInsert } from "./notice.mjs";
4
- import { joinDir, stringifyEnvs } from "./utils.mjs";
5
- import { devToolConfigs, loadDenoConfig, loadPackageJson, loadTsConfig } from "./configs.mjs";
6
- import { getImports, loadFederation, loadLogging } from "./templates.mjs";
1
+ import { formatJson, merge, replaceAll, set } from "../utils.js";
2
+ import { createFile, throwUnlessNotExists } from "../lib.js";
3
+ import { displayFile, noticeFilesToCreate, noticeFilesToInsert } from "./notice.js";
4
+ import { joinDir, stringifyEnvs } from "./utils.js";
5
+ import { devToolConfigs, loadDenoConfig, loadPackageJson, loadTsConfig } from "./configs.js";
6
+ import { getImports, loadFederation, loadLogging } from "./templates.js";
7
7
  import { always, apply, entries, map, pipe, pipeLazy, tap } from "@fxts/core";
8
8
  import { toMerged } from "es-toolkit";
9
9
  import { readFile } from "node:fs/promises";
@@ -97,7 +97,8 @@ const processAllFiles = (process) => ({ dir, files }) => pipe(files, entries, ma
97
97
  */
98
98
  async function patchContent(path, content) {
99
99
  const prev = await readFileIfExists(path);
100
- return [path, typeof content === "object" ? mergeJson(prev, content) : appendText(prev, content)];
100
+ const data = typeof content === "object" ? mergeJson(prev, content) : appendText(prev, content);
101
+ return [path, data];
101
102
  }
102
103
  /**
103
104
  * Merges new JSON data with existing JSON content and formats the result.
@@ -1,4 +1,4 @@
1
- import { CommandError, exit, runSubCommand } from "../utils.mjs";
1
+ import { CommandError, exit, runSubCommand } from "../utils.js";
2
2
 
3
3
  //#region src/action/precommand.ts
4
4
  /**
@@ -1,7 +1,7 @@
1
- import { notEmpty } from "../utils.mjs";
2
- import { noticeDeps, noticeDepsIfExist, noticeDevDepsIfExist } from "./notice.mjs";
3
- import { isDeno } from "./utils.mjs";
4
- import { getDependencies, getDevDependencies } from "./deps.mjs";
1
+ import { notEmpty } from "../utils.js";
2
+ import { noticeDeps, noticeDepsIfExist, noticeDevDepsIfExist } from "./notice.js";
3
+ import { isDeno } from "./utils.js";
4
+ import { getDependencies, getDevDependencies } from "./deps.js";
5
5
  import { map, peek, pipeLazy, tap, unless, when } from "@fxts/core";
6
6
 
7
7
  //#region src/action/recommend.ts
@@ -1,6 +1,6 @@
1
- import { merge, set } from "../utils.mjs";
2
- import { kvStores, messageQueues } from "../lib.mjs";
3
- import webframeworks_default from "../webframeworks.mjs";
1
+ import { merge, set } from "../utils.js";
2
+ import { kvStores, messageQueues } from "../lib.js";
3
+ import webframeworks_default from "../webframeworks.js";
4
4
  import { pipe } from "@fxts/core";
5
5
  import { existsSync } from "node:fs";
6
6
  import { realpath } from "node:fs/promises";
@@ -1,5 +1,5 @@
1
- import { replace } from "../utils.mjs";
2
- import { readTemplate } from "../lib.mjs";
1
+ import { replace } from "../utils.js";
2
+ import { readTemplate } from "../lib.js";
3
3
  import { entries, join, map, pipe } from "@fxts/core";
4
4
  import { toMerged } from "es-toolkit";
5
5
 
@@ -27,7 +27,7 @@ const loadLogging = ({ projectName }) => pipe("defaults/logging.ts", readTemplat
27
27
  * @param param0 - Destructured object containing kv and mq configurations
28
28
  * @returns A multi-line string containing all necessary import statements
29
29
  */
30
- const getImports = ({ kv, mq }) => pipe(toMerged(kv.imports, mq.imports), entries, map(([module, { "default": defaultImport = "", ...imports }]) => [
30
+ const getImports = ({ kv, mq }) => pipe(toMerged(kv.imports, mq.imports), entries, map(([module, { "default": defaultImport = "",...imports }]) => [
31
31
  module,
32
32
  defaultImport,
33
33
  getAlias(imports)
@@ -1,5 +1,5 @@
1
- import { getCwd, getOsType, runSubCommand } from "../utils.mjs";
2
- import { isDirectoryEmpty, logger } from "../lib.mjs";
1
+ import { getCwd, getOsType, runSubCommand } from "../utils.js";
2
+ import { isDirectoryEmpty, logger } from "../lib.js";
3
3
  import { identity, pipe, when } from "@fxts/core";
4
4
  import { input } from "@inquirer/prompts";
5
5
  import { message } from "@optique/core/message";
@@ -1,6 +1,6 @@
1
- import { printErrorMessage } from "../utils.mjs";
2
- import { isTest, kvStores } from "../lib.mjs";
3
- import { KV_STORE } from "../const.mjs";
1
+ import { printErrorMessage } from "../utils.js";
2
+ import { isTest, kvStores } from "../lib.js";
3
+ import { KV_STORE } from "../const.js";
4
4
  import { select } from "@inquirer/prompts";
5
5
  import { pipe, tap, throwError, unless, when } from "@fxts/core/index.js";
6
6
 
@@ -1,8 +1,8 @@
1
- import dir_default from "./dir.mjs";
2
- import kv_default from "./kv.mjs";
3
- import mq_default from "./mq.mjs";
4
- import pm_default from "./pm.mjs";
5
- import wf_default from "./wf.mjs";
1
+ import dir_default from "./dir.js";
2
+ import kv_default from "./kv.js";
3
+ import mq_default from "./mq.js";
4
+ import pm_default from "./pm.js";
5
+ import wf_default from "./wf.js";
6
6
  import { pipe } from "@fxts/core";
7
7
 
8
8
  //#region src/ask/mod.ts
@@ -1,6 +1,6 @@
1
- import { printErrorMessage } from "../utils.mjs";
2
- import { isTest, messageQueues } from "../lib.mjs";
3
- import { MESSAGE_QUEUE } from "../const.mjs";
1
+ import { printErrorMessage } from "../utils.js";
2
+ import { isTest, messageQueues } from "../lib.js";
3
+ import { MESSAGE_QUEUE } from "../const.js";
4
4
  import { select } from "@inquirer/prompts";
5
5
  import { pipe, tap, throwError, unless, when } from "@fxts/core/index.js";
6
6
 
@@ -1,6 +1,6 @@
1
- import { getInstallUrl, isPackageManagerAvailable, kvStores, messageQueues, packageManagers, runtimes } from "../lib.mjs";
2
- import { PACKAGE_MANAGER } from "../const.mjs";
3
- import webframeworks_default from "../webframeworks.mjs";
1
+ import { getInstallUrl, isPackageManagerAvailable, kvStores, messageQueues, packageManagers, runtimes } from "../lib.js";
2
+ import { PACKAGE_MANAGER } from "../const.js";
3
+ import webframeworks_default from "../webframeworks.js";
4
4
  import { pipe, when } from "@fxts/core";
5
5
  import { select } from "@inquirer/prompts";
6
6
  import { message } from "@optique/core/message";
@@ -15,7 +15,7 @@ import { print } from "@optique/run";
15
15
  * @param options - Initialization options possibly containing a packageManager and webFramework
16
16
  * @returns A promise resolving to options with a guaranteed packageManager
17
17
  */
18
- const fillPackageManager = async ({ packageManager, ...options }) => {
18
+ const fillPackageManager = async ({ packageManager,...options }) => {
19
19
  const pm = packageManager ?? await askPackageManager(options.webFramework);
20
20
  if (await isPackageManagerAvailable(pm)) return {
21
21
  ...options,
@@ -1,5 +1,5 @@
1
- import { WEB_FRAMEWORK } from "../const.mjs";
2
- import webframeworks_default from "../webframeworks.mjs";
1
+ import { WEB_FRAMEWORK } from "../const.js";
2
+ import webframeworks_default from "../webframeworks.js";
3
3
  import { select } from "@inquirer/prompts";
4
4
 
5
5
  //#region src/ask/wf.ts
@@ -1,4 +1,4 @@
1
- import { KV_STORE, MESSAGE_QUEUE, PACKAGE_MANAGER, WEB_FRAMEWORK } from "./const.mjs";
1
+ import { KV_STORE, MESSAGE_QUEUE, PACKAGE_MANAGER, WEB_FRAMEWORK } from "./const.js";
2
2
  import { path } from "@optique/run";
3
3
  import { argument, choice, command, constant, merge, message, multiple, object, option, optionNames, optional, or } from "@optique/core";
4
4
 
@@ -34,7 +34,7 @@ const testInitCommand = command("test-init", merge(object("Initialization option
34
34
  messageQueue: multiple(messageQueue),
35
35
  debugOption
36
36
  }), optional(or(noHydRun, noDryRun))), {
37
- brief: message`Test an initializing command .`,
37
+ brief: message`Test an initializing command.`,
38
38
  description: message`Test an initializing command on temporary directories.
39
39
 
40
40
  Unless you specify all options (${optionNames(["-w", "--web-framework"])}, ${optionNames(["-p", "--package-manager"])}, ${optionNames(["-k", "--kv-store"])}, and ${optionNames(["-m", "--message-queue"])}), it will test all combinations of the options.`
package/dist/deno.js ADDED
@@ -0,0 +1,38 @@
1
+ //#region deno.json
2
+ var name = "@fedify/init";
3
+ var version = "2.0.0-dev.372+33936bb9";
4
+ var license = "MIT";
5
+ var exports = "./src/mod.ts";
6
+ var imports = {
7
+ "@inquirer/prompts": "npm:@inquirer/prompts@^7.8.4",
8
+ "inquirer-toggle": "npm:inquirer-toggle@^1.0.1"
9
+ };
10
+ var exclude = ["dist/", "node_modules/"];
11
+ var publish = { "exclude": ["**/*.test.ts"] };
12
+ var tasks = {
13
+ "check": "deno fmt --check && deno lint && deno check src/**/*.ts",
14
+ "run": "deno run --allow-all src/mod.ts",
15
+ "test-init": "FEDIFY_TEST_MODE=true deno run --allow-all src/test/mod.ts test-init"
16
+ };
17
+ var fmt = { "exclude": ["src/templates/**"] };
18
+ var lint = {
19
+ "exclude": ["src/templates/**"],
20
+ "rules": { "exclude": ["no-slow-types"] }
21
+ };
22
+ var test = { "exclude": ["src/test/**"] };
23
+ var deno_default = {
24
+ name,
25
+ version,
26
+ license,
27
+ exports,
28
+ imports,
29
+ exclude,
30
+ publish,
31
+ tasks,
32
+ fmt,
33
+ lint,
34
+ test
35
+ };
36
+
37
+ //#endregion
38
+ export { deno_default as default };
@@ -0,0 +1,18 @@
1
+ //#region src/json/biome.json
2
+ var $schema = "https://biomejs.dev/schemas/1.8.3/schema.json";
3
+ var organizeImports = { "enabled": true };
4
+ var formatter = {
5
+ "enabled": true,
6
+ "indentStyle": "space",
7
+ "indentWidth": 2
8
+ };
9
+ var linter = { "enabled": false };
10
+ var biome_default = {
11
+ $schema,
12
+ organizeImports,
13
+ formatter,
14
+ linter
15
+ };
16
+
17
+ //#endregion
18
+ export { biome_default as default };
@@ -0,0 +1,24 @@
1
+ //#region src/json/db-to-check.json
2
+ var redis = {
3
+ "name": "Redis",
4
+ "defaultPort": 6379,
5
+ "documentation": "https://redis.io/docs/latest/operate/oss_and_stack/install/archive/install-redis/"
6
+ };
7
+ var postgres = {
8
+ "name": "PostgreSQL",
9
+ "defaultPort": 5432,
10
+ "documentation": "https://www.postgresql.org/download/"
11
+ };
12
+ var amqp = {
13
+ "name": "RabbitMQ",
14
+ "defaultPort": 5672,
15
+ "documentation": "https://www.rabbitmq.com/docs/download"
16
+ };
17
+ var db_to_check_default = {
18
+ redis,
19
+ postgres,
20
+ amqp
21
+ };
22
+
23
+ //#endregion
24
+ export { db_to_check_default as default };
@@ -0,0 +1,50 @@
1
+ //#region src/json/kv.json
2
+ var redis = {
3
+ "label": "Redis",
4
+ "packageManagers": [
5
+ "deno",
6
+ "bun",
7
+ "npm",
8
+ "yarn",
9
+ "pnpm"
10
+ ],
11
+ "dependencies": { "npm:ioredis": "^5.4.1" },
12
+ "imports": {
13
+ "@fedify/redis": { "RedisKvStore": "RedisKvStore" },
14
+ "ioredis": { "Redis": "Redis" }
15
+ },
16
+ "object": "new RedisKvStore(new Redis(process.env.REDIS_URL))",
17
+ "env": { "REDIS_URL": "redis://localhost:6379" }
18
+ };
19
+ var postgres = {
20
+ "label": "PostgreSQL",
21
+ "packageManagers": [
22
+ "deno",
23
+ "bun",
24
+ "npm",
25
+ "yarn",
26
+ "pnpm"
27
+ ],
28
+ "dependencies": { "npm:postgres": "^3.4.5" },
29
+ "imports": {
30
+ "@fedify/postgres": { "PostgresKvStore": "PostgresKvStore" },
31
+ "postgres": { "default": "postgres" }
32
+ },
33
+ "object": "new PostgresKvStore(postgres(process.env.POSTGRES_URL))",
34
+ "env": { "POSTGRES_URL": "postgres://postgres@localhost:5432/postgres" }
35
+ };
36
+ var denokv = {
37
+ "label": "Deno KV",
38
+ "packageManagers": ["deno"],
39
+ "imports": { "@fedify/denokv": { "DenoKvStore": "DenoKvStore" } },
40
+ "object": "new DenoKvStore(await Deno.openKv())",
41
+ "denoUnstable": ["kv"]
42
+ };
43
+ var kv_default = {
44
+ redis,
45
+ postgres,
46
+ denokv
47
+ };
48
+
49
+ //#endregion
50
+ export { kv_default as default };
@@ -0,0 +1,69 @@
1
+ //#region src/json/mq.json
2
+ var redis = {
3
+ "label": "Redis",
4
+ "packageManagers": [
5
+ "deno",
6
+ "bun",
7
+ "npm",
8
+ "yarn",
9
+ "pnpm"
10
+ ],
11
+ "dependencies": { "npm:ioredis": "^5.4.1" },
12
+ "imports": {
13
+ "@fedify/redis": { "RedisMessageQueue": "RedisMessageQueue" },
14
+ "ioredis": { "Redis": "Redis" }
15
+ },
16
+ "object": "new RedisMessageQueue(() => new Redis(process.env.REDIS_URL))",
17
+ "env": { "REDIS_URL": "redis://localhost:6379" }
18
+ };
19
+ var postgres = {
20
+ "label": "PostgreSQL",
21
+ "packageManagers": [
22
+ "deno",
23
+ "bun",
24
+ "npm",
25
+ "yarn",
26
+ "pnpm"
27
+ ],
28
+ "dependencies": { "npm:postgres": "^3.4.5" },
29
+ "imports": {
30
+ "@fedify/postgres": { "PostgresMessageQueue": "PostgresMessageQueue" },
31
+ "postgres": { "default": "postgres" }
32
+ },
33
+ "object": "new PostgresMessageQueue(postgres(process.env.POSTGRES_URL))",
34
+ "env": { "POSTGRES_URL": "postgres://postgres@localhost:5432/postgres" }
35
+ };
36
+ var amqp = {
37
+ "label": "AMQP (e.g., RabbitMQ)",
38
+ "packageManagers": [
39
+ "deno",
40
+ "bun",
41
+ "npm",
42
+ "yarn",
43
+ "pnpm"
44
+ ],
45
+ "dependencies": { "npm:amqplib": "^0.10.4" },
46
+ "devDependencies": { "npm:@types/amqplib": "^0.10.5" },
47
+ "imports": {
48
+ "@fedify/amqp": { "AmqpMessageQueue": "AmqpMessageQueue" },
49
+ "amqplib": { "connect": "connect" }
50
+ },
51
+ "object": "new AmqpMessageQueue(await connect(process.env.AMQP_URL))",
52
+ "env": { "AMQP_URL": "amqp://localhost" }
53
+ };
54
+ var denokv = {
55
+ "label": "Deno KV",
56
+ "packageManagers": ["deno"],
57
+ "imports": { "@fedify/denokv": { "DenoKvMessageQueue": "DenoKvMessageQueue" } },
58
+ "object": "new DenoKvMessageQueue(await Deno.openKv())",
59
+ "denoUnstable": ["kv"]
60
+ };
61
+ var mq_default = {
62
+ redis,
63
+ postgres,
64
+ amqp,
65
+ denokv
66
+ };
67
+
68
+ //#endregion
69
+ export { mq_default as default };
@@ -0,0 +1,41 @@
1
+ //#region src/json/pm.json
2
+ var deno = {
3
+ "label": "deno",
4
+ "checkCommand": ["deno", "--version"],
5
+ "outputPattern": "^deno\\s+\\d+\\.\\d+\\.\\d+\\b",
6
+ "installUrl": "https://docs.deno.com/runtime/getting_started/installation"
7
+ };
8
+ var bun = {
9
+ "label": "bun",
10
+ "checkCommand": ["bun", "--version"],
11
+ "outputPattern": "^\\d+\\.\\d+\\.\\d+$",
12
+ "installUrl": "https://bun.sh/docs/installation"
13
+ };
14
+ var npm = {
15
+ "label": "npm",
16
+ "checkCommand": ["npm", "--version"],
17
+ "outputPattern": "^\\d+\\.\\d+\\.\\d+$",
18
+ "installUrl": "https://docs.npmjs.com/downloading-and-installing-node-js-and-npm"
19
+ };
20
+ var yarn = {
21
+ "label": "Yarn",
22
+ "checkCommand": ["yarn", "--version"],
23
+ "outputPattern": "^\\d+\\.\\d+\\.\\d+$",
24
+ "installUrl": "https://classic.yarnpkg.com/en/docs/install/#windows-stable"
25
+ };
26
+ var pnpm = {
27
+ "label": "pnpm",
28
+ "checkCommand": ["pnpm", "--version"],
29
+ "outputPattern": "^\\d+\\.\\d+\\.\\d+$",
30
+ "installUrl": "https://pnpm.io/installation"
31
+ };
32
+ var pm_default = {
33
+ deno,
34
+ bun,
35
+ npm,
36
+ yarn,
37
+ pnpm
38
+ };
39
+
40
+ //#endregion
41
+ export { pm_default as default };
@@ -0,0 +1,36 @@
1
+ //#region src/json/rt.json
2
+ var deno = {
3
+ "label": "Deno",
4
+ "checkCommand": ["deno", "--version"],
5
+ "outputPattern": "^deno\\s+\\d+\\.\\d+\\.\\d+\\b"
6
+ };
7
+ var bun = {
8
+ "label": "Bun",
9
+ "checkCommand": ["bun", "--version"],
10
+ "outputPattern": "^\\d+\\.\\d+\\.\\d+$"
11
+ };
12
+ var pnpm = {
13
+ "label": "Node.js",
14
+ "checkCommand": ["node", "--version"],
15
+ "outputPattern": "^v\\d+\\.\\d+\\.\\d+$"
16
+ };
17
+ var yarn = {
18
+ "label": "Node.js",
19
+ "checkCommand": ["node", "--version"],
20
+ "outputPattern": "^v\\d+\\.\\d+\\.\\d+$"
21
+ };
22
+ var npm = {
23
+ "label": "Node.js",
24
+ "checkCommand": ["node", "--version"],
25
+ "outputPattern": "^v\\d+\\.\\d+\\.\\d+$"
26
+ };
27
+ var rt_default = {
28
+ deno,
29
+ bun,
30
+ pnpm,
31
+ yarn,
32
+ npm
33
+ };
34
+
35
+ //#endregion
36
+ export { rt_default as default };
@@ -0,0 +1,50 @@
1
+ //#region src/json/vscode-settings-for-deno.json
2
+ var deno_enable = true;
3
+ var deno_unstable = true;
4
+ var editor_detectIndentation = false;
5
+ var editor_indentSize = 2;
6
+ var editor_insertSpaces = true;
7
+ var __javascript_ = {
8
+ "editor.defaultFormatter": "denoland.vscode-deno",
9
+ "editor.formatOnSave": true,
10
+ "editor.codeActionsOnSave": { "source.sortImports": "always" }
11
+ };
12
+ var __javascriptreact_ = {
13
+ "editor.defaultFormatter": "denoland.vscode-deno",
14
+ "editor.formatOnSave": true,
15
+ "editor.codeActionsOnSave": { "source.sortImports": "always" }
16
+ };
17
+ var __json_ = {
18
+ "editor.defaultFormatter": "vscode.json-language-features",
19
+ "editor.formatOnSave": true
20
+ };
21
+ var __jsonc_ = {
22
+ "editor.defaultFormatter": "vscode.json-language-features",
23
+ "editor.formatOnSave": true
24
+ };
25
+ var __typescript_ = {
26
+ "editor.defaultFormatter": "denoland.vscode-deno",
27
+ "editor.formatOnSave": true,
28
+ "editor.codeActionsOnSave": { "source.sortImports": "always" }
29
+ };
30
+ var __typescriptreact_ = {
31
+ "editor.defaultFormatter": "denoland.vscode-deno",
32
+ "editor.formatOnSave": true,
33
+ "editor.codeActionsOnSave": { "source.sortImports": "always" }
34
+ };
35
+ var vscode_settings_for_deno_default = {
36
+ "deno.enable": deno_enable,
37
+ "deno.unstable": deno_unstable,
38
+ "editor.detectIndentation": editor_detectIndentation,
39
+ "editor.indentSize": editor_indentSize,
40
+ "editor.insertSpaces": editor_insertSpaces,
41
+ "[javascript]": __javascript_,
42
+ "[javascriptreact]": __javascriptreact_,
43
+ "[json]": __json_,
44
+ "[jsonc]": __jsonc_,
45
+ "[typescript]": __typescript_,
46
+ "[typescriptreact]": __typescriptreact_
47
+ };
48
+
49
+ //#endregion
50
+ export { vscode_settings_for_deno_default as default };
@@ -0,0 +1,46 @@
1
+ //#region src/json/vscode-settings.json
2
+ var editor_detectIndentation = false;
3
+ var editor_indentSize = 2;
4
+ var editor_insertSpaces = true;
5
+ var __javascript_ = {
6
+ "editor.defaultFormatter": "biomejs.biome",
7
+ "editor.formatOnSave": true,
8
+ "editor.codeActionsOnSave": { "source.organizeImports.biome": "always" }
9
+ };
10
+ var __javascriptreact_ = {
11
+ "editor.defaultFormatter": "biomejs.biome",
12
+ "editor.formatOnSave": true,
13
+ "editor.codeActionsOnSave": { "source.organizeImports.biome": "always" }
14
+ };
15
+ var __json_ = {
16
+ "editor.defaultFormatter": "biomejs.biome",
17
+ "editor.formatOnSave": true
18
+ };
19
+ var __jsonc_ = {
20
+ "editor.defaultFormatter": "biomejs.biome",
21
+ "editor.formatOnSave": true
22
+ };
23
+ var __typescript_ = {
24
+ "editor.defaultFormatter": "biomejs.biome",
25
+ "editor.formatOnSave": true,
26
+ "editor.codeActionsOnSave": { "source.organizeImports.biome": "always" }
27
+ };
28
+ var __typescriptreact_ = {
29
+ "editor.defaultFormatter": "biomejs.biome",
30
+ "editor.formatOnSave": true,
31
+ "editor.codeActionsOnSave": { "source.organizeImports.biome": "always" }
32
+ };
33
+ var vscode_settings_default = {
34
+ "editor.detectIndentation": editor_detectIndentation,
35
+ "editor.indentSize": editor_indentSize,
36
+ "editor.insertSpaces": editor_insertSpaces,
37
+ "[javascript]": __javascript_,
38
+ "[javascriptreact]": __javascriptreact_,
39
+ "[json]": __json_,
40
+ "[jsonc]": __jsonc_,
41
+ "[typescript]": __typescript_,
42
+ "[typescriptreact]": __typescriptreact_
43
+ };
44
+
45
+ //#endregion
46
+ export { vscode_settings_default as default };