Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for juvix init to additionally create a default <ProjectName>.juvix file #3094

Open
mauricewbr opened this issue Oct 9, 2024 · 2 comments
Labels
enhancement New feature or request pending-review
Milestone

Comments

@mauricewbr
Copy link

Feature request description
I would like to propose that juvix init additionally creates a Juvix module according to the specified project name. As of now, the command creates the Package.juvix file but requires a developer to create the <ProjectName>.juvix module manually in order to compile the project.

Alternatives
An alternative way (but arguably worse) would be a separate juvix template command which creates a default Juvix module file. I personally feel like the juvix init command should initialize an existing directory with all files necessary to build the project immediately.

@mauricewbr mauricewbr added enhancement New feature or request pending-review labels Oct 9, 2024
@paulcadman
Copy link
Collaborator

hi @mauricewbr - thanks for the report.

Do you have any preferences on what code should be present in the <ProjectName>.juvix file?

One suggestion:

module ProjectName;

import Stdlib.Prelude open;

main : IO := printStringLn "Hello World";

In general I think we want several template git repositories for common Juvix project types, including a template repository for an Anoma application.

@mauricewbr
Copy link
Author

I think the "Hello World" default is totally fine! Also agree on having multiple templates that could correspond to some app examples / tutorials in the docs.

@lukaszcz lukaszcz added this to the 0.6.10 milestone Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pending-review
Projects
None yet
Development

No branches or pull requests

3 participants