3 ms·
Regarding the project templates, did you look at Cookiecutter [0]? There are over 5k projects that GitHub finds that use it [1]. It solves the “custom utility”
by Kwpolska 6y ago
Regarding the project templates, did you look at Cookiecutter [0]? There are over 5k projects that GitHub finds that use it [1]. It solves the “custom utility” problem, since it can be used with multiple templates. I can just install `cookiecutter` and immediately use any of the 5k+ templates, and I get variable substitution, and some basic logic in the code. I also don’t need any special structures — I prefer 4-space tabs, and to write or edit the `stamp` file manually, I would need to remember how to tell vim to disable all indentation support, since I’d have tabstops at 1 (the `data` line), 2 (top-level code), 6 (one level of indentation), 10, …
[0]: https://cookiecutter.readthedocs.io/en/1.7.2/ https://cookiecutter.readthedocs.io/en/1.7.2/
[1]: https://github.com/search?q=cookiecutter&type=Repositories https://github.com/search?q=cookiecutter&type=Repositories
- breck 6y agoI don't think I've seen that! Thanks! Happy to accept a PR with a link to it. The "template package manager" sounds very cool. Perhaps Stamp as a format for the CookieCutter Package manager would be a good combo. Not sure haven't taken a close look, just thinking out loud.
- qbasic_forever 6y agoCookiecutter is nice but it requires an entire python install to run, which is a big thing to ask for some of the scenarios mentioned by the tool creator (like someone going through a simple learning tutorial which might not even be using python at all). IMHO gomplate is a nicer alternative that's just a single static go-based tool that can do everything cookiecutter does and a lot more: https://github.com/hairyhenderson/gomplate https://github.com/hairyhenderson/gomplate
- Kwpolska 6y agoAll Linux distros ship with Python. macOS installs it with the developer tools (which you’re likely to need anyway). Windows makes it very easy to install (type `python` in cmd, you’ll get sent to the Microsoft Store).
- hnlmorg 6y agoStamp requires node.js, which is an even bigger ask than Python considering, unlike node, Python is often bundled with your Linux/UNIX base install.