0.7.6 • Published 12 months ago

@nx-toolkits/firebase v0.7.6

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@nx-toolkits/firebase

Installation

First, install the generator:

npm install -D @nx-toolkits/firebase

Firebase Functions

We generate a Firebase Functions app using the @nx-toolkits/firebase:functions and connect it to the Firebase project using the --project option. This allows for normal firebase cli commands to be used to work, as if it was an app generated using firebase cli.

Generate a Firebase Functions app

Use the generator to generate a Firebase Functions app:

nx g @nx-toolkits/firebase:functions

This will generate a Firebase Functions app in the apps folder.

Generator Options

OptionaliasDescription
--nameThe name of the nx app to create.
--firebaseProject--projectThe Firebase project to connect to.
--codebaseThe codebase to use. Learn more here about Firebase Codebase
--nodeVersionThe runtime node version to use on firebase functions.
--directoryThe directory to create the app in.
--tagsTags to add to the app.
--dry-runRun through without making changes.

Deploy a Firebase Functions app

You can deploy a Firebase Functions app using the nx run deploy command:

nx run my-functions-app:deploy

The above with run linting, building, and then deploy the app to Firebase.

You can also use firebase-tools to deploy the app:

firebase deploy --only functions

Linting a Firebase Functions app

You can lint a Firebase Functions app using the nx lint command:

nx run my-functions-app:lint

Building a Firebase Functions app

You can build a Firebase Functions app using the nx build command:

nx run my-functions-app:build
0.7.6

12 months ago

0.7.5

12 months ago

0.7.2

1 year ago

0.7.3

1 year ago

0.7.1

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.4.5

2 years ago

0.4.6

2 years ago

0.5.1

2 years ago

0.4.4

2 years ago

0.4.1

2 years ago

0.3.2

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.4.2

2 years ago

0.3.0

2 years ago

0.2.7

2 years ago

0.2.5

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago