l3x-generate-file
Generate File
Installation
npm install l3x-generate-file
Usage
const genTpl genJSON =
Methods
Example
const genTpl genJSON = // genTpl// or // ------------------------------------------ // ouputFile: default.json // ouputFile: rootPath/a/b.json // ouputFile: default.json // ouputFile: rootPath/a/b.json// ouputFile: default.json// ouputFile: rootPath/a/b.json// ouputFile: rootPath/a/b.json// Override the value of the source file property
require('tpl')
/** tpl.js **/let pugTpl = `h1 Hello`let jsTpl = `let str = 'JS Template'console.log(str)`// ...moduleexports = pug: tpl: pugTpl output: 'tpl/view/test.pug' js: tpl: jsTpl output: 'tpl/js/test.js' // ...