-
Notifications
You must be signed in to change notification settings - Fork 222
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
Proposal: platform specific run scripts #122
Comments
Would writing a dart script not be easier and cleaner for cross-platform execution, we have an example on the melos repo itself: https://github.com/invertase/melos/blob/master/melos.yaml#L40 You could even add a pubspec.yaml at the root of your monorepo for any dev dependencies you may need for your scripts: https://github.com/invertase/melos/blob/master/melos.yaml#L4 I wanted to originally add something like you've mentioned before but opted not to since we can just write a cross-platform script using a single Dart file |
Thanks for nice example! Probably for most cases dart script would be a perfect solution. Then |
We are going through and updating the docs to have more examples and information on cross-platform scripts 🙈 sorry it's not fully documented yet
Is there any code improvements to Melos you would suggest we make to improve this? |
I was thinking about this over the weekend, and I can say that this problem is much more complicated than I initially expected Here is long running issue in npm (this is what lerna use in It seems critical to choose appropriate solution as soon as possible while most of the users are early adopters Possible solutions:
|
I think this is a must feature for cross-platform, because I met a line break issue on windows quickly.
Line break is different on windows (cmd), so can't be used easily, but almost the same code. Edit |
Problem:
It seems impossible to properly support multi-platform parsing of command in
run
section without invention of its own scripting languageFor example this issue #15 is caused and cannot be easily and fully fixed because of custom
cmd
andsh
handlingProposal:
allow platform specific scripts
for example
or
then it would be possible to pass script in
run
section as-is to underlying interpreter without any custom parsingThe text was updated successfully, but these errors were encountered: