Skip to content

Instantly share code, notes, and snippets.

@jasonruesch
Created October 17, 2021 17:02
Show Gist options
  • Save jasonruesch/a57ffd082e1e967d589a89c024888bb3 to your computer and use it in GitHub Desktop.
Save jasonruesch/a57ffd082e1e967d589a89c024888bb3 to your computer and use it in GitHub Desktop.
Add deploy target to the api project
{
"root": "apps/api",
"sourceRoot": "apps/api/src",
"projectType": "application",
"targets": {
...
"deploy": {
"executor": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "nx run api:build"
},
{
"command": "firebase deploy --only functions"
}
],
"parallel": false
}
},
...
},
"tags": [
"type:app",
"scope:api"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment