0.4.1 • Published 9 years ago

counsel-template v0.4.1

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

counsel-template

runs a template engine against a template file!

your template is passed all of counsel, and the the target project's package.json. the current template engine employed is swig-templates.

example

  • prep a teamplate file, such as README.swig
// README.swig
# {{ package.name }}

{{ package.description }}
  • create your rule
// my-readme-template-rule.js
'use strict'

const TemplateRule = require('counsel-template')

module.exports = new TemplateRule({
  templateSource: './README.swig', // relative to your counsel project's root (package.json folder)
  templateTarget: './README.md' // relative to the target package's root
})
  • apply it (per counsel docs)
  • enjoy the output!
// README.md
# my-project

my project description!
0.4.1

9 years ago

0.4.0

9 years ago

0.3.1-0

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.4

9 years ago

0.1.1

9 years ago

0.0.29

9 years ago

0.0.28

9 years ago

0.0.26

9 years ago

0.0.23

9 years ago

0.0.22

9 years ago

0.0.21

9 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

10 years ago

0.0.17

10 years ago

0.0.16

10 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9-readme-Ndwms

10 years ago

0.0.9

10 years ago

0.0.8-readme-jD24I

10 years ago

0.0.8

10 years ago

0.0.6-readme-bdlyL

10 years ago

0.0.6-readme-Vzb2k

10 years ago

0.0.6-readme

10 years ago

0.0.6

10 years ago