@mapbox/batfish
Version:
The React-powered static-site generator you didn't know you wanted
33 lines (30 loc) • 874 B
Flow
// @flow
;
// This file will be copied into dist/, so these types will serve as the type
// definition of the public API for Flow-using users.
type BatfishStart = (
rawConfig?: Object,
projectDirectory?: string
) => events$EventEmitter;
type BatfishBuild = (
rawConfig?: Object,
projectDirectory?: string
) => events$EventEmitter;
type BatfishServeStatic = (
rawConfig?: Object,
projectDirectory?: string
) => events$EventEmitter;
type BatfishWriteBabelrc = (
rawConfig?: Object,
options?: {
projectDirectory?: string,
outputDirectory?: string,
target?: 'browser' | 'node'
}
) => string;
module.exports = {
start: (require('./start'): BatfishStart),
build: (require('./build'): BatfishBuild),
serveStatic: (require('./serve-static'): BatfishServeStatic),
writeBabelrc: (require('./write-babelrc'): BatfishWriteBabelrc)
};