Expand Minimize

How to: Run SPCAF from gulp

This functionality is meant for use with SharePoint Framework projects.

Running SPCAF analysis of your SharePoint Framework project from gulp allows you to stay productive and easily check if there are any issues in your project. If any issues are found you can quickly fix them.

Before you can run SPCAF analysis of your SharePoint Framework project from gulp you need to run the SPCAF Yeoman generator on that project. For more information see How to: Add support for analysis of SharePoint Framework projects from gulp and Visual Studio Code using the SPCAF Yeoman generator

To run SPCAF analysis of your SharePoint Framework project from gulp in the command line execute:

gulp spcaf

This will trigger the standard SharePoint Framework bundle task. Once the bundle process is completed, SPCAF analysis will start. Any issues discovered during the analysis will be reported directly to the command line.

For each discovered issue you can see in which file and on which line the rule violation occurred.

See also

Run SPCAF analysis of SharePoint Framework project from gulp (video):

Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.