# minitee

> mini template engine

Latest version **1.0.0** (published 2016-06-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install minitee
pnpm add minitee
yarn add minitee
bun add minitee
```

Provides the command `minitee`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-06-05 |
| First published | 2016-05-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | William Castandet |
| Maintainers | ellyo |
| Keywords | template, mini |

## Links

- npm: https://www.npmjs.com/package/minitee
- Repository: https://github.com/wcastand/minitee
- Homepage: https://github.com/wcastand/minitee#readme
- Issues: https://github.com/wcastand/minitee/issues
- npm.io page: https://npm.io/package/minitee

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [commander](https://npm.io/package/commander.md) ^2.9.0

## Recent versions

- 1.0.0 (latest) — 2016-06-05
- 0.1.1 — 2016-05-20
- 0.1.0 — 2016-05-20
- 0.0.5 — 2016-05-15
- 0.0.4 — 2016-05-15
- 0.0.3 — 2016-05-14
- 0.0.2 — 2016-05-14
- 0.0.1 — 2016-05-14

## README

# Minitee

Mini template engine.

[![Travis](https://img.shields.io/travis/wcastand/minitee.svg?style=flat-square)](https://travis-ci.org/wcastand/minitee)
[![downloads](https://img.shields.io/npm/dm/minitee.svg?style=flat-square)](https://www.npmjs.com/package/minitee)
[![version](https://img.shields.io/npm/v/minitee.svg?style=flat-square)](https://www.npmjs.com/package/minitee)
[![license](https://img.shields.io/npm/l/minitee.svg?style=flat-square)](https://opensource.org/licenses/MIT)
## Installation

```
npm i -g minitee
````

## Basic usage

First, create a folder named templates.

Create a file, for example react.js
```javascript
///--components/${name}Class.js

import React from 'react'
const {Component} = React
import redux from 'redux'

export default class ${name} extends Component {
  render(){
    return (<div>${content}</div>)
  }
}
```

Then in your terminal:
```
minitee react name:List content:"<span>Hello World</span>"
```

And voila, you just created your first minitee file.

At any time, you can get the list of the templates with the command:
```
minitee list
//or
minitee list -a
```

## Advanced usage

Create a configuration file ".minitee" at the root of your project.
You can use ``` minitee init -s ./examples -d build ```
or create a file manually, this is the equivalent of the previous command:

```json
//./minitee
{
  "src": "./examples", //default "./templates"
  "dest": "build" //default "."
}
```

Then, in the "examples" folder create your templates.
If .minitee doesn't exist in the folder. minitee will use the default settings.

### Multiple files in one command

You can create multiple files with one command by using different ways.
The first one is by creating multiple template with the same name and different extensions.

```
  native.js
  native.css
  ...
```

Or you can create one file and use the special synthax(``` //-- path/filename ```) to define multiple files in it.

```
///--test/${name}.js

console.log("first file")

///--${test}Class.js

console.log("second file")

///-- components/${name}/index.js

console.log("third file ${name}")
```

---
_Source: https://npm.io/package/minitee · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
