@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
55 lines (54 loc) • 1.82 kB
TypeScript
import { Config, LucidConfig } from "./types-CfF1T11a.js";
//#region src/libs/collection/helpers/prefix-generated-column-name.d.ts
/**
* Adds a prefix to generated columns names. Primarily used for custom field columns in generated tables.
*/
declare const prefixGeneratedColName: (name: string) => `_${string}`;
//#endregion
//#region src/libs/vite/services/get-paths.d.ts
type VitePaths = {
clientMount: string;
clientHtml: string;
publicDist: string;
tempDist: string;
clientDist: string;
clientDistHtml: string;
buildMetadata: string;
adminPackageJson: string;
corePackageJson: string;
cwdPackageJson: string;
};
/**
* Resolve all the required paths for the Vite build
*/
declare const getPaths: (config: Config, cwd?: string) => VitePaths;
//#endregion
//#region src/libs/adapter/strip-imports-plugin.d.ts
/**
* This plugin is used to strip any import that are not needed.
*/
declare const stripImportsPlugin: (idMatch: string, importsToRemove?: string[]) => {
name: string;
transform(code: string, id: string): string | null;
};
//#endregion
//#region src/libs/adapter/strip-adapter-export-plugin.d.ts
/**
* This plugin strips the adapter export and its import from the config file
*/
declare const stripAdapterExportPlugin: (adapterName: string) => {
name: string;
transform(code: string, id: string): string | null;
};
//#endregion
//#region src/libs/config/process-config.d.ts
/**
* Responsible for:
* - merging the default config with the config
* - initialising the plugins
* - validation & checks
*/
declare const processConfig: (config: LucidConfig, bypassCache?: boolean) => Promise<Config>;
//#endregion
export { getPaths as getVitePaths, prefixGeneratedColName, processConfig, stripAdapterExportPlugin, stripImportsPlugin };
//# sourceMappingURL=helpers.d.ts.map