Skip to content

Commit c47b1ea

Browse files
authored
Updated resolving dependancies
By using 'npm ci' instead of 'npm install' you can significantly improve the speed of the build process
1 parent 677663f commit c47b1ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/spfx/toolchain/implement-ci-cd-with-azure-devops.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ Once the Build Definition has been created, the first thing you need to do is in
4545
4646
### Restoring dependencies
4747

48-
Because third party dependencies are not stored in the source control, you need to restore those before starting to build the project. To do so add a `npm` task and set the command to `install`.
48+
Because third party dependencies are not stored in the source control, you need to restore those before starting to build the project. To do so add a `npm` task and set the Command to `custom` and the Command and arguments to `ci`.
4949
![installing dependencies](../../images/azure-devops-spfx-03.png)
5050

51+
5152
### Executing Unit Tests
5253

5354
The SharePoint Framework does not provide a testing framework by default (since 1.8.0), we will leverage Jest with this sample. These modules will be installed in a later step and it is highly recommended at a minimum to test the business logic of your code to get feedback on any potential issues or regressions as soon as possible. To have Azure DevOps execute your unit tests, add a `npm` task. Set the `command` to `custom` and `custom command` field, enter `test`. Then set the `Working Directory` option to `$(Build.SourcesDirectory)`.

0 commit comments

Comments
 (0)