UNPKG

@royli/hygen

Version:

The scalable code generator that saves you time.

26 lines (25 loc) 632 B
const resolve = async (attributes) => { const ops = [] if (attributes.to && !attributes.inject) { const add = (await import('./add')).default ops.push(add) } if (attributes.to && attributes.inject) { const inject = (await import('./inject')).default ops.push(inject) } if (attributes.echo) { const echo = (await import('./echo')).default ops.push(echo) } if (attributes.sh) { const shell = (await import('./shell')).default ops.push(shell) } if (attributes.setup) { const setup = (await import('./setup')).default ops.push(setup) } return ops } export default resolve