@astar-network/swanky-templates
v2.2.2
Published
Templates for initialising Swanky projects
Downloads
37
Keywords
Readme
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 typechainpackage.json.hbs
tsconfig.json
gitignore
Contract templates
Contract-specific templates are grouped by language:
- ask
- ink
Each contract directory must contain contract
and tests
subdirectories.
All the files contained within will be copied, respecting the directory structure, and the .hbs
files will be processed by the templating engine.