Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vilicvane/inplate

A command-line tool processing files with in-place template.
https://github.com/vilicvane/inplate

template

Last synced: 20 days ago
JSON representation

A command-line tool processing files with in-place template.

Awesome Lists containing this project

README

        

[![NPM Package](https://badge.fury.io/js/inplate.svg)](https://www.npmjs.com/package/inplate)
![CI](https://github.com/vilic/inplate/workflows/CI/badge.svg)

# Inplate

Inplate is a command-line tool processing files with in-place template, currently it's using `handlebars` for template rendering.

Prettier is applied if it's installed and there is configuration file in some upper directory.

## Installation

```bash
yarn add --dev inplate
# or
npm install --save-dev inplate
```

## Usage

```bash
inplate [options] [file-pattern]
```

### Options

- `--config`

Config files to `require()`.

- `--update`

Update files.

- `--assert`

Assert that files are up-to-date, otherwise exit with non-zero code.

- `--silent`

Silence listed files and diffs.

- `--template `

Path to file template.

- `--data `

Module to load default template data.

- `--comment-styles `

One or more of `#`, `//`, `/*`, `{/*`, `