mirror of
https://github.com/chenasraf/simple-scaffold.git
synced 2026-05-18 01:29:09 +00:00
14 lines
318 B
TypeScript
14 lines
318 B
TypeScript
import SimpleScaffold from './scaffold'
|
|
import * as path from 'path'
|
|
|
|
const templateDir = path.join(process.cwd(), 'examples')
|
|
|
|
new SimpleScaffold({
|
|
templates: [templateDir + '/test-input/Component/**/*'],
|
|
output: templateDir + '/test-output',
|
|
locals: {
|
|
property: 'myProp',
|
|
value: '"value"'
|
|
}
|
|
}).run()
|