basilisp icon indicating copy to clipboard operation
basilisp copied to clipboard

The ability to create a new project from a few basic project templates.

Open amano-kenji opened this issue 1 month ago • 1 comments

Because Hy just tells coders to write Hy bootstrap code in __init__.py, I think the way to hide bootstrapping from users is to embed the bootstrapping code in a project template.

I suggest basilisp init command for creating a new project from one of a few basic project templates.

basilisp init library [directory] creates a basilisp library project with __init__.py that bootstraps basilisp.

bailisp init executable [directory] creates a basilisp executable project with __init__.py. It can also have its own library.

You get the basic idea. The final form doesn't have to be basilisp init. pyproject.toml specifies basilisp as a PEP517 build backend which can use basilisp.edn for further details. Different project templates come with different project configuration files.

This should be done after https://github.com/basilisp-lang/basilisp/issues/1221

amano-kenji avatar Nov 06 '25 03:11 amano-kenji