-
Notifications
You must be signed in to change notification settings - Fork 23
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
project.janet, pure datastructures mode? #15
Comments
Or even, to make it
|
What would be the advantage of this? I am not sure, I understand this, and I would like to :-) |
Though I suspect there are other advantages for more involved projects, the advantage that would be immediate for me is linting - right now my project.janet unnecessarily triggers my editor's linter because |
Truth to be told, I have a special condition for
May you please elaborate? |
Simply: the ability to require a project.janet file by an arbitrary Janet program would allow it to be used or mutated or constructed by any arbitrary code. So for instance, if you had a complex Janet program with many dependencies, you might want a ‘configure’ step. If so, you could have a script which loads your project file but then makes additional programmatic changes based on the presence of dependencies and configure flags. |
Thank you! |
Certainly a possibility, but would require significant work. Agree that it would be helpful for project introspection as well, and you could even validate a project.jdn with a schema of some sort. Arbitrary code could live in certain keys if needed, so it's not any less flexible (if done well), but seriously, that is a lot of effort to fix linter issues. As far as a |
I guess we could create configure issue and close this one? |
A bit late to the party but wanted to note that in Clojure-land, presumably after many years of experience with Leiningen (and a bit of Boot), there's this bit about tools.build:
via: https://clojure.org/guides/tools_build In any case, perhaps it does make sense to close this as @pepe mentioned before. What do you think @subsetpark? |
Since
project.janet
is just a series of instructions to jpm, would it be feasible to make jpm recognize top-level datastructures that encode the same operations asdeclare-project
,declare-executable
, etc.? For instance,or
The text was updated successfully, but these errors were encountered: