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
Copy file name to clipboardExpand all lines: docs/documentation/docs/guides/mpa.md
+42-5
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,51 @@ The shortest way to prepare your local copy of the project for development and t
6
6
7
7
Before you start contributing to this project, you will need Node.js. This project has been tested with the 10.x version of Node.js and the version of NPM that comes with it. You can use [Node Version Manager](https://github.com/nvm-sh/nvm) to switch between different versions of Node.js.
8
8
9
-
## Get the local version of the CLI
9
+
## Get the local version of the project
10
10
11
11
- fork this repository
12
12
- clone your fork
13
-
- in the command line:
14
-
- run `npm install` to restore dependencies
15
-
- run `gulp serve` to serve your project
16
-
- Start making your changes
13
+
- in the command line, run the following commands:
14
+
-`npm install` to restore dependencies
15
+
-`npm install -g gulp-cli` in order to run `gulp` commands (run `npm list -g gulp-cli` to check if already installed on your machine or not)
16
+
-`gulp serve` to serve your project (or `npm run serve` if you want to use [`spfx-fast-serve`](https://github.com/s-KaiNet/spfx-fast-serve))
17
+
- Start making your changes
18
+
19
+
### Run the project locally
20
+
21
+
As this project embeds a SPFx solution, you have the ability to test all the controls on your machine.
22
+
23
+
!!! warning
24
+
As long as you have access to a SharePoint Online environment (for v2 and after), you can test the components from your machine. But to test the web part as a Teams Tab, you have to first deploy the SPFx solution (and sync it to Teams). You also have to deploy the [SharePoint Framework library for Microsoft Graph Toolkit](https://learn.microsoft.com/en-us/graph/toolkit/get-started/mgt-spfx) v2.9.0. So be sure to be at least **SharePoint Administrator**.
25
+
26
+
#### SPFx web part
27
+
28
+
The web part is called *ControlsTest* and is available for both SharePoint Online and Teams. To test it on SharePoint, go to the workbench page (<https://[SHAREPOINT_SITE].sharepoint.com/_layouts/15/workbench.aspx>) and add the web part.
29
+
30
+
To test it on Teams, once the project deployed on the tenant accordingly, add the web part as a Tab (from a team for example).
31
+
32
+
To update the host component, open the *ControlsTest* React component located in the following project's relative path: *src\webparts\controlsTest\components\ControlsTest.tsx*.
33
+
34
+
#### SPFx application customizer
35
+
36
+
This extension is called *TestApplicationCustomizer*. To test it, go to the following URL (after updating the parameters):
To update the host component, open the *TestApp* React component located in the following project's relative path: *src\extensions\testApp\TestApp.tsx*.
41
+
42
+
#### SPFx form customizer
43
+
44
+
This extension is called *TestForm*. To test it, you have to configure it first:
45
+
46
+
1. Open the *serve.json* file (located in the *config* folder)
47
+
2. Replace the `rootFolder` property (under `serveConfigurations` ==> `default` ==> `formCustomizer`), which contains a server relative URL, to target the list on which you want to test the extension
48
+
49
+
Then go to the following URL (after updating the parameters):
To update the host component, open the *TestForm* React component located in the following project's relative path: *src\extensions\testForm\components\TestForm.tsx*.
0 commit comments