ape-tmpl

6.0.14 • Public • Published

ape-tmpl

Build Status npm Version JS Standard

Templates for ape framework.

Installation

$ npm install ape-tmpl --save-dev

Usage

Generating README.md

.README.md.bud

/**
 * Bud file for README.md
 */
 
'use strict'
 
const apeTmpl = require('ape-tmpl')
const pkg = require('./package.json')
 
module.exports = apeTmpl.readmeMdBud({
  pkg: pkg,
  repo: 'okunishinishi/my-awesome-one',
  sections: 'docs/readme/*.md.hbs', // Each readme section files.
  badges: {
    travis: true,
    codeclimate: true,
    codeclimateCoverage: true,
    gemnasium: true,
    npm: true
  }
})
 
if (!module.parent) {
  // This will generate "README.md"
  require('coz').render(__filename)
}
 

Then,

$ node .README.md.bud

Generating LICENSE

.LICENSE.bud

/**
 * Bud file for LICENSE
 */
 
'use strict'
 
const apeTmpl = require('ape-tmpl')
 
module.exports = apeTmpl.licenseBud({
  type: 'MIT',
  holder: 'apeman-labo',
  year: 2015
})
 
if (!module.parent) {
  // This will generate "LICENSE"
  require('coz').render(__filename)
}

Then,

$ node .LICENSE.bud

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i ape-tmpl

Weekly Downloads

322

Version

6.0.14

License

MIT

Unpacked Size

104 kB

Total Files

54

Last publish

Collaborators

  • okunishinishi