UNPKG

next-porto-cli

Version:

A cli for next.js to scaffold your application using porto architecture

48 lines (47 loc) 1.58 kB
import 'module-alias/register'; import { z } from 'zod'; declare const configObj: z.ZodObject<{ compilerOptions: z.ZodAny; include: z.ZodArray<z.ZodString, "many">; exclude: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { compilerOptions?: any; include: string[]; exclude: string[]; }, { compilerOptions?: any; include: string[]; exclude: string[]; }>; export declare type ConfigType = z.infer<typeof configObj>; /** * check for existing config json file on the project root * @param _projectPath path of the project directory * @returns boolean */ declare const checkConfigFile: (_projectPath: string) => Promise<string>; /** * Run config function for generating config file * @param _projectPath path of the project directory * @return void */ declare const generateConfig: (_projectPath: string) => Promise<void>; /** * Generate jsconfig.json config file * @param _projectPath path to the project directory * @return void */ declare const generateJsConfig: (_projectPath: string) => Promise<void>; /** * Generate tsconfig.json config file * @param _projectPath path to the project directory * @return void */ declare const generateTsConfig: (_projectPath: string) => Promise<void>; /** * Parse a json config file content into json object * @param _pathToJsonFile path to json config file * @returns any | undefined */ declare const parseConfigFile: (_pathToJsonFile: string) => Promise<ConfigType | undefined>; export { checkConfigFile, generateConfig, generateJsConfig, generateTsConfig, parseConfigFile, };