UNPKG

@elsikora/setup-wizard

Version:

Setup Wizard - CLI scaffolding utility

27 lines (26 loc) 1.45 kB
import type { IFrameworkConfig } from "../../domain/interface/framework-config.interface"; import type { TPackageJsonScripts } from "../../domain/type/package-json-scripts.type"; /** * Service for generating package.json scripts based on project configuration. * Provides functionality to create appropriate lint, test, and build scripts * for different frameworks and project setups. */ export declare class PackageJsonScriptsGeneratorService { /** * Generates lint-related npm scripts based on detected frameworks. * Creates appropriate scripts for linting, fixing, watching, and type checking. * @param frameworks - Array of detected frameworks in the project * @param customPaths - Array of custom file paths to lint if no frameworks are detected * @returns Object containing generated npm scripts */ generateLintScripts(frameworks: Array<IFrameworkConfig>, customPaths: Array<string>): TPackageJsonScripts; /** * Adds framework-specific lint scripts based on detected frameworks. * Includes watch scripts for supported frameworks, TypeScript type checking, * and test linting where appropriate. * @param scripts - Base scripts object to add framework-specific scripts to * @param frameworks - Array of detected frameworks in the project * @returns Extended scripts object with framework-specific lint scripts */ private addFrameworkSpecificLintScripts; }