This bluprint copies a couple markdown files, removes one, moves another to take its place and renders it using some custom data input by a user.
my-cool-bluprint/
README.md
README_project.md
.bluprintrc
README.md
# My cool bluprint
## Quickstart
Add this bluprint to your CLI ...
README_project.md
# {{ projectName }}
## Quickstart
...
.blurprintrc
{
"bluprint": "^0.0.1",
"name": "My cool bluprint",
"category": "tools",
"actions": [
{
"action": "prompt",
"questions": [{
"type": "text",
"name": "projectName",
"message": "What's the name of this project?"
}]
}, {
"action": "remove",
"paths": ["README.md"]
}, {
"action": "move",
"paths": [
["README_project.md", "README.md"]
]
}, {
"action": "render",
"engine": "mustache",
"files": ["README.md"]
}, {
"action": "log",
"msg": "Ready to start building {green {{ projectName }}}!"
}
]
}
my-new-project/
README.md
README.md
# My new project
## Quickstart
...