@alextanhongpin/gen-cli

    2.0.0 • Public • Published

    Gen-CLI

    Code generation with js.

    Configuration

    Example config.json that contains two commands, controller and service. Calling $ gen g controller foo will then create the template files first if it doesn't exist, and then the destination files. See config.sample.json5.

    Usage

    # Initialize config file. 
    $ gen init
     
    # Run the template generation. 
    $ gen g <type> <name>

    Templating

    Uses handlebar.js because it allows us to register helpers.

    TODO

    • read config from package.json, "gen"
    • ~force overwrite if exists~ warn if exists
    • better UI
    • allow configuration of templates (passing helpers)
    • compile to supported js versions
    • a golang version

    Keywords

    none

    Install

    npm i @alextanhongpin/gen-cli

    DownloadsWeekly Downloads

    10

    Version

    2.0.0

    License

    ISC

    Unpacked Size

    38.5 kB

    Total Files

    22

    Last publish

    Collaborators

    • alextanhongpin