lodash-tpl-cli

CLI for template of loadsh


Keywords
cli-app, cli, lodash, tempalte, lodash.tempalte
License
MIT
Install
npm install lodash-tpl-cli@0.3.0

Documentation

lodash.template-cli Build Status

Simple CLI for template using loadsh.template engine

Install

$ npm install -g lodash.template-cli

Usage

tpl --help

Examples

# single file templating
$ tpl ./src/index.html ./dist -- --name='My Name' --target='Target'

# glob pattern templating
$ tpl './src/**' ./dist -- --name='My Name' --target='Target'

# shell pattern templating
$ tpl ./src/** ./dist -- --name='My Name' --target='Target'

# using config
$ tpl './src/** ./dist --config=prop.json

# using config and props
$ tpl './src/** ./dist --config=prop.json -- --name-overwrite='My Name' --target-overwrite='Target'

# with no-camelcase
$ tpl ./src/index.html ./dist --no-camelcase -- --name='My Name' --target='Target'

# overwrite sources
$ tpl ./src/** --overwrite -- --name='My Name' --target='Target'
$ tpl ./src/** -- --name='My Name' --target='Target'

License

MIT © Jimmy Moon