simondotm / nx-firebase

Firebase plugin for Nx Monorepos
https://www.npmjs.com/package/@simondotm/nx-firebase
MIT License
175 stars 31 forks source link

Support `--function` as a generator option #71

Closed simondotm closed 1 year ago

simondotm commented 1 year ago

Syntax will be nx g @simondotm/nx-firebase:function <name> --project=<projectname> [--alias=<projectname>] [--directory=<dir>] It will generate an application which is:

function applications will only work with Firebase CLI v10.7.1 and above.

simondotm commented 1 year ago

This neatly solves a number of other issues:

However, a major caveat is:

simondotm commented 1 year ago

Possibly we can add function projects as implicit dependencies of the main firebase application. Then nx watch will work.

simondotm commented 1 year ago

Implemented in #116