@astar-network/swanky-templates
TypeScript icon, indicating that this package has built-in type declarations

2.2.2 • Public • Published

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:

  • 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.

Dependents (1)

Package Sidebar

Install

npm i @astar-network/swanky-templates

Weekly Downloads

56

Version

2.2.2

License

MIT

Unpacked Size

154 kB

Total Files

76

Last publish

Collaborators

  • astar-sys
  • gluneau
  • codespool