mechanic
mechanic copied to clipboard
create-mechanic improvements
A bunch of pending improvements for create-mechanic!
- The most important that has been pending, this tweaks how design function templates and examples are managed, so that it also supports copying functions with custom inputs! The directory structure was changed to make this easier, so you'll see a lot of moved files. Each design function base has a directory with a
function/
folder (design function source code), adependencies.json
file (with a list of dependencies for the DF), and may have aninputs/
folder with any custom inputs the DF uses. - The previous change allows us to finally add the Adaptive Grid example @munusshih made a while ago! It used a custom input, and it will soon be able to replicate it for mechanic users across! Thanks again for this @munusshih! The other examples you made will be added as soon as possible too.
- Now create will also add an .gitignore file to a new project. As well as try to initialize a new git repository. This is a little improvemene that will make creating DFs and posting to GitHub more easy and quick.
- Added a little detail for the installing section. The cli asks users if they want to install dependencies, and now it will also list which dependencies are being installed.
- Added some line breaks across different sections to make the CLI output more readable.

