brp-template
v1.0.0
Published
> `thanks {president}` + `{president: 'Obama'}` = `thanks Obama`
Downloads
7
Maintainers
Readme
brp-template
thanks {president}
+{president: 'Obama'}
=thanks Obama
Applies string-template to the files in your pipeline.
Install
Make sure you have the latest version of Node installed first!
npm install brp-template --save
Then you can add brp-template to your build pipeline.
const Template = require('brp-template')
...
let template = new Template()
template.supply({
foo: '{foo} value'
})
brp.buildWith(template)
Documentation
constructor(opts)
| Option | Description | Default |
| ----------------- | ------------------------------------------------------------ | ------------------------- |
| glob
| the glob used to match streamed files | '*.@(json|mcmeta|info)'
|
| processUnmarked
| true
if files not included in the pack should be processed | false
|
Template.supply(obj)
Appends a map of substitutions to the template.