0.4.1 • Published 7 years ago
counsel-template v0.4.1
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
8 years ago
0.1.1
8 years ago
0.0.29
8 years ago
0.0.28
8 years ago
0.0.26
8 years ago
0.0.23-readme-iRxmp
8 years ago
0.0.23-readme-6tL00
8 years ago
0.0.23
8 years ago
0.0.22
8 years ago
0.0.21-readme-5hukN
8 years ago
0.0.21
8 years ago
0.0.20-readme-RxzS8
8 years ago
0.0.20
8 years ago
0.0.19
8 years ago
0.0.18-readme-WdfDE
8 years ago
0.0.18
8 years ago
0.0.17-readme-9rI49
8 years ago
0.0.17
8 years ago
0.0.16-readme-aunw2
8 years ago
0.0.16
8 years ago
0.0.15-readme-Yoor4
8 years ago
0.0.15
8 years ago
0.0.14-readme-H1PdQ
8 years ago
0.0.14-readme-hrPIa
8 years ago
0.0.14-readme-NEkLU
8 years ago
0.0.14
8 years ago
0.0.13-readme-cyXzd
8 years ago
0.0.13
8 years ago
0.0.12-readme-YEnSh
8 years ago
0.0.12
8 years ago
0.0.11-readme-NyMYU
8 years ago
0.0.11
8 years ago
0.0.10-readme-wKJOA
8 years ago
0.0.10-readme-dmlNL
8 years ago
0.0.10
8 years ago
0.0.9-readme-Ndwms
8 years ago
0.0.9
8 years ago
0.0.8-readme-jD24I
8 years ago
0.0.8
8 years ago
0.0.6-readme-bdlyL
8 years ago
0.0.6-readme-Vzb2k
8 years ago
0.0.6-readme
8 years ago
0.0.6
8 years ago