create-amp-page
Version:
Full fledged static side generator composed out of extendable gulp tasks, optimized for - but not limited to - AMP.
23 lines (18 loc) • 493 B
TypeScript
import { FmMapFile } from './AmpCreatorOptions'
export interface PageUrlMap {
base: string
}
export interface PagesUrlsMap {
[]: {
[]: PageUrlMap
}
}
export function getPageInfo(file: FmMapFile, urls: PagesUrlsMap, pageId: string, pageEnv: string): {
basePath: string
pageBase: string
pagePath: string
urlMap: PageUrlMap
}
export function getPagesIndex(urls: PagesUrlsMap, pageEnv: string): {
[]: PageUrlMap
}