@intlayer/engine 9.5.9-canary.0 → 9.5.10
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/cjs/_virtual/_utils_asset.cjs +1 -1
- package/dist/cjs/build.cjs +4 -4
- package/dist/cjs/buildIntlayerDictionary/writeDynamicDictionary.cjs +2 -2
- package/dist/cjs/buildIntlayerDictionary/writeFetchDictionary.cjs +3 -3
- package/dist/cjs/buildIntlayerDictionary/writeMergedDictionary.cjs +1 -1
- package/dist/cjs/buildIntlayerDictionary/writeNestedDictionary.cjs +3 -3
- package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs +2 -2
- package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs +2 -2
- package/dist/cjs/cleanOutputDir.cjs +1 -1
- package/dist/cjs/cleanRemovedContentDeclaration.cjs +1 -1
- package/dist/cjs/cli.cjs +10 -3
- package/dist/cjs/createDictionaryEntryPoint/createDictionaryEntryPoint.cjs +1 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDictionariesPath.cjs +2 -2
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.cjs +2 -2
- package/dist/cjs/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.cjs +2 -2
- package/dist/cjs/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.cjs +2 -2
- package/dist/cjs/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.cjs +2 -2
- package/dist/cjs/createType/createModuleAugmentation.cjs +3 -3
- package/dist/cjs/createType/createType.cjs +1 -1
- package/dist/cjs/docReview/index.cjs +5 -5
- package/dist/cjs/docReview/pipeline.cjs +4 -4
- package/dist/cjs/docReview/reviewReport.cjs.map +1 -1
- package/dist/cjs/fetchDistantDictionaries.cjs +1 -1
- package/dist/cjs/handleContentDeclarationFileChange.cjs +2 -2
- package/dist/cjs/handleUnlinkedContentDeclarationFile.cjs +1 -1
- package/dist/cjs/init/cms.cjs +35 -0
- package/dist/cjs/init/cms.cjs.map +1 -1
- package/dist/cjs/init/documentationRouter.cjs +141 -0
- package/dist/cjs/init/documentationRouter.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/backend/index.cjs +138 -0
- package/dist/cjs/init/frameworkSetup/backend/index.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/backend/transforms.cjs +223 -0
- package/dist/cjs/init/frameworkSetup/backend/transforms.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/index.cjs +9 -3
- package/dist/cjs/init/frameworkSetup/index.cjs.map +1 -1
- package/dist/cjs/init/frameworkSetup/localeRouting.cjs +13 -0
- package/dist/cjs/init/frameworkSetup/localeRouting.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/nextAppRouter/index.cjs +34 -7
- package/dist/cjs/init/frameworkSetup/nextAppRouter/index.cjs.map +1 -1
- package/dist/cjs/init/frameworkSetup/nextAppRouter/restructure.cjs +1 -1
- package/dist/cjs/init/frameworkSetup/nextAppRouter/templates.cjs +56 -0
- package/dist/cjs/init/frameworkSetup/nextAppRouter/templates.cjs.map +1 -1
- package/dist/cjs/init/frameworkSetup/nextAppRouter/transforms.cjs +2 -2
- package/dist/cjs/init/frameworkSetup/nextAppRouter/transforms.cjs.map +1 -1
- package/dist/cjs/init/frameworkSetup/tanstackStart/index.cjs +32 -3
- package/dist/cjs/init/frameworkSetup/tanstackStart/index.cjs.map +1 -1
- package/dist/cjs/init/frameworkSetup/tanstackStart/restructure.cjs +1 -1
- package/dist/cjs/init/frameworkSetup/tanstackStart/templates.cjs +58 -0
- package/dist/cjs/init/frameworkSetup/tanstackStart/templates.cjs.map +1 -1
- package/dist/cjs/init/frameworkSetup/tanstackStart/transforms.cjs +94 -14
- package/dist/cjs/init/frameworkSetup/tanstackStart/transforms.cjs.map +1 -1
- package/dist/cjs/init/index.cjs +46 -159
- package/dist/cjs/init/index.cjs.map +1 -1
- package/dist/cjs/init/utils/configManipulation.cjs +39 -0
- package/dist/cjs/init/utils/configManipulation.cjs.map +1 -1
- package/dist/cjs/init/utils/fileSystem.cjs +1 -1
- package/dist/cjs/init/utils/githubActions.cjs +1 -1
- package/dist/cjs/init/utils/index.cjs +10 -0
- package/dist/cjs/init/utils/intlayerDependencies.cjs +1 -1
- package/dist/cjs/init/utils/lintConfig.cjs +52 -0
- package/dist/cjs/init/utils/lintConfig.cjs.map +1 -0
- package/dist/cjs/init/utils/packageManager.cjs +63 -14
- package/dist/cjs/init/utils/packageManager.cjs.map +1 -1
- package/dist/cjs/init/utils/urlRoutingFramework.cjs +41 -0
- package/dist/cjs/init/utils/urlRoutingFramework.cjs.map +1 -0
- package/dist/cjs/initConfig/index.cjs +5 -2
- package/dist/cjs/initConfig/index.cjs.map +1 -1
- package/dist/cjs/installLSP.cjs +1 -1
- package/dist/cjs/installMCP/installMCP.cjs +1 -1
- package/dist/cjs/installSkills/index.cjs +1 -1
- package/dist/cjs/listDictionariesPath.cjs +1 -1
- package/dist/cjs/listGitFiles.cjs +1 -1
- package/dist/cjs/loadDictionaries/getIntlayerBundle.cjs +2 -2
- package/dist/cjs/loadDictionaries/index.cjs +1 -1
- package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs +2 -2
- package/dist/cjs/loadDictionaries/loadDictionaries.cjs +1 -1
- package/dist/cjs/loadDictionaries/loadLocalDictionaries.cjs +1 -1
- package/dist/cjs/loadDictionaries/loadMarkdownContentDeclaration.cjs +1 -1
- package/dist/cjs/loadDictionaries/logTypeScriptErrors.cjs +104 -43
- package/dist/cjs/loadDictionaries/logTypeScriptErrors.cjs.map +1 -1
- package/dist/cjs/logConfigDetails.cjs +1 -1
- package/dist/cjs/prepareIntlayer.cjs +4 -4
- package/dist/cjs/scan/index.cjs +1 -1
- package/dist/cjs/scan/scanWebsite.cjs +1 -1
- package/dist/cjs/syncPluginKit/createFileAdapter.cjs +1 -1
- package/dist/cjs/syncPluginKit/index.cjs +1 -1
- package/dist/cjs/utils/buildComponentFilesList.cjs +1 -1
- package/dist/cjs/utils/contentWatcherLock.cjs +2 -2
- package/dist/cjs/utils/index.cjs +4 -4
- package/dist/cjs/utils/readDictionariesFromDisk.cjs +1 -1
- package/dist/cjs/utils/runOnce.cjs +1 -1
- package/dist/cjs/utils/runParallel/pidTree.cjs +1 -1
- package/dist/cjs/utils/withFileLock.cjs +1 -1
- package/dist/cjs/watcher.cjs +6 -6
- package/dist/cjs/writeConfiguration/index.cjs +1 -1
- package/dist/cjs/writeContentDeclaration/processContentDeclarationContent.cjs +2 -2
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs +1 -1
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs +4 -4
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs +3 -3
- package/dist/cjs/writeContentDeclaration/writeMarkdownFile.cjs +1 -1
- package/dist/cjs/writeContentDeclaration/writeYamlFile.cjs +1 -1
- package/dist/cjs/writeFileIfChanged.cjs +1 -1
- package/dist/esm/_virtual/_utils_asset.mjs +1 -1
- package/dist/esm/build.mjs +4 -4
- package/dist/esm/buildIntlayerDictionary/writeDynamicDictionary.mjs +2 -2
- package/dist/esm/buildIntlayerDictionary/writeFetchDictionary.mjs +3 -3
- package/dist/esm/buildIntlayerDictionary/writeMergedDictionary.mjs +1 -1
- package/dist/esm/buildIntlayerDictionary/writeNestedDictionary.mjs +3 -3
- package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs +2 -2
- package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs +2 -2
- package/dist/esm/cleanOutputDir.mjs +1 -1
- package/dist/esm/cleanRemovedContentDeclaration.mjs +1 -1
- package/dist/esm/cli.mjs +8 -6
- package/dist/esm/createDictionaryEntryPoint/createDictionaryEntryPoint.mjs +1 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltDictionariesPath.mjs +2 -2
- package/dist/esm/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.mjs +2 -2
- package/dist/esm/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.mjs +2 -2
- package/dist/esm/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.mjs +2 -2
- package/dist/esm/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.mjs +2 -2
- package/dist/esm/createType/createModuleAugmentation.mjs +3 -3
- package/dist/esm/createType/createType.mjs +1 -1
- package/dist/esm/docReview/index.mjs +5 -5
- package/dist/esm/docReview/pipeline.mjs +4 -4
- package/dist/esm/docReview/reviewReport.mjs.map +1 -1
- package/dist/esm/fetchDistantDictionaries.mjs +1 -1
- package/dist/esm/handleContentDeclarationFileChange.mjs +2 -2
- package/dist/esm/handleUnlinkedContentDeclarationFile.mjs +1 -1
- package/dist/esm/init/cms.mjs +35 -2
- package/dist/esm/init/cms.mjs.map +1 -1
- package/dist/esm/init/documentationRouter.mjs +139 -0
- package/dist/esm/init/documentationRouter.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/backend/index.mjs +130 -0
- package/dist/esm/init/frameworkSetup/backend/index.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/backend/transforms.mjs +216 -0
- package/dist/esm/init/frameworkSetup/backend/transforms.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/index.mjs +9 -3
- package/dist/esm/init/frameworkSetup/index.mjs.map +1 -1
- package/dist/esm/init/frameworkSetup/localeRouting.mjs +12 -0
- package/dist/esm/init/frameworkSetup/localeRouting.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/nextAppRouter/index.mjs +36 -9
- package/dist/esm/init/frameworkSetup/nextAppRouter/index.mjs.map +1 -1
- package/dist/esm/init/frameworkSetup/nextAppRouter/restructure.mjs +1 -1
- package/dist/esm/init/frameworkSetup/nextAppRouter/templates.mjs +54 -1
- package/dist/esm/init/frameworkSetup/nextAppRouter/templates.mjs.map +1 -1
- package/dist/esm/init/frameworkSetup/nextAppRouter/transforms.mjs +2 -2
- package/dist/esm/init/frameworkSetup/nextAppRouter/transforms.mjs.map +1 -1
- package/dist/esm/init/frameworkSetup/tanstackStart/index.mjs +35 -6
- package/dist/esm/init/frameworkSetup/tanstackStart/index.mjs.map +1 -1
- package/dist/esm/init/frameworkSetup/tanstackStart/restructure.mjs +1 -1
- package/dist/esm/init/frameworkSetup/tanstackStart/templates.mjs +56 -1
- package/dist/esm/init/frameworkSetup/tanstackStart/templates.mjs.map +1 -1
- package/dist/esm/init/frameworkSetup/tanstackStart/transforms.mjs +94 -15
- package/dist/esm/init/frameworkSetup/tanstackStart/transforms.mjs.map +1 -1
- package/dist/esm/init/index.mjs +42 -158
- package/dist/esm/init/index.mjs.map +1 -1
- package/dist/esm/init/utils/configManipulation.mjs +38 -1
- package/dist/esm/init/utils/configManipulation.mjs.map +1 -1
- package/dist/esm/init/utils/fileSystem.mjs +1 -1
- package/dist/esm/init/utils/githubActions.mjs +1 -1
- package/dist/esm/init/utils/index.mjs +5 -3
- package/dist/esm/init/utils/intlayerDependencies.mjs +1 -1
- package/dist/esm/init/utils/lintConfig.mjs +50 -0
- package/dist/esm/init/utils/lintConfig.mjs.map +1 -0
- package/dist/esm/init/utils/packageManager.mjs +61 -15
- package/dist/esm/init/utils/packageManager.mjs.map +1 -1
- package/dist/esm/init/utils/urlRoutingFramework.mjs +40 -0
- package/dist/esm/init/utils/urlRoutingFramework.mjs.map +1 -0
- package/dist/esm/initConfig/index.mjs +5 -2
- package/dist/esm/initConfig/index.mjs.map +1 -1
- package/dist/esm/installLSP.mjs +1 -1
- package/dist/esm/installMCP/installMCP.mjs +1 -1
- package/dist/esm/installSkills/index.mjs +1 -1
- package/dist/esm/listDictionariesPath.mjs +1 -1
- package/dist/esm/listGitFiles.mjs +1 -1
- package/dist/esm/loadDictionaries/getIntlayerBundle.mjs +2 -2
- package/dist/esm/loadDictionaries/index.mjs +1 -1
- package/dist/esm/loadDictionaries/loadContentDeclaration.mjs +2 -2
- package/dist/esm/loadDictionaries/loadDictionaries.mjs +1 -1
- package/dist/esm/loadDictionaries/loadLocalDictionaries.mjs +1 -1
- package/dist/esm/loadDictionaries/loadMarkdownContentDeclaration.mjs +1 -1
- package/dist/esm/loadDictionaries/logTypeScriptErrors.mjs +105 -44
- package/dist/esm/loadDictionaries/logTypeScriptErrors.mjs.map +1 -1
- package/dist/esm/logConfigDetails.mjs +1 -1
- package/dist/esm/prepareIntlayer.mjs +4 -4
- package/dist/esm/scan/index.mjs +1 -1
- package/dist/esm/scan/scanWebsite.mjs +1 -1
- package/dist/esm/syncPluginKit/createFileAdapter.mjs +1 -1
- package/dist/esm/syncPluginKit/index.mjs +1 -1
- package/dist/esm/utils/buildComponentFilesList.mjs +1 -1
- package/dist/esm/utils/contentWatcherLock.mjs +2 -2
- package/dist/esm/utils/index.mjs +4 -4
- package/dist/esm/utils/readDictionariesFromDisk.mjs +1 -1
- package/dist/esm/utils/runOnce.mjs +1 -1
- package/dist/esm/utils/runParallel/pidTree.mjs +1 -1
- package/dist/esm/utils/withFileLock.mjs +1 -1
- package/dist/esm/watcher.mjs +6 -6
- package/dist/esm/writeConfiguration/index.mjs +1 -1
- package/dist/esm/writeContentDeclaration/processContentDeclarationContent.mjs +2 -2
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs +1 -1
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs +4 -4
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs +3 -3
- package/dist/esm/writeContentDeclaration/writeMarkdownFile.mjs +1 -1
- package/dist/esm/writeContentDeclaration/writeYamlFile.mjs +1 -1
- package/dist/esm/writeFileIfChanged.mjs +1 -1
- package/dist/types/cli.d.ts +5 -3
- package/dist/types/docReview/reviewReport.d.ts.map +1 -1
- package/dist/types/formatDictionary.d.ts +2 -2
- package/dist/types/init/cms.d.ts +11 -0
- package/dist/types/init/cms.d.ts.map +1 -1
- package/dist/types/init/documentationRouter.d.ts +64 -0
- package/dist/types/init/documentationRouter.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/backend/index.d.ts +16 -0
- package/dist/types/init/frameworkSetup/backend/index.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/backend/transforms.d.ts +37 -0
- package/dist/types/init/frameworkSetup/backend/transforms.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/localeRouting.d.ts +11 -0
- package/dist/types/init/frameworkSetup/localeRouting.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts +5 -5
- package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts +12 -0
- package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts +10 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts +3 -2
- package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts +10 -0
- package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts +12 -0
- package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/types.d.ts +6 -0
- package/dist/types/init/frameworkSetup/types.d.ts.map +1 -1
- package/dist/types/init/index.d.ts +15 -1
- package/dist/types/init/index.d.ts.map +1 -1
- package/dist/types/init/utils/configManipulation.d.ts +14 -0
- package/dist/types/init/utils/configManipulation.d.ts.map +1 -1
- package/dist/types/init/utils/index.d.ts +5 -3
- package/dist/types/init/utils/lintConfig.d.ts +28 -0
- package/dist/types/init/utils/lintConfig.d.ts.map +1 -0
- package/dist/types/init/utils/packageManager.d.ts +29 -6
- package/dist/types/init/utils/packageManager.d.ts.map +1 -1
- package/dist/types/init/utils/urlRoutingFramework.d.ts +9 -0
- package/dist/types/init/utils/urlRoutingFramework.d.ts.map +1 -0
- package/dist/types/initConfig/index.d.ts +3 -1
- package/dist/types/initConfig/index.d.ts.map +1 -1
- package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts +4 -0
- package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -2,9 +2,9 @@ import { formatPath } from "./utils/formatter.mjs";
|
|
|
2
2
|
import { runOnce } from "./utils/runOnce.mjs";
|
|
3
3
|
import { join, relative } from "node:path";
|
|
4
4
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
5
|
+
import { getEnvFilePath } from "@intlayer/config/env";
|
|
5
6
|
import { colorize, colorizePath, getAppLogger, x } from "@intlayer/config/logger";
|
|
6
7
|
import { getConfigurationAndFilePath, intlayerConfigSchema, intlayerConfigSchemaParseContext } from "@intlayer/config/node";
|
|
7
|
-
import { getEnvFilePath } from "@intlayer/config/env";
|
|
8
8
|
|
|
9
9
|
//#region src/logConfigDetails.ts
|
|
10
10
|
const logConfigDetails = (options) => {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
+
import { runOnce } from "./utils/runOnce.mjs";
|
|
1
2
|
import { buildDictionary } from "./buildIntlayerDictionary/buildIntlayerDictionary.mjs";
|
|
3
|
+
import { cleanOutputDir } from "./cleanOutputDir.mjs";
|
|
2
4
|
import { createDictionaryEntryPoint } from "./createDictionaryEntryPoint/createDictionaryEntryPoint.mjs";
|
|
3
|
-
import { runOnce } from "./utils/runOnce.mjs";
|
|
4
5
|
import { createModuleAugmentation } from "./createType/createModuleAugmentation.mjs";
|
|
5
6
|
import { createTypes } from "./createType/createType.mjs";
|
|
6
|
-
import { listDictionariesWithStats } from "./listDictionariesPath.mjs";
|
|
7
7
|
import { loadDictionaries } from "./loadDictionaries/loadDictionaries.mjs";
|
|
8
8
|
import { writeRemoteDictionary } from "./buildIntlayerDictionary/writeRemoteDictionary.mjs";
|
|
9
|
-
import {
|
|
9
|
+
import { listDictionariesWithStats } from "./listDictionariesPath.mjs";
|
|
10
10
|
import { isCachedConfigurationUpToDate, writeConfiguration } from "./writeConfiguration/index.mjs";
|
|
11
|
-
import { stat } from "node:fs/promises";
|
|
12
11
|
import { join } from "node:path";
|
|
13
12
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
14
13
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
15
14
|
import { cacheDisk } from "@intlayer/config/utils";
|
|
15
|
+
import { stat } from "node:fs/promises";
|
|
16
16
|
import packageJson from "@intlayer/config/package.json" with { type: "json" };
|
|
17
17
|
|
|
18
18
|
//#region src/prepareIntlayer.ts
|
package/dist/esm/scan/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { byteLength, extractAnchors, extractHreflangs, extractHtmlDir, extractHtmlLang, extractMetaDescription, extractOgImage, extractScriptUrls, extractTitle, extractVisibleTextStrings, hasCanonical } from "./parseHtml.mjs";
|
|
2
1
|
import { mutateScore, scoreRecord, toScorePercent } from "./calculateScore.mjs";
|
|
2
|
+
import { byteLength, extractAnchors, extractHreflangs, extractHtmlDir, extractHtmlLang, extractMetaDescription, extractOgImage, extractScriptUrls, extractTitle, extractVisibleTextStrings, hasCanonical } from "./parseHtml.mjs";
|
|
3
3
|
import { analyzeBundleContent } from "./analyzeBundleContent.mjs";
|
|
4
4
|
import { checkBundleContent, checkCanonical, checkHtmlAttributes, checkLinguisticStructure, checkRobots, checkSitemap, checkUrlStructure, formatSize } from "./checks.mjs";
|
|
5
5
|
import { scanWebsite } from "./scanWebsite.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { byteLength, extractAnchors, extractScriptUrls } from "./parseHtml.mjs";
|
|
2
1
|
import { mutateScore, toScorePercent } from "./calculateScore.mjs";
|
|
2
|
+
import { byteLength, extractAnchors, extractScriptUrls } from "./parseHtml.mjs";
|
|
3
3
|
import { checkBundleContent, checkCanonical, checkHtmlAttributes, checkLinguisticStructure, checkRobots, checkSitemap, checkUrlStructure } from "./checks.mjs";
|
|
4
4
|
import { GREY, GREY_LIGHT } from "@intlayer/config/colors";
|
|
5
5
|
import { colorize, logger } from "@intlayer/config/logger";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { writeFileIfChanged } from "../writeFileIfChanged.mjs";
|
|
2
2
|
import { extractKeyAndLocaleFromPath } from "./extractKeyAndLocaleFromPath.mjs";
|
|
3
3
|
import { buildFilePathPatternContext } from "./filePathPatternHelpers.mjs";
|
|
4
|
-
import { mkdir, readFile } from "node:fs/promises";
|
|
5
4
|
import { dirname, isAbsolute, resolve } from "node:path";
|
|
6
5
|
import { parseFilePathPattern } from "@intlayer/config/utils";
|
|
7
6
|
import fg from "fast-glob";
|
|
7
|
+
import { mkdir, readFile } from "node:fs/promises";
|
|
8
8
|
|
|
9
9
|
//#region src/syncPluginKit/createFileAdapter.ts
|
|
10
10
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createSyncPlugin } from "./createSyncPlugin.mjs";
|
|
2
1
|
import { extractKeyAndLocaleFromPath } from "./extractKeyAndLocaleFromPath.mjs";
|
|
3
2
|
import { buildFilePathPatternContext } from "./filePathPatternHelpers.mjs";
|
|
4
3
|
import { createFileAdapter, createFileReader } from "./createFileAdapter.mjs";
|
|
4
|
+
import { createSyncPlugin } from "./createSyncPlugin.mjs";
|
|
5
5
|
|
|
6
6
|
export { buildFilePathPatternContext, createFileAdapter, createFileReader, createSyncPlugin, extractKeyAndLocaleFromPath };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isAbsolute, relative, resolve, sep } from "node:path";
|
|
2
|
-
import { normalizePath } from "@intlayer/config/utils";
|
|
3
2
|
import { TRAVERSE_PATTERN } from "@intlayer/config/defaultValues";
|
|
3
|
+
import { normalizePath } from "@intlayer/config/utils";
|
|
4
4
|
import fg from "fast-glob";
|
|
5
5
|
|
|
6
6
|
//#region src/utils/buildComponentFilesList.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { rmSync } from "node:fs";
|
|
2
|
-
import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
3
1
|
import { dirname, join } from "node:path";
|
|
4
2
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
5
3
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
4
|
+
import { rmSync } from "node:fs";
|
|
5
|
+
import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
6
6
|
|
|
7
7
|
//#region src/utils/contentWatcherLock.ts
|
|
8
8
|
/**
|
package/dist/esm/utils/index.mjs
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { Queue, pLimit } from "./pLimit.mjs";
|
|
2
|
-
import { parallelize } from "./parallelize.mjs";
|
|
3
|
-
import { getPathHash } from "./getPathHash.mjs";
|
|
4
|
-
import { formatLocale, formatPath } from "./formatter.mjs";
|
|
5
1
|
import { autoDecorateContent } from "./autoDecorateContent.mjs";
|
|
6
2
|
import { buildComponentFilesList } from "./buildComponentFilesList.mjs";
|
|
7
3
|
import { chunkArray } from "./chunkArray.mjs";
|
|
@@ -9,9 +5,13 @@ import { splitTextByLines } from "./splitTextByLine.mjs";
|
|
|
9
5
|
import { getChunk } from "./getChunk.mjs";
|
|
10
6
|
import { assembleJSON, chunkJSON, reconstructFromSingleChunk } from "./chunkJSON.mjs";
|
|
11
7
|
import { CLI_CONTENT_WATCHER_ENV_VAR, acquireContentWatcherLock, claimCliContentWatcher, getCliContentWatcherLabel, getContentWatcherLockFilePath, getContentWatcherOwner, reportRedundantContentWatcher } from "./contentWatcherLock.mjs";
|
|
8
|
+
import { formatLocale, formatPath } from "./formatter.mjs";
|
|
12
9
|
import { getContentExtension } from "./getContentExtension.mjs";
|
|
13
10
|
import { getExtensionFromFormat, getFormatFromExtension } from "./getFormatFromExtension.mjs";
|
|
11
|
+
import { getPathHash } from "./getPathHash.mjs";
|
|
14
12
|
import { mergeChunks } from "./mergeChunks.mjs";
|
|
13
|
+
import { Queue, pLimit } from "./pLimit.mjs";
|
|
14
|
+
import { parallelize } from "./parallelize.mjs";
|
|
15
15
|
import { getGlobalLimiter, getTaskLimiter, parallelizeGlobal } from "./parallelizeGlobal.mjs";
|
|
16
16
|
import { parseContentDeclarationFileName } from "./parseContentDeclarationFileName.mjs";
|
|
17
17
|
import { excludeObjectFormat, reduceObjectFormat } from "./reduceObjectFormat.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { dirname } from "node:path";
|
|
1
2
|
import { rmSync } from "node:fs";
|
|
2
3
|
import { mkdir, readFile, rmdir, stat, unlink, writeFile } from "node:fs/promises";
|
|
3
|
-
import { dirname } from "node:path";
|
|
4
4
|
import packageJson from "@intlayer/core/package.json" with { type: "json" };
|
|
5
5
|
|
|
6
6
|
//#region src/utils/runOnce.ts
|
package/dist/esm/watcher.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { formatPath } from "./utils/formatter.mjs";
|
|
2
2
|
import { getFormatFromExtension } from "./utils/getFormatFromExtension.mjs";
|
|
3
3
|
import { parseContentDeclarationFileName } from "./utils/parseContentDeclarationFileName.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { prepareIntlayer } from "./prepareIntlayer.mjs";
|
|
5
|
+
import { writeContentDeclaration } from "./writeContentDeclaration/writeContentDeclaration.mjs";
|
|
5
6
|
import { handleContentDeclarationFileChange } from "./handleContentDeclarationFileChange.mjs";
|
|
7
|
+
import { handleAdditionalContentDeclarationFile } from "./handleAdditionalContentDeclarationFile.mjs";
|
|
6
8
|
import { handleContentDeclarationFileMoved } from "./handleContentDeclarationFileMoved.mjs";
|
|
7
9
|
import { handleUnlinkedContentDeclarationFile } from "./handleUnlinkedContentDeclarationFile.mjs";
|
|
8
|
-
import { prepareIntlayer } from "./prepareIntlayer.mjs";
|
|
9
|
-
import { writeContentDeclaration } from "./writeContentDeclaration/writeContentDeclaration.mjs";
|
|
10
|
-
import { existsSync, watch as watch$1 } from "node:fs";
|
|
11
|
-
import { readFile } from "node:fs/promises";
|
|
12
10
|
import { basename, dirname, extname, resolve } from "node:path";
|
|
13
11
|
import * as ANSIColor from "@intlayer/config/colors";
|
|
14
|
-
import { transpileTSToCJS } from "@intlayer/config/file";
|
|
15
12
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
16
13
|
import { getConfiguration, getConfigurationAndFilePath } from "@intlayer/config/node";
|
|
17
14
|
import { clearAllCache, clearDiskCacheMemory, clearModuleCache, normalizePath } from "@intlayer/config/utils";
|
|
15
|
+
import { existsSync, watch as watch$1 } from "node:fs";
|
|
16
|
+
import { readFile } from "node:fs/promises";
|
|
17
|
+
import { transpileTSToCJS } from "@intlayer/config/file";
|
|
18
18
|
|
|
19
19
|
//#region src/watcher.ts
|
|
20
20
|
const pendingUnlinks = /* @__PURE__ */ new Map();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { writeFileIfChanged } from "../writeFileIfChanged.mjs";
|
|
2
2
|
import { generateConfigurationContent } from "./generateConfigurationContent.mjs";
|
|
3
|
-
import { mkdir, readFile } from "node:fs/promises";
|
|
4
3
|
import { join } from "node:path";
|
|
4
|
+
import { mkdir, readFile } from "node:fs/promises";
|
|
5
5
|
|
|
6
6
|
//#region src/writeConfiguration/index.ts
|
|
7
7
|
const isCachedConfigurationUpToDate = async (configuration) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
2
1
|
import { dirname, join } from "node:path";
|
|
3
2
|
import { colorizePath, x } from "@intlayer/config/logger";
|
|
4
|
-
import { deepTransformNode } from "@intlayer/core/interpreter";
|
|
5
3
|
import * as NodeTypes from "@intlayer/types/nodeType";
|
|
4
|
+
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
5
|
+
import { deepTransformNode } from "@intlayer/core/interpreter";
|
|
6
6
|
|
|
7
7
|
//#region src/writeContentDeclaration/processContentDeclarationContent.ts
|
|
8
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { babelTsParser } from "../utils/babelParser.mjs";
|
|
2
|
-
import { getNodeType } from "@intlayer/core/dictionaryManipulator";
|
|
3
2
|
import * as NodeTypes from "@intlayer/types/nodeType";
|
|
3
|
+
import { getNodeType } from "@intlayer/core/dictionaryManipulator";
|
|
4
4
|
import * as recast from "recast";
|
|
5
5
|
|
|
6
6
|
//#region src/writeContentDeclaration/transformJSFile.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { readDictionariesFromDisk } from "../utils/readDictionariesFromDisk.mjs";
|
|
2
1
|
import { getFormatFromExtension } from "../utils/getFormatFromExtension.mjs";
|
|
3
2
|
import { detectFormatCommand } from "../detectFormatCommand.mjs";
|
|
3
|
+
import { readDictionariesFromDisk } from "../utils/readDictionariesFromDisk.mjs";
|
|
4
4
|
import { processContentDeclarationContent } from "./processContentDeclarationContent.mjs";
|
|
5
5
|
import { transformJSONFile } from "./transformJSONFile.mjs";
|
|
6
6
|
import { writeJSFile } from "./writeJSFile.mjs";
|
|
7
7
|
import { writeMarkdownFile } from "./writeMarkdownFile.mjs";
|
|
8
8
|
import { writeYamlFile } from "./writeYamlFile.mjs";
|
|
9
|
-
import { existsSync } from "node:fs";
|
|
10
|
-
import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
11
9
|
import { basename, dirname, extname, join, resolve } from "node:path";
|
|
12
10
|
import { COMPILER_NO_METADATA } from "@intlayer/config/defaultValues";
|
|
13
|
-
import {
|
|
11
|
+
import { existsSync } from "node:fs";
|
|
12
|
+
import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
14
13
|
import { execSync } from "node:child_process";
|
|
14
|
+
import { getFilteredLocalesDictionary, getPerLocaleDictionary } from "@intlayer/core/plugins";
|
|
15
15
|
import { isDeepStrictEqual } from "node:util";
|
|
16
16
|
|
|
17
17
|
//#region src/writeContentDeclaration/writeContentDeclaration.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { getFormatFromExtension } from "../utils/getFormatFromExtension.mjs";
|
|
2
|
-
import { transformJSFile } from "./transformJSFile.mjs";
|
|
3
2
|
import { detectFormatCommand } from "../detectFormatCommand.mjs";
|
|
3
|
+
import { transformJSFile } from "./transformJSFile.mjs";
|
|
4
4
|
import { getContentDeclarationFileTemplate } from "../getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs";
|
|
5
|
-
import { existsSync } from "node:fs";
|
|
6
|
-
import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
7
5
|
import { basename, extname, join } from "node:path";
|
|
8
6
|
import { getAppLogger, logger } from "@intlayer/config/logger";
|
|
7
|
+
import { existsSync } from "node:fs";
|
|
8
|
+
import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
9
9
|
import { execSync } from "node:child_process";
|
|
10
10
|
|
|
11
11
|
//#region src/writeContentDeclaration/writeJSFile.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { detectFormatCommand } from "../detectFormatCommand.mjs";
|
|
2
|
-
import { mkdir, rename, rm, writeFile } from "node:fs/promises";
|
|
3
2
|
import { basename, dirname, join } from "node:path";
|
|
4
3
|
import { MARKDOWN } from "@intlayer/types/nodeType";
|
|
4
|
+
import { mkdir, rename, rm, writeFile } from "node:fs/promises";
|
|
5
5
|
import { execSync } from "node:child_process";
|
|
6
6
|
|
|
7
7
|
//#region src/writeContentDeclaration/writeMarkdownFile.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { detectFormatCommand } from "../detectFormatCommand.mjs";
|
|
2
|
-
import { mkdir, rename, rm, writeFile } from "node:fs/promises";
|
|
3
2
|
import { basename, dirname, join } from "node:path";
|
|
3
|
+
import { mkdir, rename, rm, writeFile } from "node:fs/promises";
|
|
4
4
|
import { execSync } from "node:child_process";
|
|
5
5
|
import { stringifyYaml } from "@intlayer/core/utils";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { basename, dirname, join } from "node:path";
|
|
1
2
|
import { rmSync } from "node:fs";
|
|
2
3
|
import { chmod, mkdir, readFile, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
3
|
-
import { basename, dirname, join } from "node:path";
|
|
4
4
|
import { randomBytes } from "node:crypto";
|
|
5
5
|
|
|
6
6
|
//#region src/writeFileIfChanged.ts
|
package/dist/types/cli.d.ts
CHANGED
|
@@ -7,12 +7,14 @@ import { writeJSFile } from "./writeContentDeclaration/writeJSFile.js";
|
|
|
7
7
|
import "./writeContentDeclaration/index.js";
|
|
8
8
|
import { detectFormatCommand } from "./detectFormatCommand.js";
|
|
9
9
|
import { getContentDeclarationFileTemplate } from "./getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.js";
|
|
10
|
-
import { COMPAT_I18N_LIBRARIES, CompatI18nLibrary, PackageManager, detectCompatI18nLibraries, detectPackageManager, installPackages } from "./init/utils/packageManager.js";
|
|
10
|
+
import { COMPAT_I18N_LIBRARIES, CompatI18nLibrary, PackageManager, detectCompatI18nLibraries, detectPackageManager, hasLintTooling, installPackages } from "./init/utils/packageManager.js";
|
|
11
11
|
import { RoutingMode } from "./init/utils/configManipulation.js";
|
|
12
12
|
import { CmsCredentials, enableEditorInConfig, setupCmsCredentials, writeCmsCredentialsToEnv } from "./init/cms.js";
|
|
13
|
+
import { DocumentationRouter, DocumentationRouterType, getDocumentationUrl } from "./init/documentationRouter.js";
|
|
13
14
|
import { NEXT_INTLAYER_BABEL_CONFIG_CONTENT } from "./init/utils/nextCompilerBabel.js";
|
|
15
|
+
import { hasUrlRoutingFramework } from "./init/utils/urlRoutingFramework.js";
|
|
14
16
|
import "./init/utils/index.js";
|
|
15
|
-
import { ContentStrategy, InitOptions, getDefaultApplicationURL, initIntlayer } from "./init/index.js";
|
|
17
|
+
import { ContentStrategy, InitOptions, getDefaultApplicationURL, initIntlayer, logInitSuccessMessage } from "./init/index.js";
|
|
16
18
|
import { UpgradeIntlayerPackagesOptions, UpgradeIntlayerPackagesResult, upgradeIntlayerPackages } from "./init/upgradeIntlayerPackages.js";
|
|
17
19
|
import { installLSP } from "./installLSP.js";
|
|
18
20
|
import { PLATFORMS, PLATFORMS_METADATA, Platform, PlatformMetadata, SKILLS, SKILLS_METADATA, Skill, getInitialSkills, installSkills } from "./installSkills/index.js";
|
|
@@ -21,4 +23,4 @@ import { listDictionaries, listDictionariesWithStats } from "./listDictionariesP
|
|
|
21
23
|
import { DiffMode, ListGitFilesOptions, ListGitLinesOptions, listGitFiles, listGitLines } from "./listGitFiles.js";
|
|
22
24
|
import { ListProjectsOptions, getGitRootDir, listProjects } from "./listProjects.js";
|
|
23
25
|
import { logConfigDetails } from "./logConfigDetails.js";
|
|
24
|
-
export { COMPAT_I18N_LIBRARIES, type CmsCredentials, type CompatI18nLibrary, ContentStrategy, DictionaryStatus, DiffMode, InitOptions, ListGitFilesOptions, ListGitLinesOptions, ListProjectsOptions, MCPTransport, NEXT_INTLAYER_BABEL_CONFIG_CONTENT, PLATFORMS, PLATFORMS_METADATA, type PackageManager, Platform, PlatformMetadata, type RoutingMode, SKILLS, SKILLS_METADATA, Skill, UpgradeIntlayerPackagesOptions, UpgradeIntlayerPackagesResult, detectCompatI18nLibraries, detectExportedComponentName, detectFormatCommand, detectPackageManager, enableEditorInConfig, getContentDeclarationFileTemplate, getDefaultApplicationURL, getGitRootDir, getInitialSkills, initIntlayer, installLSP, installMCP, installPackages, installSkills, listDictionaries, listDictionariesWithStats, listGitFiles, listGitLines, listProjects, logConfigDetails, prepareIntlayer, setupCmsCredentials, transformJSFile, upgradeIntlayerPackages, writeCmsCredentialsToEnv, writeContentDeclaration, writeJSFile };
|
|
26
|
+
export { COMPAT_I18N_LIBRARIES, type CmsCredentials, type CompatI18nLibrary, ContentStrategy, DictionaryStatus, DiffMode, DocumentationRouter, type DocumentationRouterType, InitOptions, ListGitFilesOptions, ListGitLinesOptions, ListProjectsOptions, MCPTransport, NEXT_INTLAYER_BABEL_CONFIG_CONTENT, PLATFORMS, PLATFORMS_METADATA, type PackageManager, Platform, PlatformMetadata, type RoutingMode, SKILLS, SKILLS_METADATA, Skill, UpgradeIntlayerPackagesOptions, UpgradeIntlayerPackagesResult, detectCompatI18nLibraries, detectExportedComponentName, detectFormatCommand, detectPackageManager, enableEditorInConfig, getContentDeclarationFileTemplate, getDefaultApplicationURL, getDocumentationUrl, getGitRootDir, getInitialSkills, hasLintTooling, hasUrlRoutingFramework, initIntlayer, installLSP, installMCP, installPackages, installSkills, listDictionaries, listDictionariesWithStats, listGitFiles, listGitLines, listProjects, logConfigDetails, logInitSuccessMessage, prepareIntlayer, setupCmsCredentials, transformJSFile, upgradeIntlayerPackages, writeCmsCredentialsToEnv, writeContentDeclaration, writeJSFile };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviewReport.d.ts","names":[],"sources":["../../../src/docReview/reviewReport.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"reviewReport.d.ts","names":[],"sources":["../../../src/docReview/reviewReport.ts"],"mappings":";;;;;;;;;YAgBY;;YAGA;EACV;EACA;;;;;;;;;YAUU;;EAEV,QAAQ;;EAER,gBAAgB;;EAEhB,kBAAkB;;EAElB;;EAEA;;YAGU;;EAEV;;EAEA;;EAEA;;EAEA;;YAGU;;EAEV,QAAQ;;EAER,SAAS;;YAGC;;EAEV;;EAEA;;;;;;;;;EASA;;;;;;;;;;;;;qBAcW,sBAAiB,UAAA,YAAA,gBAI3B,2BAAyB;;;;;;;;;;;qBA6If,qBAAkB,QACrB,cAAY;EACR;EAAoB"}
|
|
@@ -25,7 +25,7 @@ export declare const formatDictionaryOutput: (dictionary: Dictionary, format: Di
|
|
|
25
25
|
priority?: number;
|
|
26
26
|
importMode?: import("@intlayer/types").ImportMode;
|
|
27
27
|
location?: import("@intlayer/types").DictionaryLocation;
|
|
28
|
-
schema
|
|
28
|
+
schema?: import("@intlayer/types").SchemaKeys;
|
|
29
29
|
format: string;
|
|
30
30
|
content: import("@intlayer/core/messageFormat").JsonValue;
|
|
31
31
|
} | Dictionary;
|
|
@@ -52,7 +52,7 @@ export declare const formatDictionariesOutput: (dictionaries: Dictionary[], form
|
|
|
52
52
|
priority?: number;
|
|
53
53
|
importMode?: import("@intlayer/types").ImportMode;
|
|
54
54
|
location?: import("@intlayer/types").DictionaryLocation;
|
|
55
|
-
schema
|
|
55
|
+
schema?: import("@intlayer/types").SchemaKeys;
|
|
56
56
|
format: string;
|
|
57
57
|
content: import("@intlayer/core/messageFormat").JsonValue;
|
|
58
58
|
} | Dictionary)[];
|
package/dist/types/init/cms.d.ts
CHANGED
|
@@ -36,6 +36,17 @@ export declare const enableEditorInConfig: (rootDir: string) => Promise<string |
|
|
|
36
36
|
* config file that was updated, or `undefined` when none was found.
|
|
37
37
|
*/
|
|
38
38
|
export declare const setRoutingModeInConfig: (rootDir: string, mode: RoutingMode) => Promise<string | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Sets `routing.enableProxy` in the project's Intlayer configuration file.
|
|
41
|
+
* Returns the config file that was updated, or `undefined` when none was found.
|
|
42
|
+
*/
|
|
43
|
+
export declare const setEnableProxyInConfig: (rootDir: string, enableProxy: boolean) => Promise<string | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* Reduces `routing` in the project's Intlayer configuration file to its
|
|
46
|
+
* `storage` entry. Returns the config file that was updated, or `undefined`
|
|
47
|
+
* when none was found.
|
|
48
|
+
*/
|
|
49
|
+
export declare const setRoutingStorageOnlyInConfig: (rootDir: string) => Promise<string | undefined>;
|
|
39
50
|
/**
|
|
40
51
|
* Sets `compiler.output` in the project's Intlayer configuration file to the
|
|
41
52
|
* given `{{variable}}` path template. Returns the config file that was updated,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cms.d.ts","names":[],"sources":["../../../src/init/cms.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"cms.d.ts","names":[],"sources":["../../../src/init/cms.ts"],"mappings":";;;;;;qBAiBa;;YAgBD;EACV;EACA;;;;;;;qBAwBW,cAAW,oBAA4B;;;;;;;qBA0CvC,2BAAwB,mBACpB,UAAA,gBACa,mBAC3B;;;;;;;;qBAmCU,uBAAoB,oBAE9B;;;;;qBAwCU,yBAAsB,iBAClB,MACT,gBACL;;;;;qBAuBU,yBAAsB,iBAClB,yBAEd;;;;;;qBA4BU,gCAA6B,oBAEvC;;;;;;qBA2BU,4BAAyB,iBACrB,2BAEd;;;;;;qBA4BU,sBAAmB,iBACf,aACF,mBACZ"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
//#region src/init/documentationRouter.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Documentation URL Constants
|
|
4
|
+
*/
|
|
5
|
+
export declare const DocumentationRouter: {
|
|
6
|
+
NextJS: string;
|
|
7
|
+
NextJS_16: string;
|
|
8
|
+
NextJS_15: string;
|
|
9
|
+
NextJS_14: string;
|
|
10
|
+
NextJS_PageRouter: string;
|
|
11
|
+
CRA: string;
|
|
12
|
+
Astro: string;
|
|
13
|
+
Astro_Lit: string;
|
|
14
|
+
Astro_Preact: string;
|
|
15
|
+
Astro_React: string;
|
|
16
|
+
Astro_Solid: string;
|
|
17
|
+
Astro_Svelte: string;
|
|
18
|
+
Astro_Vue: string;
|
|
19
|
+
ViteAndReact: string;
|
|
20
|
+
ViteAndReact_ReactRouterV7: string;
|
|
21
|
+
ViteAndVue: string;
|
|
22
|
+
ViteAndSolid: string;
|
|
23
|
+
ViteAndSvelte: string;
|
|
24
|
+
ViteAndPreact: string;
|
|
25
|
+
ViteAndLit: string;
|
|
26
|
+
ViteAndVanilla: string;
|
|
27
|
+
Vanilla: string;
|
|
28
|
+
TanStackRouter: string;
|
|
29
|
+
TanStackRouterAndSolid: string;
|
|
30
|
+
SolidStart: string;
|
|
31
|
+
Analog: string;
|
|
32
|
+
Remix: string;
|
|
33
|
+
NuxtAndVue: string;
|
|
34
|
+
Angular: string;
|
|
35
|
+
Angular_19: string;
|
|
36
|
+
SvelteKit: string;
|
|
37
|
+
ReactNativeAndExpo: string;
|
|
38
|
+
Lynx: string;
|
|
39
|
+
HTMX: string;
|
|
40
|
+
Storybook: string;
|
|
41
|
+
Express: string;
|
|
42
|
+
NestJS: string;
|
|
43
|
+
Fastify: string;
|
|
44
|
+
Hono: string;
|
|
45
|
+
AdonisJS: string;
|
|
46
|
+
Elysia: string;
|
|
47
|
+
Default: string;
|
|
48
|
+
LSP: string;
|
|
49
|
+
ESLint: string;
|
|
50
|
+
NextIntl: string;
|
|
51
|
+
NextI18Next: string;
|
|
52
|
+
ReactI18Next: string;
|
|
53
|
+
ReactIntl: string;
|
|
54
|
+
VueI18n: string;
|
|
55
|
+
NuxtI18n: string;
|
|
56
|
+
I18next: string;
|
|
57
|
+
};
|
|
58
|
+
export type DocumentationRouterType = typeof DocumentationRouter;
|
|
59
|
+
/**
|
|
60
|
+
* Helper: Detects the environment and returns the doc URL
|
|
61
|
+
*/
|
|
62
|
+
export declare const getDocumentationUrl: (packageJson: any) => string;
|
|
63
|
+
//#endregion
|
|
64
|
+
//# sourceMappingURL=documentationRouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documentationRouter.d.ts","names":[],"sources":["../../../src/init/documentationRouter.ts"],"mappings":";;;;qBAGa;EACX;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EAGA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;;YAGU,iCAAiC;;;;qBAKhC,sBAAmB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FrameworkAdapter } from "../types.js";
|
|
2
|
+
//#region src/init/frameworkSetup/backend/index.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* NestJS on the Express platform. Checked before Express: a Nest app is
|
|
5
|
+
* created by `NestFactory`, not `express()`. Nest on Fastify is left to the
|
|
6
|
+
* guide (its adapter is registered through the Fastify instance).
|
|
7
|
+
*/
|
|
8
|
+
export declare const nestJsAdapter: FrameworkAdapter;
|
|
9
|
+
export declare const expressAdapter: FrameworkAdapter;
|
|
10
|
+
export declare const fastifyAdapter: FrameworkAdapter;
|
|
11
|
+
export declare const honoAdapter: FrameworkAdapter;
|
|
12
|
+
export declare const elysiaAdapter: FrameworkAdapter;
|
|
13
|
+
/** Backend adapters, in detection order. */
|
|
14
|
+
export declare const backendAdapters: FrameworkAdapter[];
|
|
15
|
+
//#endregion
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/backend/index.ts"],"mappings":";;;;;;;qBAiJa,eAAa;qBAUb,gBAAc;qBASd,gBAAc;qBASd,aAAW;qBASX,eAAa;;qBAUb,iBAAiB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region src/init/frameworkSetup/backend/transforms.d.ts
|
|
2
|
+
/** Result of a backend transform. `code` is unchanged for any non-`registered` status. */
|
|
3
|
+
export type BackendTransformResult = {
|
|
4
|
+
code: string;
|
|
5
|
+
status: 'registered' | 'already' | 'skipped';
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Registers `express-intlayer` right after `const app = express()`:
|
|
9
|
+
* `app.use(intlayer());`.
|
|
10
|
+
*/
|
|
11
|
+
export declare const registerExpressMiddleware: (code: string) => BackendTransformResult;
|
|
12
|
+
/**
|
|
13
|
+
* Registers `fastify-intlayer` right after `const app = Fastify()`:
|
|
14
|
+
* `app.register(intlayer);`. Not awaited, so it also works in CommonJS and
|
|
15
|
+
* non-async scopes — Fastify queues plugins until `ready`/`listen`.
|
|
16
|
+
*/
|
|
17
|
+
export declare const registerFastifyPlugin: (code: string) => BackendTransformResult;
|
|
18
|
+
/**
|
|
19
|
+
* Registers `hono-intlayer` right after `const app = new Hono()`:
|
|
20
|
+
* `app.use("*", intlayer());`. A chained declaration
|
|
21
|
+
* (`new Hono().get(…)`) is skipped: its routes would be registered before the
|
|
22
|
+
* middleware, which Hono runs in registration order.
|
|
23
|
+
*/
|
|
24
|
+
export declare const registerHonoMiddleware: (code: string) => BackendTransformResult;
|
|
25
|
+
/**
|
|
26
|
+
* Registers `express-intlayer` on a NestJS (Express platform) app right after
|
|
27
|
+
* `const app = await NestFactory.create(…)`: `app.use(intlayer());`.
|
|
28
|
+
*/
|
|
29
|
+
export declare const registerNestJsMiddleware: (code: string) => BackendTransformResult;
|
|
30
|
+
/**
|
|
31
|
+
* Registers `elysia-intlayer` directly on the app constructor:
|
|
32
|
+
* `new Elysia()` → `new Elysia().use(intlayer())`. Works for chained
|
|
33
|
+
* declarations too, and keeps the plugin ahead of every route.
|
|
34
|
+
*/
|
|
35
|
+
export declare const registerElysiaPlugin: (code: string) => BackendTransformResult;
|
|
36
|
+
//#endregion
|
|
37
|
+
//# sourceMappingURL=transforms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/backend/transforms.ts"],"mappings":";;YAoBY;EACV;EACA;;;;;;qBAoMW,4BAAyB,iBAEnC;;;;;;qBAoBU,wBAAqB,iBAAmB;;;;;;;qBAsBxC,yBAAsB,iBAAmB;;;;;qBAmBzC,2BAAwB,iBAElC;;;;;;qBAqBU,uBAAoB,iBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/init/frameworkSetup/index.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/init/frameworkSetup/index.ts"],"mappings":";;;;;;;;qBAyBa,iBAAc,SAChB,0BACR"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FrameworkSetupContext } from "./types.js";
|
|
2
|
+
//#region src/init/frameworkSetup/localeRouting.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Whether the locale is carried by a URL path segment (`/fr/about`), which the
|
|
5
|
+
* framework router must declare (`[locale]`, `{-$locale}`, `$locale`…). Only the
|
|
6
|
+
* prefix routing modes do, and only while the proxy is enabled: `no-prefix` and
|
|
7
|
+
* `search-params` resolve the locale from storage/headers/query instead.
|
|
8
|
+
*/
|
|
9
|
+
export declare const usesLocalePathSegment: ({ routingMode, enableProxy }: Pick<FrameworkSetupContext, 'routingMode' | 'enableProxy'>) => boolean;
|
|
10
|
+
//#endregion
|
|
11
|
+
//# sourceMappingURL=localeRouting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localeRouting.d.ts","names":[],"sources":["../../../../src/init/frameworkSetup/localeRouting.ts"],"mappings":";;;;;;;;qBAQa,0BAAqB,aAAA,eAG/B,KAAK"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FrameworkAdapter } from "../types.js";
|
|
2
2
|
//#region src/init/frameworkSetup/nextAppRouter/index.d.ts
|
|
3
3
|
/**
|
|
4
|
-
* Next.js App Router adapter. Scaffolds the locale proxy/middleware
|
|
5
|
-
* the app into a `[locale]` segment
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* covers them.
|
|
4
|
+
* Next.js App Router adapter. Scaffolds the locale proxy/middleware (when the
|
|
5
|
+
* proxy is enabled), restructures the app into a `[locale]` segment (prefix
|
|
6
|
+
* routing modes only), and wraps the layout with the unified Intlayer provider
|
|
7
|
+
* — all idempotently and without overwriting recognizable user code. Pages are
|
|
8
|
+
* never wrapped: `IntlayerProvider` in the layout covers them.
|
|
9
9
|
*/
|
|
10
10
|
export declare const nextAppRouterAdapter: FrameworkAdapter;
|
|
11
11
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/index.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/index.ts"],"mappings":";;;;;;;;;qBAiLa,sBAAsB"}
|
|
@@ -26,5 +26,17 @@ export declare const LOCALE_LAYOUT_TEMPLATE_JS = "import { IntlayerProvider } fr
|
|
|
26
26
|
*/
|
|
27
27
|
export declare const LOCALE_PAGE_TEMPLATE_TS = "import { type NextPageIntlayer } from \"next-intlayer\";\n\nconst Page: NextPageIntlayer = async ({ params }) => {\n const { locale } = await params;\n\n return (\n <main>\n <h1>{locale}</h1>\n <p>Get started by editing this page.</p>\n </main>\n );\n};\n\nexport default Page;\n";
|
|
28
28
|
export declare const LOCALE_PAGE_TEMPLATE_JS = "const Page = async ({ params }) => {\n const { locale } = await params;\n\n return (\n <main>\n <h1>{locale}</h1>\n <p>Get started by editing this page.</p>\n </main>\n );\n};\n\nexport default Page;\n";
|
|
29
|
+
/**
|
|
30
|
+
* Root layout (`app/layout.tsx`) for routing modes without a locale path
|
|
31
|
+
* segment (`no-prefix`, `search-params`, or no proxy at all). Owns `<html>` and
|
|
32
|
+
* resolves the locale from the request (cookie / header) via `getLocale()`.
|
|
33
|
+
*/
|
|
34
|
+
export declare const UNPREFIXED_ROOT_LAYOUT_TEMPLATE_TS = "import type { PropsWithChildren } from \"react\";\nimport { getHTMLTextDir } from \"intlayer\";\nimport { getLocale, IntlayerProvider } from \"next-intlayer/server\";\n\nconst RootLayout = async ({ children }: PropsWithChildren) => {\n const locale = await getLocale();\n\n return (\n <html lang={locale} dir={getHTMLTextDir(locale)}>\n <body>\n <IntlayerProvider locale={locale}>{children}</IntlayerProvider>\n </body>\n </html>\n );\n};\n\nexport default RootLayout;\n";
|
|
35
|
+
export declare const UNPREFIXED_ROOT_LAYOUT_TEMPLATE_JS = "import { getHTMLTextDir } from \"intlayer\";\nimport { getLocale, IntlayerProvider } from \"next-intlayer/server\";\n\nconst RootLayout = async ({ children }) => {\n const locale = await getLocale();\n\n return (\n <html lang={locale} dir={getHTMLTextDir(locale)}>\n <body>\n <IntlayerProvider locale={locale}>{children}</IntlayerProvider>\n </body>\n </html>\n );\n};\n\nexport default RootLayout;\n";
|
|
36
|
+
/**
|
|
37
|
+
* Home page (`app/page.tsx`) for routing modes without a locale path segment.
|
|
38
|
+
* Identical for TypeScript and JavaScript projects.
|
|
39
|
+
*/
|
|
40
|
+
export declare const UNPREFIXED_PAGE_TEMPLATE = "const Page = () => (\n <main>\n <h1>Hello</h1>\n <p>Get started by editing this page.</p>\n </main>\n);\n\nexport default Page;\n";
|
|
29
41
|
//#endregion
|
|
30
42
|
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/templates.ts"],"mappings":";;;;;;;qBAOa;;qBASA;;qBASA;qBAOA;;;;;;;qBAWA;qBAqBA;;;;;;qBAyBA;qBAgBA"}
|
|
1
|
+
{"version":3,"file":"templates.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/templates.ts"],"mappings":";;;;;;;qBAOa;;qBASA;;qBASA;qBAOA;;;;;;;qBAWA;qBAqBA;;;;;;qBAyBA;qBAgBA;;;;;;qBAmBA;qBAmBA;;;;;qBAsBA"}
|
|
@@ -4,6 +4,15 @@ export type TransformResult = {
|
|
|
4
4
|
code: string;
|
|
5
5
|
status: 'wrapped' | 'already' | 'skipped-client' | 'skipped';
|
|
6
6
|
};
|
|
7
|
+
/** Options of {@link wrapLayoutWithProvider}. */
|
|
8
|
+
export type WrapLayoutOptions = {
|
|
9
|
+
/**
|
|
10
|
+
* Re-export `generateStaticParams` from `next-intlayer`. Only meaningful for a
|
|
11
|
+
* layout under a `[locale]` segment; a root layout of an unprefixed app has
|
|
12
|
+
* no locale param to pre-render. Default: `true`.
|
|
13
|
+
*/
|
|
14
|
+
exportStaticParams?: boolean;
|
|
15
|
+
};
|
|
7
16
|
/**
|
|
8
17
|
* Wraps the `{children}` of a Next.js App Router **layout** with the unified
|
|
9
18
|
* `IntlayerProvider`, deriving the locale via `getLocale()`. Safe and
|
|
@@ -15,6 +24,6 @@ export type TransformResult = {
|
|
|
15
24
|
* pages below the locale layout read locale/variant from it without wrapping
|
|
16
25
|
* themselves individually (see the removed `wrapPageWithProvider`).
|
|
17
26
|
*/
|
|
18
|
-
export declare const wrapLayoutWithProvider: (code: string) => TransformResult;
|
|
27
|
+
export declare const wrapLayoutWithProvider: (code: string, { exportStaticParams }?: WrapLayoutOptions) => TransformResult;
|
|
19
28
|
//#endregion
|
|
20
29
|
//# sourceMappingURL=transforms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/transforms.ts"],"mappings":";;YAWY;EACV;EACA;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/transforms.ts"],"mappings":";;YAWY;EACV;EACA;;;YA4KU;;;;;;EAMV;;;;;;;;;;;;;qBAcW,yBAAsB,gBACrB,uBACmB,sBAC9B"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { FrameworkAdapter } from "../types.js";
|
|
2
2
|
//#region src/init/frameworkSetup/tanstackStart/index.d.ts
|
|
3
3
|
/**
|
|
4
|
-
* TanStack Start adapter.
|
|
5
|
-
*
|
|
4
|
+
* TanStack Start adapter. For prefix routing modes, restructures the file-based
|
|
5
|
+
* routes under a `{-$locale}` / `$locale` segment and scaffolds the locale
|
|
6
|
+
* segment route; for the others, keeps routes in place. Wraps the root document with
|
|
6
7
|
* the Intlayer provider — all idempotently and without overwriting user code it
|
|
7
8
|
* cannot confidently transform.
|
|
8
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/index.ts"],"mappings":";;;;;;;;;qBAgIa,sBAAsB"}
|