t3mpl-core
TypeScript icon, indicating that this package has built-in type declarations

0.4.2 • Public • Published

T3MPL Core

Build Status Coverage Status License: MIT Twitter: b4rtaz

T3MPL is the core library of T3MPL Editor. This project contains the template YAML parser and the template generator. The generator can be used in the browser or by command line (by Nodejs).

This project contains the template example and the data example.

⚙️ How to Build

Node.js is required.

npm install
npm run build

CLI

You can use T3MPL from CLI. To install globally enter bellow commands. Node.js is required.

npm install -g t3mpl-core
t3mpl version

Build

To build a template, the generator needs the template manifest path and the data. You can pass the path to the own data by --data=PATH argument or generate an example data by --exampleData=true argument.

Own Data

t3mpl build --manifest=examples/boilerplate-template/template.yaml --data=examples/boilerplate-data/data.json --outDir=build/

Example Data

t3mpl build --manifest=examples/boilerplate-template/template.yaml --exampleData=true --outDir=build/

💡 License

This project is released under the MIT license.

Package Sidebar

Install

npm i t3mpl-core

Weekly Downloads

13

Version

0.4.2

License

MIT

Unpacked Size

221 kB

Total Files

228

Last publish

Collaborators

  • b4rtaz