Comparing version 1.6.4 to 1.6.5
@@ -0,8 +1,10 @@ | ||
export * from './SsgConfig.js'; | ||
export * from "./util/index.js"; | ||
export * from "./Logger.js"; | ||
export * from "./SsgContext.js"; | ||
export * from './OutputFunc.js'; | ||
export * from "./step/index.js"; | ||
export * from "./util/index.js"; | ||
export * from "./DefaultLogger.js"; | ||
export * from "./HtmlSsgContext.js"; | ||
export * from "./Logger.js"; | ||
export * from "./Ssg.js"; | ||
export * from "./SsgContext.js"; | ||
export * from "./SsgContextImpl.js"; |
@@ -0,8 +1,10 @@ | ||
export * from './SsgConfig.js'; | ||
export * from "./util/index.js"; | ||
export * from "./Logger.js"; | ||
export * from "./SsgContext.js"; | ||
export * from './OutputFunc.js'; | ||
export * from "./step/index.js"; | ||
export * from "./util/index.js"; | ||
export * from "./DefaultLogger.js"; | ||
export * from "./HtmlSsgContext.js"; | ||
export * from "./Logger.js"; | ||
export * from "./Ssg.js"; | ||
export * from "./SsgContext.js"; | ||
export * from "./SsgContextImpl.js"; |
@@ -1,7 +0,4 @@ | ||
import { SsgContext } from "./SsgContext.js"; | ||
import { SsgContext } from './SsgContext.js'; | ||
import { SsgStep } from './step/index.js'; | ||
import { SsgFile } from './util/index.js'; | ||
export type SsgConfig = { | ||
outDir: string; | ||
}; | ||
import { SsgConfig } from './SsgConfig'; | ||
/** | ||
@@ -13,3 +10,2 @@ * Result of a Ssg.start(). | ||
}; | ||
export type OutputFunc = (context: SsgContext, outputFile: SsgFile) => Promise<void>; | ||
/** | ||
@@ -16,0 +12,0 @@ * Static Site Generator |
@@ -1,21 +0,5 @@ | ||
import { SsgStep } from "../SsgStep.js"; | ||
import { SsgContext } from "../../SsgContext.js"; | ||
import { OutputFunc } from "../../Ssg.js"; | ||
import { ReplaceCommand } from './replace/index.js'; | ||
import { SsgFile } from '../../util/index.js'; | ||
export type ContentStepConfig<C extends SsgContext = SsgContext> = { | ||
/** | ||
* The glob roots of contents to process. | ||
*/ | ||
roots: string[]; | ||
/** | ||
* The replacements to process on contents. | ||
*/ | ||
replacements: ReplaceCommand<C>[]; | ||
/** | ||
* @param context | ||
* @return the file where to output. | ||
*/ | ||
getOutputFile(context: C): SsgFile; | ||
}; | ||
import { SsgStep } from '../SsgStep.js'; | ||
import { SsgContext } from '../../SsgContext.js'; | ||
import { ContentStepConfig } from './ContentStepConfig.js'; | ||
import { OutputFunc } from '../../OutputFunc'; | ||
export type ContentStepResult = { | ||
@@ -22,0 +6,0 @@ contentCount: number; |
@@ -0,4 +1,4 @@ | ||
import fs from 'fs'; | ||
import { promise as glob } from 'glob-promise'; | ||
import { HtmlSsgFile } from '../../util/index.js'; | ||
import fs from "fs"; | ||
import { promise as glob } from "glob-promise"; | ||
/** | ||
@@ -5,0 +5,0 @@ * A SsgStep that can perform replacements in files' contents. |
export * from "./replace/index.js"; | ||
export * from "./ContentStep.js"; | ||
export * from './ContentStepConfig.js'; |
export * from "./replace/index.js"; | ||
export * from "./ContentStep.js"; | ||
export * from './ContentStepConfig.js'; |
@@ -0,1 +1,2 @@ | ||
export * from "./ReplaceCommand.js"; | ||
export * from "./angular/index.js"; | ||
@@ -8,3 +9,2 @@ export * from "./htaccess/index.js"; | ||
export * from "./RegexReplacer.js"; | ||
export * from "./ReplaceCommand.js"; | ||
export * from "./ReplacerFactory.js"; |
@@ -0,1 +1,2 @@ | ||
export * from "./ReplaceCommand.js"; | ||
export * from "./angular/index.js"; | ||
@@ -8,3 +9,2 @@ export * from "./htaccess/index.js"; | ||
export * from "./RegexReplacer.js"; | ||
export * from "./ReplaceCommand.js"; | ||
export * from "./ReplacerFactory.js"; |
import { SsgStep } from './SsgStep.js'; | ||
import { SsgConfig } from '../Ssg.js'; | ||
import { SsgContext } from '../SsgContext.js'; | ||
import { IOptions } from 'glob'; | ||
import { SsgConfig } from '../SsgConfig'; | ||
export type CopyStepResult = { | ||
@@ -6,0 +6,0 @@ files: string[]; |
import { SsgStep } from "./SsgStep.js"; | ||
import { SsgConfig } from "../Ssg.js"; | ||
import { SsgContext } from "../SsgContext.js"; | ||
import { SsgConfig } from '../SsgConfig'; | ||
export interface DirectoryResult { | ||
@@ -5,0 +5,0 @@ directoryCount: number; |
@@ -5,3 +5,3 @@ { | ||
"author": "Jérôme Beau <javarome@gmail.com> (https://javarome.com)", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"description": "Static Site Generation TypeScript API", | ||
@@ -8,0 +8,0 @@ "exports": "./dist/src/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78468
113
1954