<a href="https://www.npmjs.com/package/@nx-extend/gcp-functions" rel="nofollow"> <img src="https://badgen.net/npm/v/@nx-extend/gcp-functions" alt="@nx-extend/gcp-functions NPM package"> </a>
npm install @nx-extend/gcp-functionsNx plugin to build and deploy your Google Cloud Functions.
``sh`
npm install -D @nx-extend/gcp-functions
nx g @nx-extend/gcp-functions:init
#### Available options:
| name | type | default | description |
|------|------|---------|-------------|
sh
nx g @nx-extend/gcp-functions:init-runner
`This will generate a
main.ts file like this:
`ts
import { bootstrapRunner } from '@nx-extend/gcp-functions/runner'/ eslint-disable @nx/enforce-module-boundaries /
bootstrapRunner(new Map([
['nx function project name', import('path to main of of project')]
])
)
`You can now add all your functions to the map, note: make sure that the
nx function project name is the same name as
known by Nx (name prop of that functions project.json). The runner uses the deploy target of that project.json` to determine