ponylang / pony-stable

:horse: A simple dependency manager for the Pony language.
BSD 2-Clause "Simplified" License
134 stars 18 forks source link

Add a command to initialize a directory from a project template #71

Open mfelsche opened 6 years ago

mfelsche commented 6 years ago

We currently have some kind of template for setting up a new project: https://github.com/ponylang/library-project-starter but setting this up is a tiny bit cumbersome as one has to replace all variables defined therein somehow manually or with a custom sed script or the like.

My suggestion is somehow inspired by giter8 and sbt which exist in the scala world. With these tools it is possible to define a template as a github repository containing variable placeholders (and default values for some or all of these). And then just call sbt new <github-org>/<repo> to populate a directory with all the boilerplate for some kind of setup. There can be any kind of templates for different setups and different tastes. Creating them is actually super-easy.

It would be very awesome to have something similar for ponylang. This entails the following moving parts:

Any thoughts on this?

SeanTAllen commented 6 years ago

@mfelsche that is in line with what I was thinking re: https://github.com/ponylang/library-project-starter/issues/1