UNPKG

@atomist/atomist-sdm

Version:

Atomist SDM to deliver our own projects

23 lines (22 loc) 1.47 kB
import { GitProject, NoParameters, ProjectReview, ReviewComment } from "@atomist/automation-client"; import { CodeInspectionRegistration, ExecuteGoalResult, GoalInvocation, GoalProjectListenerRegistration } from "@atomist/sdm"; import { Builder } from "@atomist/sdm-pack-build"; export declare const IsJekyllProject: import("@atomist/sdm").PushTest; export declare function webNpmBuild(project: GitProject, goalInvocation: GoalInvocation): Promise<ExecuteGoalResult>; export declare const WebNpmBuildAfterCheckout: GoalProjectListenerRegistration; export declare function jekyllBuild(project: GitProject, goalInvocation: GoalInvocation): Promise<ExecuteGoalResult>; export declare const JekyllBuildAfterCheckout: GoalProjectListenerRegistration; export declare function webBuilder(sitePath: string): Builder; export declare function htmltestInspection(sitePath: string): CodeInspectionRegistration<ProjectReview, NoParameters>; /** * Convert the output of htmltest to proper ReviewComments. If any * part of the process fails, an empty array is returned. * * @param output string output from running `htmltest` that will be parsed and converted. * @return htmltest errors and warnings as ReviewComments */ export declare function mapHtmltestResultsToReviewComments(baseDir: string): Promise<ReviewComment[]>; /** * Testable unit of mapHtmltestResultsToReviewComments. */ export declare function htmltestLogToReviewComments(logContent: string): ReviewComment[];