Skip to content

Instantly share code, notes, and snippets.

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