1.3.5 • Published 11 months ago
@nxazure/func v1.3.5
Versioning
For NX <= 19, use @nxazure/func version 1.2.0 and lower For NX >= 20, use @nxazure/func version 1.2.1 and higher
Table of Contents
Quick Start
- Make sure your environment is set as described in the Azure Functions docs.
- Make sure you install the latest Azure Functions Core Tools. The minimum required version is 4.0.5390. You can check your currently installed version by running
func --versioncommand. - Create an NX workspace with any method.
npx create-nx-workspace@latest my-org- Add the @nxazure/func package
npm install -D @nxazure/func- Initialize a function app
nx g @nxazure/func:init my-new-app --directory=apps/my-new-app- Add a function to the app
nx g @nxazure/func:new myNewFunc --project=my-new-app --template="HTTP trigger"- Run the function app
nx start my-new-appFeatures
- Support for TS Config paths (e.g.,
import { tool } from '@my-org/my-lib') - Support for a single
node_modulesfolder in the root dir (just like in other monorepo solutions) - Environment variables are loaded by NX (from .env files) but they can be overwritten by individual local.settings.json files
- All current templates that are supported by the
funcCLI tool are supported. - Run multiple functions at once
nx run-many --target=start --all - Publish the function app straight to your Azure account (az login is required)
Known possible issues
- If after creation the build is failing, try updating
@types/nodeand/ortypescriptversions. - To be able to publish a function to your Azure account, an az login is required first.
- If you are using the flat eslint config, you might want to add the following to the end of your base config export:
{
ignores: ['apps/**/dist', 'apps/**/_registerPaths.ts'],
}Publish to Azure
- Sign in to Azure
az login- Make sure you select the correct subscription
az account set --subscription "<subscription ID or name>"You can learn more about it on Microsoft Learn.
- Use the name of your local NX app and the name of your existing function app on Azure to run the publish command:
nx publish <local-app-name> -n <function-app-on-azure>- Wait for the process to finish and the triggers to properly sync
Limitations
Currently, the plugin supports only TypeScript functions.
1.3.5
11 months ago
1.3.4
12 months ago
1.3.3
12 months ago
1.3.2
12 months ago
1.3.1
12 months ago
1.3.0
12 months ago
1.2.1
1 year ago
1.2.0
1 year ago
1.1.6
1 year ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.0.19
2 years ago
1.1.0
2 years ago
1.0.18
2 years ago
1.0.20
2 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago