project.json command in an array format #19504
Replies: 3 comments
-
You can. Just use {
"subgraphs":{
"executor":"nx:run-commands",
"options":{
"commands":[
"nx serve graphql-users",
"nx serve graphql-projects"
]
}
}
} There's also a longer version, which allows to set things like the color of {
"subgraphs":{
"executor":"nx:run-commands",
"options":{
"parallel":true,
"commands":[
{
"command":"nx serve graphql-users",
"color":"blue"
},
{
"command":"nx serve graphql-projects",
"color":"green"
}
]
}
}
} |
Beta Was this translation helpful? Give feedback.
-
I had one command split into several substrings.Something like this: "update:dev:workspace": {
"executor": "nx:run-commands",
"options": {
"command": [
"yarn",
"dlx",
"upgrade-deps",
"--force"
]
}
}
The "update:dev:workspace": {
"executor": "nx:run-commands",
"options": {
"commands": [
"yarn dlx upgrade-deps --force",
"echo hello world"
]
}
} I've made the changes and opened a pull request here. |
Beta Was this translation helpful? Give feedback.
-
@moatorres Could you please inform the reviewers? PR is under review for about 3 weeks |
Beta Was this translation helpful? Give feedback.
-
It would be cool if you could turn this
Into this
Beta Was this translation helpful? Give feedback.
All reactions