meta-template
template plugin for meta
Last updated 2 years ago by patrickleet .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install meta-template 
SYNC missed versions from official npm registry.

meta-template

Build Status codecov Greenkeeper badge

template plugin for meta

Usage

Create a template from a git repository

meta project add templates/meta-plugin git@github.com:patrickleet/meta-template-meta-plugin.git

Templates can contain variables, which the user will be prompted to fill when applying the template.

Example Template File

Hello, {[.NAME.]}

When applying the above template, the user would be prompted to provide a value for NAME

Applying the template

> meta project add plugins/meta-docker-compose git@github.com:patrickleet/meta-docker-compose.git
> meta template apply templates/meta-plugin plugins/meta-docker-compose

Enter a value for 'PLUGIN_NAME': docker-compose
Enter a value for 'FULL_NAME': Patrick Scott
Enter a value for 'GITHUB_USERNAME': patrickleet
Enter a value for 'GITHUB_EMAIL': pat@patscott.io

Specifying options

It's also possible to set variables when running the command

meta template apply templates/test-template --FULL_NAME="Patrick Scott"

Templates

Please contibute more templates! It's super easy!

Usage without meta

meta-template apply src dest

Current Tags

  • 2.0.3                                ...           latest (2 years ago)

6 Versions

  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (13)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |