Creating Your Description File

In this section I’ll describe the .json file you have to write. You can find a detailed example here or check out the case classes that I use to parse the json file here.

Top level

At the top level you have an object the the properties

Example:

{
	"origin"  : "url of where the recipe is stored",
	"version" : 1.3,
	"sources" : [ ... ],
	"arguments" : [ ... ],
	"templates" : [ ... ]
}

sources

As explained, this has to be an array of objects. Each object needs to have the following properties:

arguments

As explained, this has to be an array of objects. Each object needs to have the following properties:

templates

As explained, this has to be an array of objects. Each object represents something that Lifty can create. Each template can render many source templates if needed (i.e. if you wanted to create an entire project for example). Each object needs to have the following properties:

Fork me on GitHub