-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
[feature] Multiple commands for a task #1138
Comments
Task inheritance + the toolchain makes this very difficult right now. More information: https://moonrepo.dev/docs/faq#how-to-run-multiple-commands-within-a-task |
Yep the && approach doesn't work under windows unfortunatley due to the shell being different. |
For v2, I'm hoping to redo all of this and how the toolchain finds binaries. Should make this a lot easier. |
That sounds cool, it may be a bit of an edge use case but I wonder if adding the package manager from toolchain.yml might be useful to the list of available tokens So you could do something like this tasks:
panda.build.cssfile:
platform: 'system'
command: '$packageManager exec concurrently \"mkdirp dist/panda\" \"panda cssgen --outfile dist/panda/styles.css\"' since I couldn't get concurrently to work with the package manager downloaded by moon for some reason. |
As a suggestion it might be handy to be able to run multiple commands for a given task
One idea would be to allow for the
commands
as well ascommand
keyword the same way nx does itSomething like this:
The current workaround is to have each command as a seperate task, linked by deps
Or the use of concurrently
Just to add, really apreciate the project btw, yaml syntax is very nice, fast with rust and multiple language support.
The text was updated successfully, but these errors were encountered: