UNPKG

lux-framework

Version:

Build scalable, Node.js-powered REST APIs with almost no code.

22 lines (20 loc) 398 B
// @flow import { CWD } from '../../../constants'; import { runGenerator } from '../generator'; import type { Generator$opts } from '../generator'; // eslint-disable-line max-len, no-duplicate-imports /** * @private */ export function generate({ cwd = CWD, name, type, attrs = [] }: Generator$opts): Promise<void> { return runGenerator({ cwd, name, type, attrs }); }