tact icon indicating copy to clipboard operation
tact copied to clipboard

`tact-init` utility to create Tact template projects

Open anton-trunov opened this issue 10 months ago • 5 comments

It should basically create a tact-template-like project, perhaps with some interactive and non-interactive user-specified parameters, sort of what blueprint does.

anton-trunov avatar Jan 16 '25 15:01 anton-trunov

For this small task, it's probably a good idea to either make something like @tact-lang/create-tact (like https://github.com/ton-org/create-ton) or consider another small CLI tool to bin/ just like you recently did with unboc.

The first allows us to utilize create commands of various package managers of Node.js ecosystem, just like shown for create-ton package in our docs: https://docs.tact-lang.org/#start-2

novusnota avatar Jan 16 '25 15:01 novusnota

or consider another small CLI tool to bin/ just like you recently did with unboc.

yep, this is exactly what's going on here :)

anton-trunov avatar Jan 16 '25 15:01 anton-trunov

basically, if I have the Tact package installed, I would like to be able to create Tact projects without having to clone tact-template

anton-trunov avatar Jan 16 '25 15:01 anton-trunov

basically, if I have the Tact package installed, I would like to be able to create Tact projects without having to clone tact-template

In that case, we might just add a tact --init flag

novusnota avatar Jan 16 '25 16:01 novusnota

Btw, if we add a LICENSE file to a template, we'll probably want to write something like {{project-name}} in it to replace it in this tool after initializing. We'll probably want to add more placeholders like this for this tool in template

i582 avatar Jan 16 '25 16:01 i582