Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 979 Bytes

readme.md

File metadata and controls

56 lines (42 loc) · 979 Bytes

Templates

This program will take in a Handlebars template file and prompt you for the values that should be used to fill out the template

Example

Template

import * as React from 'react'

interface I{{component}}State {

}

interface I{{component}}Props {

}

export default class {{component}} extends React.Component<I{{component}}Props, I{{component}}State> {
    render() {
        return (
            <div>
            </div>
        );
    }
}

Command

$ templates ./path/to/template ./path/to/out/dir
Please provide the value for {{component}}
NewComponent

Output

import * as React from 'react'

interface INewComponentState {

}

interface INewComponentProps {

}

export default class NewComponent extends React.Component<INewComponentProps, INewComponentState> {
    render() {
        return (
            <div>
            </div>
        );
    }
}