You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Clone the repository locally and open in VS Code
4
+
- Run "Extensions: Show Recommended Extensions" from the [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) and install all extensions listed under "Workspace Recommendations"
5
+
- Run `npm install`
6
+
- Run `npm run build`
7
+
- Run `npm link`
8
+
- Create or open a local function app to test with
9
+
- In the local function app:
10
+
- Run `npm link @azure/functions`. This will point your app to the local repository for the `@azure/functions` package
11
+
- Add the following settings to your "local.settings.json" file or configure them directly as environment variables
12
+
-`languageWorkers__node__arguments`: `--inspect`
13
+
> π‘ Tip: Set `logging__logLevel__Worker` to `debug` if you want to view worker-specific logs in the output of `func start`
14
+
- Start the app (i.e. run `func start` or press <kbd>F5</kbd>)
15
+
- Back in the framework repository, press <kbd>F5</kbd> and select the process for your running function app
16
+
- Before you submit a PR, run `npm test` and fix any issues. If you want to debug the tests, switch your [launch profile](https://code.visualstudio.com/docs/editor/debugging) in VS Code to "Launch Unit Tests" and press <kbd>F5</kbd>.
17
+
18
+
## Code of Conduct
19
+
20
+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
21
+
22
+
## Contributing to type definitions
23
+
24
+
The type definitions are located in the `types` folder. Please make sure to update the tests in `./test/types/index.test.ts` as well.
- During preview, the v4 model requires you to set the app setting `AzureWebJobsFeatureFlags` to `EnableWorkerIndexing`. For more information, see [Enable v4 programming model](https://learn.microsoft.com/azure/azure-functions/functions-reference-node?pivots=nodejs-model-v4#enable-v4-programming-model).
24
23
- The Node.js "programming model" shouldn't be confused with the Azure Functions "runtime".
25
24
-_**Programming model**_: Defines how you author your code and is specific to JavaScript and TypeScript.
26
25
-_**Runtime**_: Defines underlying behavior of Azure Functions and is shared across all languages.
27
26
- The programming model version is strictly tied to the version of the [`@azure/functions`](https://www.npmjs.com/package/@azure/functions) npm package, and is versioned independently of the [runtime](https://learn.microsoft.com/azure/azure-functions/functions-versions?pivots=programming-language-javascript). Both the runtime and the programming model use "4" as their latest major version, but that is purely a coincidence.
27
+
- You can't mix the v3 and v4 programming models in the same function app. As soon as you register one v4 function in your app, any v3 functions registered in _function.json_ files are ignored.
28
28
29
29
## Usage
30
30
@@ -65,28 +65,3 @@ app.http('httpTrigger1', {
65
65
}
66
66
});
67
67
```
68
-
69
-
## Contributing
70
-
71
-
- Clone the repository locally and open in VS Code
72
-
- Run "Extensions: Show Recommended Extensions" from the [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) and install all extensions listed under "Workspace Recommendations"
73
-
- Run `npm install`
74
-
- Run `npm run build`
75
-
- Run `npm link`
76
-
- Create or open a local function app to test with
77
-
- In the local function app:
78
-
- Run `npm link @azure/functions`. This will point your app to the local repository for the `@azure/functions` package
79
-
- Add the following settings to your "local.settings.json" file or configure them directly as environment variables
80
-
-`languageWorkers__node__arguments`: `--inspect`
81
-
> π‘ Tip: Set `logging__logLevel__Worker` to `debug` if you want to view worker-specific logs in the output of `func start`
82
-
- Start the app (i.e. run `func start` or press <kbd>F5</kbd>)
83
-
- Back in the framework repository, press <kbd>F5</kbd> and select the process for your running function app
84
-
- Before you submit a PR, run `npm test` and fix any issues. If you want to debug the tests, switch your [launch profile](https://code.visualstudio.com/docs/editor/debugging) in VS Code to "Launch Unit Tests" and press <kbd>F5</kbd>.
85
-
86
-
### Code of Conduct
87
-
88
-
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
89
-
90
-
### Contributing to type definitions
91
-
92
-
The type definitions are located in the `types` folder. Please make sure to update the tests in `./test/types/index.test.ts` as well.
0 commit comments