1.0.0 • Published 8 years ago

brp-template v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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)

OptionDescriptionDefault
globthe glob used to match streamed files'*.@(json|mcmeta|info)'
processUnmarkedtrue if files not included in the pack should be processedfalse

Template.supply(obj)

Appends a map of substitutions to the template.