Getting Started
With @nxtend/firebase, Firebase can be configured for any existing web application in an Nx workspace.
Initialize Plugin#
First, you need to initialize the @nxtend/firebase plugin:
Add Firebase to Existing Project#
If you do not pass the --project option then the plugin will prompt you for what project within your Nx workspace you would like to configure for Firebase.
Running Firebase Commands#
Once an application has been configured with Firebase, you can easily execute firebase-tools commands for the desired application.
note
The firebase-tools library must be installed globally for this to work. That means you must have it installed on your local machine with npm --global install firebase-tools.
To run a Firebase command, execute:
If you want to pass additional options to the Firebase command then you can wrap the command option in quotes:
To learn more about Firebase, including the firebase-tools commands available, please read the official Firebase documentation.