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

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

Keywords

none

Install

npm i @astar-network/swanky-templates

DownloadsWeekly Downloads

48

Version

2.0.0

License

MIT

Unpacked Size

151 kB

Total Files

74

Last publish

Collaborators

  • nikhilastar
  • shunsukew
  • codespool
  • willastar
  • hoonsubin