Swanky templates
Templates used to generate Swanky projects as well as new ink! and ask! language contracts.
Templates are parsed using Handlebars templating engine, and are passed the following object:
{
project_name: string;
author_name: string;
author_email: string | undefined;
swanky_version: string;
contract_name: string;
contract_name_snake: string;
contract_name_pascal: string;
contract_language: "ask" | "ink";
}
Project templates
General config templates used by every generated project:
config.json.hbs: config used by typechain
package.json.hbs
tsconfig.json
gitignore
Contract templates
Contract-specific templates are grouped by language:
Each contract directory must contain contract and test subdirectories.
All the files contained within will be copied, respecting the directory structure, and the .hbs files will be processed by the templating engine.