brp-template

1.0.0 • Public • Published

brp-template

thanks {president} + {president: 'Obama'} = thanks Obama

circle-ci dependencies dev-dependencies code-climate js-standard-style


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.

Package Sidebar

Install

npm i brp-template

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • w00tmast3r