@fedify/init 2.2.0-dev.628 → 2.2.0-dev.635
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/action/{configs.mjs → configs.js} +6 -6
- package/dist/action/{deps.mjs → deps.js} +4 -4
- package/dist/action/{env.mjs → env.js} +2 -2
- package/dist/action/{install.mjs → install.js} +1 -1
- package/dist/action/{mod.d.mts → mod.d.ts} +2 -2
- package/dist/action/{mod.mjs → mod.js} +11 -11
- package/dist/action/{notice.mjs → notice.js} +1 -1
- package/dist/action/{patch.mjs → patch.js} +6 -6
- package/dist/action/{precommand.mjs → precommand.js} +1 -1
- package/dist/action/{recommend.mjs → recommend.js} +4 -4
- package/dist/action/{set.mjs → set.js} +3 -3
- package/dist/action/{templates.mjs → templates.js} +2 -2
- package/dist/ask/{dir.mjs → dir.js} +2 -2
- package/dist/ask/{kv.mjs → kv.js} +3 -3
- package/dist/ask/{mod.mjs → mod.js} +5 -5
- package/dist/ask/{mq.mjs → mq.js} +3 -3
- package/dist/ask/{pm.mjs → pm.js} +3 -3
- package/dist/ask/{wf.mjs → wf.js} +2 -2
- package/dist/{command.mjs → command.js} +1 -1
- package/dist/{const.mjs → const.js} +2 -2
- package/dist/{deno.mjs → deno.js} +1 -1
- package/dist/{lib.mjs → lib.js} +6 -6
- package/dist/mod.d.ts +3 -0
- package/dist/mod.js +3 -0
- package/dist/test/{action.mjs → action.js} +5 -5
- package/dist/test/{create.mjs → create.js} +4 -4
- package/dist/test/{db.mjs → db.js} +3 -3
- package/dist/test/{fill.mjs → fill.js} +1 -1
- package/dist/test/{lookup.mjs → lookup.js} +3 -3
- package/dist/test/{mod.mjs → mod.js} +2 -2
- package/dist/test/{run.mjs → run.js} +3 -3
- package/dist/test/{utils.mjs → utils.js} +1 -1
- package/dist/{types.d.mts → types.d.ts} +3 -3
- package/dist/webframeworks/{astro.mjs → astro.js} +4 -4
- package/dist/webframeworks/{bare-bones.mjs → bare-bones.js} +4 -4
- package/dist/webframeworks/{const.mjs → const.js} +1 -1
- package/dist/webframeworks/{elysia.mjs → elysia.js} +4 -4
- package/dist/webframeworks/{express.mjs → express.js} +4 -4
- package/dist/webframeworks/{hono.mjs → hono.js} +5 -5
- package/dist/webframeworks/{mod.mjs → mod.js} +7 -7
- package/dist/webframeworks/{next.mjs → next.js} +4 -4
- package/dist/webframeworks/{nitro.mjs → nitro.js} +4 -4
- package/dist/webframeworks/{utils.mjs → utils.js} +1 -1
- package/package.json +3 -1
- package/dist/mod.d.mts +0 -3
- package/dist/mod.mjs +0 -3
- /package/dist/action/{const.mjs → const.js} +0 -0
- /package/dist/action/{dir.mjs → dir.js} +0 -0
- /package/dist/action/{utils.mjs → utils.js} +0 -0
- /package/dist/{command.d.mts → command.d.ts} +0 -0
- /package/dist/{const.d.mts → const.d.ts} +0 -0
- /package/dist/json/{biome.mjs → biome.js} +0 -0
- /package/dist/json/{db-to-check.mjs → db-to-check.js} +0 -0
- /package/dist/json/{kv.mjs → kv.js} +0 -0
- /package/dist/json/{mq.mjs → mq.js} +0 -0
- /package/dist/json/{pm.mjs → pm.js} +0 -0
- /package/dist/json/{rt.mjs → rt.js} +0 -0
- /package/dist/json/{vscode-settings-for-deno.mjs → vscode-settings-for-deno.js} +0 -0
- /package/dist/json/{vscode-settings.mjs → vscode-settings.js} +0 -0
- /package/dist/test/{mod.d.mts → mod.d.ts} +0 -0
- /package/dist/{utils.d.mts → utils.d.ts} +0 -0
- /package/dist/{utils.mjs → utils.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { merge } from "../utils.
|
|
2
|
-
import biome_default from "../json/biome.
|
|
3
|
-
import vscode_settings_for_deno_default from "../json/vscode-settings-for-deno.
|
|
4
|
-
import vscode_settings_default from "../json/vscode-settings.
|
|
5
|
-
import { getPackagesPath } from "./const.
|
|
6
|
-
import { getDependencies, getDevDependencies, joinDepsReg } from "./deps.
|
|
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 { getPackagesPath } from "./const.js";
|
|
6
|
+
import { getDependencies, getDevDependencies, joinDepsReg } from "./deps.js";
|
|
7
7
|
import { execFileSync } from "node:child_process";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { realpathSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { merge, replace } from "../utils.
|
|
2
|
-
import { PACKAGE_VERSION } from "../lib.
|
|
3
|
-
import { getPackagesPath } from "./const.
|
|
4
|
-
import { isDeno } from "./utils.
|
|
1
|
+
import { merge, replace } from "../utils.js";
|
|
2
|
+
import { PACKAGE_VERSION } from "../lib.js";
|
|
3
|
+
import { getPackagesPath } 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
|
//#region src/action/deps.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { notEmpty } from "../utils.
|
|
2
|
-
import { noticeConfigEnv, noticeEnvKeyValue } from "./notice.
|
|
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
|
//#region src/action/env.ts
|
|
5
5
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { set } from "../utils.
|
|
2
|
-
import askOptions from "../ask/mod.
|
|
3
|
-
import { makeDirIfHyd } from "./dir.
|
|
4
|
-
import { drawDinosaur, noticeHowToRun, noticeOptions, noticePrecommand } from "./notice.
|
|
5
|
-
import recommendConfigEnv from "./env.
|
|
6
|
-
import installDependencies from "./install.
|
|
7
|
-
import { hasCommand, isDry } from "./utils.
|
|
8
|
-
import { patchFiles, recommendPatchFiles } from "./patch.
|
|
9
|
-
import runPrecommand from "./precommand.
|
|
10
|
-
import recommendDependencies from "./recommend.
|
|
11
|
-
import setData from "./set.
|
|
1
|
+
import { set } from "../utils.js";
|
|
2
|
+
import askOptions from "../ask/mod.js";
|
|
3
|
+
import { makeDirIfHyd } from "./dir.js";
|
|
4
|
+
import { drawDinosaur, noticeHowToRun, noticeOptions, noticePrecommand } from "./notice.js";
|
|
5
|
+
import recommendConfigEnv from "./env.js";
|
|
6
|
+
import installDependencies from "./install.js";
|
|
7
|
+
import { hasCommand, isDry } from "./utils.js";
|
|
8
|
+
import { patchFiles, recommendPatchFiles } from "./patch.js";
|
|
9
|
+
import runPrecommand from "./precommand.js";
|
|
10
|
+
import recommendDependencies from "./recommend.js";
|
|
11
|
+
import setData from "./set.js";
|
|
12
12
|
import { pipe, tap, unless, when } from "@fxts/core";
|
|
13
13
|
import process from "node:process";
|
|
14
14
|
//#region src/action/mod.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { formatJson, merge, replaceAll, set } from "../utils.
|
|
2
|
-
import { createFile, throwUnlessNotExists } from "../lib.
|
|
3
|
-
import { displayFile, noticeFilesToCreate, noticeFilesToInsert } from "./notice.
|
|
4
|
-
import { joinDir, stringifyEnvs } from "./utils.
|
|
5
|
-
import { devToolConfigs, loadDenoConfig, loadPackageJson, loadTsConfig } from "./configs.
|
|
6
|
-
import { getImports, loadFederation, loadLogging } from "./templates.
|
|
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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { notEmpty } from "../utils.
|
|
2
|
-
import { noticeDeps, noticeDepsIfExist, noticeDevDepsIfExist } from "./notice.
|
|
3
|
-
import { isDeno } from "./utils.
|
|
4
|
-
import { getDependencies, getDevDependencies } from "./deps.
|
|
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
|
//#region src/action/recommend.ts
|
|
7
7
|
const recommendDeps = pipeLazy(getDependencies, Object.entries, when(notEmpty, tap(noticeDepsIfExist)), peek(noticeDeps));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { merge, set } from "../utils.
|
|
2
|
-
import { kvStores, messageQueues } from "../lib.
|
|
3
|
-
import webFrameworks from "../webframeworks/mod.
|
|
1
|
+
import { merge, set } from "../utils.js";
|
|
2
|
+
import { kvStores, messageQueues } from "../lib.js";
|
|
3
|
+
import webFrameworks from "../webframeworks/mod.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.
|
|
2
|
-
import { readTemplate } from "../lib.
|
|
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
|
//#region src/action/templates.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getCwd, getOsType, runSubCommand } from "../utils.
|
|
2
|
-
import { isDirectoryEmpty, logger } from "../lib.
|
|
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.
|
|
2
|
-
import { isTest, kvStores } from "../lib.
|
|
3
|
-
import { KV_STORE } from "../const.
|
|
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
|
//#region src/ask/kv.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import fillDir from "./dir.
|
|
2
|
-
import fillKvStore from "./kv.
|
|
3
|
-
import fillMessageQueue from "./mq.
|
|
4
|
-
import fillPackageManager from "./pm.
|
|
5
|
-
import fillWebFramework from "./wf.
|
|
1
|
+
import fillDir from "./dir.js";
|
|
2
|
+
import fillKvStore from "./kv.js";
|
|
3
|
+
import fillMessageQueue from "./mq.js";
|
|
4
|
+
import fillPackageManager from "./pm.js";
|
|
5
|
+
import fillWebFramework from "./wf.js";
|
|
6
6
|
import { pipe } from "@fxts/core";
|
|
7
7
|
//#region src/ask/mod.ts
|
|
8
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { printErrorMessage } from "../utils.
|
|
2
|
-
import { isTest, messageQueues } from "../lib.
|
|
3
|
-
import { MESSAGE_QUEUE } from "../const.
|
|
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
|
//#region src/ask/mq.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getInstallUrl, isPackageManagerAvailable, kvStores, messageQueues, packageManagers, runtimes } from "../lib.
|
|
2
|
-
import { PACKAGE_MANAGER } from "../const.
|
|
3
|
-
import webFrameworks from "../webframeworks/mod.
|
|
1
|
+
import { getInstallUrl, isPackageManagerAvailable, kvStores, messageQueues, packageManagers, runtimes } from "../lib.js";
|
|
2
|
+
import { PACKAGE_MANAGER } from "../const.js";
|
|
3
|
+
import webFrameworks from "../webframeworks/mod.js";
|
|
4
4
|
import { pipe, when } from "@fxts/core";
|
|
5
5
|
import { select } from "@inquirer/prompts";
|
|
6
6
|
import { message } from "@optique/core/message";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WEB_FRAMEWORK } from "../const.
|
|
2
|
-
import webFrameworks from "../webframeworks/mod.
|
|
1
|
+
import { WEB_FRAMEWORK } from "../const.js";
|
|
2
|
+
import webFrameworks from "../webframeworks/mod.js";
|
|
3
3
|
import { select } from "@inquirer/prompts";
|
|
4
4
|
//#region src/ask/wf.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KV_STORE, MESSAGE_QUEUE, PACKAGE_MANAGER, WEB_FRAMEWORK } from "./const.
|
|
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
|
//#region src/command.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import kv_default from "./json/kv.
|
|
2
|
-
import mq_default from "./json/mq.
|
|
1
|
+
import kv_default from "./json/kv.js";
|
|
2
|
+
import mq_default from "./json/mq.js";
|
|
3
3
|
//#region src/const.ts
|
|
4
4
|
/** All supported package manager identifiers, in display order. */
|
|
5
5
|
const PACKAGE_MANAGER = [
|
package/dist/{lib.mjs → lib.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { isNotFoundError, runSubCommand } from "./utils.
|
|
2
|
-
import { version } from "./deno.
|
|
3
|
-
import kv_default from "./json/kv.
|
|
4
|
-
import mq_default from "./json/mq.
|
|
5
|
-
import pm_default from "./json/pm.
|
|
6
|
-
import rt_default from "./json/rt.
|
|
1
|
+
import { isNotFoundError, runSubCommand } from "./utils.js";
|
|
2
|
+
import { version } from "./deno.js";
|
|
3
|
+
import kv_default from "./json/kv.js";
|
|
4
|
+
import mq_default from "./json/mq.js";
|
|
5
|
+
import pm_default from "./json/pm.js";
|
|
6
|
+
import rt_default from "./json/rt.js";
|
|
7
7
|
import { entries, evolve, fromEntries, isObject, map, negate, pipe, throwIf } from "@fxts/core";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { toMerged } from "es-toolkit";
|
package/dist/mod.d.ts
ADDED
package/dist/mod.js
ADDED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { set } from "../utils.
|
|
2
|
-
import { checkRequiredDbs } from "./db.
|
|
3
|
-
import { fillEmptyOptions } from "./fill.
|
|
4
|
-
import runTests from "./run.
|
|
5
|
-
import { emptyTestDir, genRunId, genTestDirPrefix, logTestDir } from "./utils.
|
|
1
|
+
import { set } from "../utils.js";
|
|
2
|
+
import { checkRequiredDbs } from "./db.js";
|
|
3
|
+
import { fillEmptyOptions } from "./fill.js";
|
|
4
|
+
import runTests from "./run.js";
|
|
5
|
+
import { emptyTestDir, genRunId, genTestDirPrefix, logTestDir } from "./utils.js";
|
|
6
6
|
import { pipe, tap, when } from "@fxts/core";
|
|
7
7
|
//#region src/test/action.ts
|
|
8
8
|
const runTestInit = (options) => pipe(options, set("runId", genRunId), set("testDirPrefix", genTestDirPrefix), tap(emptyTestDir), fillEmptyOptions, tap(checkRequiredDbs), tap(logTestDir), tap(when(isDryRun, runTests(true))), tap(when(isHydRun, runTests(false))));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CommandError, printErrorMessage, printMessage, product, runSubCommand } from "../utils.
|
|
2
|
-
import pm_default from "../json/pm.
|
|
3
|
-
import { kvStores, messageQueues } from "../lib.
|
|
4
|
-
import webFrameworks from "../webframeworks/mod.
|
|
1
|
+
import { CommandError, printErrorMessage, printMessage, product, runSubCommand } from "../utils.js";
|
|
2
|
+
import pm_default from "../json/pm.js";
|
|
3
|
+
import { kvStores, messageQueues } from "../lib.js";
|
|
4
|
+
import webFrameworks from "../webframeworks/mod.js";
|
|
5
5
|
import { filter, isEmpty, pipe, toArray } from "@fxts/core";
|
|
6
6
|
import process from "node:process";
|
|
7
7
|
import { values } from "@optique/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { printErrorMessage, printMessage } from "../utils.
|
|
2
|
-
import { DB_TO_CHECK } from "../const.
|
|
3
|
-
import db_to_check_default from "../json/db-to-check.
|
|
1
|
+
import { printErrorMessage, printMessage } from "../utils.js";
|
|
2
|
+
import { DB_TO_CHECK } from "../const.js";
|
|
3
|
+
import db_to_check_default from "../json/db-to-check.js";
|
|
4
4
|
import { concat, filter, pipe, toArray, uniq } from "@fxts/core";
|
|
5
5
|
import { createConnection } from "node:net";
|
|
6
6
|
//#region src/test/db.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KV_STORE, MESSAGE_QUEUE, PACKAGE_MANAGER, WEB_FRAMEWORK } from "../const.
|
|
1
|
+
import { KV_STORE, MESSAGE_QUEUE, PACKAGE_MANAGER, WEB_FRAMEWORK } from "../const.js";
|
|
2
2
|
import { isEmpty, omit, pipe } from "@fxts/core";
|
|
3
3
|
//#region src/test/fill.ts
|
|
4
4
|
const fillEmptyOptions = (options) => pipe(options, fillWebFramework, fillPackageManager, fillKVStore, fillMessageQueue, fillRunMode);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { printErrorMessage, printMessage, runSubCommand } from "../utils.
|
|
2
|
-
import { getDevCommand } from "../lib.
|
|
3
|
-
import webFrameworks from "../webframeworks/mod.
|
|
1
|
+
import { printErrorMessage, printMessage, runSubCommand } from "../utils.js";
|
|
2
|
+
import { getDevCommand } from "../lib.js";
|
|
3
|
+
import webFrameworks from "../webframeworks/mod.js";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import { values } from "@optique/core";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { testInitCommand } from "../command.
|
|
2
|
-
import runTestInit from "./action.
|
|
1
|
+
import { testInitCommand } from "../command.js";
|
|
2
|
+
import runTestInit from "./action.js";
|
|
3
3
|
import { run } from "@optique/run";
|
|
4
4
|
//#region src/test/mod.ts
|
|
5
5
|
async function main() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { printMessage } from "../utils.
|
|
2
|
-
import createTestApp, { filterOptions, generateTestCases } from "./create.
|
|
3
|
-
import runServerAndLookupUser from "./lookup.
|
|
1
|
+
import { printMessage } from "../utils.js";
|
|
2
|
+
import createTestApp, { filterOptions, generateTestCases } from "./create.js";
|
|
3
|
+
import runServerAndLookupUser from "./lookup.js";
|
|
4
4
|
import { always, filter, map, pipe, tap, unless } from "@fxts/core";
|
|
5
5
|
import { optionNames } from "@optique/core";
|
|
6
6
|
import { join as join$1 } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InitCommand } from "./command.
|
|
2
|
-
import { PACKAGE_MANAGER } from "./const.
|
|
3
|
-
import { RequiredNotNull } from "./utils.
|
|
1
|
+
import { InitCommand } from "./command.js";
|
|
2
|
+
import { PACKAGE_MANAGER } from "./const.js";
|
|
3
|
+
import { RequiredNotNull } from "./utils.js";
|
|
4
4
|
import { Message } from "@optique/core";
|
|
5
5
|
|
|
6
6
|
//#region src/types.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PACKAGE_VERSION, readTemplate } from "../lib.
|
|
2
|
-
import { PACKAGE_MANAGER } from "../const.
|
|
3
|
-
import { defaultDenoDependencies, defaultDevDependencies } from "./const.
|
|
4
|
-
import { getInstruction } from "./utils.
|
|
1
|
+
import { PACKAGE_VERSION, readTemplate } from "../lib.js";
|
|
2
|
+
import { PACKAGE_MANAGER } from "../const.js";
|
|
3
|
+
import { defaultDenoDependencies, defaultDevDependencies } from "./const.js";
|
|
4
|
+
import { getInstruction } from "./utils.js";
|
|
5
5
|
//#region src/webframeworks/astro.ts
|
|
6
6
|
const astroDescription = {
|
|
7
7
|
label: "Astro",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { readTemplate } from "../lib.
|
|
2
|
-
import { PACKAGE_MANAGER } from "../const.
|
|
3
|
-
import { defaultDenoDependencies, defaultDevDependencies } from "./const.
|
|
4
|
-
import { getInstruction, packageManagerToRuntime } from "./utils.
|
|
1
|
+
import { readTemplate } from "../lib.js";
|
|
2
|
+
import { PACKAGE_MANAGER } from "../const.js";
|
|
3
|
+
import { defaultDenoDependencies, defaultDevDependencies } from "./const.js";
|
|
4
|
+
import { getInstruction, packageManagerToRuntime } from "./utils.js";
|
|
5
5
|
//#region src/webframeworks/bare-bones.ts
|
|
6
6
|
const bareBonesDescription = {
|
|
7
7
|
label: "Bare-bones",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PACKAGE_VERSION, readTemplate } from "../lib.
|
|
2
|
-
import { PACKAGE_MANAGER } from "../const.
|
|
3
|
-
import { defaultDenoDependencies, defaultDevDependencies } from "./const.
|
|
4
|
-
import { getInstruction, packageManagerToRuntime } from "./utils.
|
|
1
|
+
import { PACKAGE_VERSION, readTemplate } from "../lib.js";
|
|
2
|
+
import { PACKAGE_MANAGER } from "../const.js";
|
|
3
|
+
import { defaultDenoDependencies, defaultDevDependencies } from "./const.js";
|
|
4
|
+
import { getInstruction, packageManagerToRuntime } from "./utils.js";
|
|
5
5
|
//#region src/webframeworks/elysia.ts
|
|
6
6
|
const elysiaDescription = {
|
|
7
7
|
label: "ElysiaJS",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PACKAGE_VERSION, readTemplate } from "../lib.
|
|
2
|
-
import { PACKAGE_MANAGER } from "../const.
|
|
3
|
-
import { defaultDenoDependencies, defaultDevDependencies } from "./const.
|
|
4
|
-
import { getInstruction } from "./utils.
|
|
1
|
+
import { PACKAGE_VERSION, readTemplate } from "../lib.js";
|
|
2
|
+
import { PACKAGE_MANAGER } from "../const.js";
|
|
3
|
+
import { defaultDenoDependencies, defaultDevDependencies } from "./const.js";
|
|
4
|
+
import { getInstruction } from "./utils.js";
|
|
5
5
|
//#region src/webframeworks/express.ts
|
|
6
6
|
const expressDescription = {
|
|
7
7
|
label: "Express",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { replace } from "../utils.
|
|
2
|
-
import { PACKAGE_VERSION, readTemplate } from "../lib.
|
|
3
|
-
import { PACKAGE_MANAGER } from "../const.
|
|
4
|
-
import { defaultDenoDependencies, defaultDevDependencies } from "./const.
|
|
5
|
-
import { getInstruction, packageManagerToRuntime } from "./utils.
|
|
1
|
+
import { replace } from "../utils.js";
|
|
2
|
+
import { PACKAGE_VERSION, readTemplate } from "../lib.js";
|
|
3
|
+
import { PACKAGE_MANAGER } from "../const.js";
|
|
4
|
+
import { defaultDenoDependencies, defaultDevDependencies } from "./const.js";
|
|
5
|
+
import { getInstruction, packageManagerToRuntime } from "./utils.js";
|
|
6
6
|
import { pipe } from "@fxts/core";
|
|
7
7
|
//#region src/webframeworks/hono.ts
|
|
8
8
|
const honoDescription = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import astroDescription from "./astro.
|
|
2
|
-
import bareBonesDescription from "./bare-bones.
|
|
3
|
-
import elysiaDescription from "./elysia.
|
|
4
|
-
import expressDescription from "./express.
|
|
5
|
-
import honoDescription from "./hono.
|
|
6
|
-
import nextDescription from "./next.
|
|
7
|
-
import nitroDescription from "./nitro.
|
|
1
|
+
import astroDescription from "./astro.js";
|
|
2
|
+
import bareBonesDescription from "./bare-bones.js";
|
|
3
|
+
import elysiaDescription from "./elysia.js";
|
|
4
|
+
import expressDescription from "./express.js";
|
|
5
|
+
import honoDescription from "./hono.js";
|
|
6
|
+
import nextDescription from "./next.js";
|
|
7
|
+
import nitroDescription from "./nitro.js";
|
|
8
8
|
//#region src/webframeworks/mod.ts
|
|
9
9
|
/**
|
|
10
10
|
* Registry of all supported web framework configurations.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PACKAGE_VERSION, readTemplate } from "../lib.
|
|
2
|
-
import { PACKAGE_MANAGER } from "../const.
|
|
3
|
-
import { defaultDenoDependencies, defaultDevDependencies } from "./const.
|
|
4
|
-
import { getInstruction } from "./utils.
|
|
1
|
+
import { PACKAGE_VERSION, readTemplate } from "../lib.js";
|
|
2
|
+
import { PACKAGE_MANAGER } from "../const.js";
|
|
3
|
+
import { defaultDenoDependencies, defaultDevDependencies } from "./const.js";
|
|
4
|
+
import { getInstruction } from "./utils.js";
|
|
5
5
|
//#region src/webframeworks/next.ts
|
|
6
6
|
const nextDescription = {
|
|
7
7
|
label: "Next.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PACKAGE_VERSION, readTemplate } from "../lib.
|
|
2
|
-
import { PACKAGE_MANAGER } from "../const.
|
|
3
|
-
import { defaultDenoDependencies, defaultDevDependencies } from "./const.
|
|
4
|
-
import { getInstruction } from "./utils.
|
|
1
|
+
import { PACKAGE_VERSION, readTemplate } from "../lib.js";
|
|
2
|
+
import { PACKAGE_MANAGER } from "../const.js";
|
|
3
|
+
import { defaultDenoDependencies, defaultDevDependencies } from "./const.js";
|
|
4
|
+
import { getInstruction } from "./utils.js";
|
|
5
5
|
//#region src/webframeworks/nitro.ts
|
|
6
6
|
const nitroDescription = {
|
|
7
7
|
label: "Nitro",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/init",
|
|
3
|
-
"version": "2.2.0-dev.
|
|
3
|
+
"version": "2.2.0-dev.635+ece5910c",
|
|
4
4
|
"description": "Project initializer for Fedify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fedify",
|
|
@@ -66,6 +66,8 @@
|
|
|
66
66
|
"build:self": "tsdown",
|
|
67
67
|
"build": "pnpm --filter @fedify/init... run build:self",
|
|
68
68
|
"prepublish": "pnpm build",
|
|
69
|
+
"pretest": "pnpm build",
|
|
70
|
+
"test": "node --test --experimental-transform-types 'src/**/*.test.ts'",
|
|
69
71
|
"test-init": "deno task test-init"
|
|
70
72
|
}
|
|
71
73
|
}
|
package/dist/mod.d.mts
DELETED
package/dist/mod.mjs
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|