0.4.1 • Published 7 years ago

counsel-template v0.4.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 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

7 years ago

0.4.0

7 years ago

0.3.1-0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.1

7 years ago

0.0.29

7 years ago

0.0.28

7 years ago

0.0.26

7 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.18

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.6-readme

8 years ago

0.0.6

8 years ago