lodash.template-cli

0.5.0 • Public • Published

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

Package Sidebar

Install

npm i lodash.template-cli

Weekly Downloads

2

Version

0.5.0

License

MIT

Last publish

Collaborators

  • ragingwind