UNPKG

kist

Version:

Package Pipeline Processor

35 lines (34 loc) 1.43 kB
import { Action } from "../../core/pipeline/Action.js"; import { ActionOptionsType } from "../../types/ActionOptionsType.js"; /** * StyleProcessingAction is a step action responsible for processing styles, * including compiling SCSS and applying PostCSS transformations. It supports * expanded and compressed output styles based on the provided configuration. */ export declare class StyleProcessingAction extends Action { /** * Executes the style processing action. * @param options - The options specific to style processing, including * input/output file paths and style format. * @returns A Promise that resolves when the styles are processed * successfully, or rejects with an error if the action fails. */ execute(options: ActionOptionsType): Promise<void>; /** * Processes the given CSS with PostCSS based on the provided style option. * @param css - The CSS string to process. * @param styleOption - The style option, either "expanded" or "compressed". * @returns Processed CSS string. */ private processPostCSS; /** * Ensures that the given directory exists, creating it if it does not. * @param dirPath - The path of the directory to check and create. */ private ensureDirectoryExists; /** * Provides a description of the action. * @returns A string description of the action. */ describe(): string; }