@pointdeb/templatize
v0.0.4
Published
Tools for scaffold existing project to an schematics template
Downloads
2
Maintainers
Readme
TEMPLATIZE
Tools for scaffold existing project to an schematics template.
INSTALL
npm i @pointdeb/templatize
USAGE:
templatize --src target/in --dest target/out --key hello --keyMap name
Conditional template
For conditional use comment // <% and the line will uncommented automaticaly.
// <% if (fullname) { %>
console.log(this.fullname);
// <% } else { %>
console.log(this.lastname);
// <% } %>
// result
<% if (fullname) { %>
console.log(this.fullname);
<% } else { %>
console.log(this.lastname);
<% } %>