Fixed standard npm commands

This commit is contained in:
Hugo Bernier 2021-11-07 02:18:53 -05:00
parent c7fecfd583
commit e78e1f22c1
18 changed files with 39 additions and 51 deletions

View File

@ -55,8 +55,8 @@ Version|Date|Comments
- Clone this repository - Clone this repository
- Ensure that you are at the solution folder - Ensure that you are at the solution folder
- in the command-line run: - in the command-line run:
- **npm install** - `npm install`
- **gulp serve** - `gulp serve`
## Features ## Features

View File

@ -42,8 +42,8 @@ Version|Date|Comments
- Clone this repository - Clone this repository
- Ensure that you are at the solution folder - Ensure that you are at the solution folder
- in the command-line run: - in the command-line run:
- **npm install** - `npm install`
- **gulp serve** - `gulp serve`
## Features ## Features

View File

@ -57,7 +57,7 @@ Version|Date|Comments
- `gulp build` - `gulp build`
- `gulp bundle --ship` - `gulp bundle --ship`
- `gulp package-solution --ship` - `gulp package-solution --ship`
- `Add to AppCatalog and deploy` - Add to AppCatalog and deploy
## Help ## Help

View File

@ -59,8 +59,8 @@ Version|Date|Comments
- Clone this repository - Clone this repository
- Ensure that you are at the solution folder - Ensure that you are at the solution folder
- in the command-line run: - in the command-line run:
- **npm install** - `npm install`
- **gulp serve** - `gulp serve`
For any issue or help, Buzz us on twitter:([sanganikunj](https://twitter.com/sanganikunj)) or ([siddh_me](https://twitter.com/siddh_me/)) For any issue or help, Buzz us on twitter:([sanganikunj](https://twitter.com/sanganikunj)) or ([siddh_me](https://twitter.com/siddh_me/))

View File

@ -80,7 +80,7 @@ You may be wondering how maintaining state, side effects or other complexities c
## Building and testing ## Building and testing
In the react-functional-component directory run **npm install** to resolve all the dependencies. Once this has completed you can run **gulp serve** to test the web part in the local workbench. In the react-functional-component directory run `npm install` to resolve all the dependencies. Once this has completed you can run `gulp serve` to test the web part in the local workbench.
## Disclaimer ## Disclaimer

View File

@ -89,7 +89,7 @@ The *resultCaption* property is also rendered if defined.
## Building and testing ## Building and testing
In the react-functional-component directory run **npm install** to resolve all the dependencies. Once this has completed you can run **gulp serve** to test the web part in the local workbench. In the react-functional-component directory run `npm install` to resolve all the dependencies. Once this has completed you can run `gulp serve` to test the web part in the local workbench.

View File

@ -79,13 +79,13 @@ Version|Date|Comments
- Clone this repository - Clone this repository
- Ensure that you are at the solution folder - Ensure that you are at the solution folder
- in the command-line run: - in the command-line run:
- **npm install** - `npm install`
- **gulp bundle** - `gulp bundle`
- **gulp package-solution** - `gulp package-solution`
- Deploy the generated *.sppkg to your App Catalog - Deploy the generated *.sppkg to your App Catalog
- Approve the Microsoft Graph scopes - Approve the Microsoft Graph scopes
- in the command-line run: - in the command-line run:
- **gulp serve** - `gulp serve`
## Features ## Features

View File

@ -42,10 +42,8 @@ Version|Date|Comments
- Clone this repository - Clone this repository
- Ensure that you are at the solution folder - Ensure that you are at the solution folder
- in the command-line run: - in the command-line run:
- **npm install** - `npm install`
- **gulp serve** - `gulp serve`
> Include any additional steps as needed.
## Features ## Features
@ -57,10 +55,6 @@ This extension illustrates the following concepts:
- Load the data into a paginated list - Load the data into a paginated list
- Display the data in a Hero style format - Display the data in a Hero style format
> Notice that better pictures and documentation will increase the sample usage and the value you are providing for others. Thanks for your submissions advance.
> Share your web part with others through Microsoft 365 Patterns and Practices program to get visibility and exposure. More details on the community, open-source projects and other activities from http://aka.ms/m365pnp.
## References ## References
- [Getting started with SharePoint Framework](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-developer-tenant) - [Getting started with SharePoint Framework](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-developer-tenant)
@ -84,5 +78,4 @@ Finally, if you have an idea for improvement, [make a suggestion](https://github
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.** **THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
<img src="https://telemetry.sharepointpnp.com/sp-dev-fx-webparts/samples/react-hero-webpart" /> <img src="https://telemetry.sharepointpnp.com/sp-dev-fx-webparts/samples/react-hero-webpart" />

View File

@ -76,11 +76,9 @@ Version|Date|Comments
- Clone this repository - Clone this repository
- Ensure that you are at the solution folder - Ensure that you are at the solution folder
- in the command-line run: - in the command-line run:
- **npm install** - `npm install`
- edit config\serve.json set "initialPage": "https://{tenant}.sharepoint.com/_layouts/15/workbench.aspx" - edit `config\serve.json` set `"initialPage": "https://{tenant}.sharepoint.com/_layouts/15/workbench.aspx"`
- **gulp serve** - `gulp serve`
> Include any additional steps as needed.
## Usage ## Usage

View File

@ -120,11 +120,6 @@ Version|Date|Comments
-------|----|-------- -------|----|--------
1.0.0|April 08, 2019|Initial release 1.0.0|April 08, 2019|Initial release
## Disclaimer
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
---
## Minimal Path to Awesome ## Minimal Path to Awesome
- Clone this repository - Clone this repository
@ -134,6 +129,9 @@ Version|Date|Comments
- `gulp build` - `gulp build`
- `gulp bundle --ship` - `gulp bundle --ship`
- `gulp package-solution --ship` - `gulp package-solution --ship`
- `Add to AppCatalog and deploy` - Add to AppCatalog and deploy
## Disclaimer
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
<img src="https://telemetry.sharepointpnp.com/sp-dev-fx-webparts/samples/react-manage-sitedesigns" /> <img src="https://telemetry.sharepointpnp.com/sp-dev-fx-webparts/samples/react-manage-sitedesigns" />

View File

@ -70,8 +70,8 @@ Version|Date|Comments
- Clone this repository - Clone this repository
- Ensure that you are at the solution folder - Ensure that you are at the solution folder
- in the command-line run: - in the command-line run:
- **npm install** - `npm install`
- **gulp serve** - `gulp serve`
## References ## References

View File

@ -72,8 +72,8 @@ Version|Date|Comments
- Clone this repository - Clone this repository
- Ensure that you are at the solution folder - Ensure that you are at the solution folder
- in the command-line run: - in the command-line run:
- **npm install** - `npm install`
- **gulp serve** - `gulp serve`
## References ## References

View File

@ -98,9 +98,8 @@ Version|Date|Comments
- `gulp build` - `gulp build`
- `gulp bundle --ship` - `gulp bundle --ship`
- `gulp package-solution --ship` - `gulp package-solution --ship`
- `Add to AppCatalog and deploy` - Add to AppCatalog and deploy
- `go to SharePoint Admin Center and Approve required API Permissions` - go to **SharePoint Admin Center** and approve required API Permissions
## Help ## Help

View File

@ -45,9 +45,9 @@ Access to a SharePoint online site with various tenant users granted access to v
- Clone this repository - Clone this repository
- Ensure that you are at the solution folder - Ensure that you are at the solution folder
- in the command-line run: - in the command-line run:
- **npm install** - `npm install`
- **gulp trust-dev-cert** - `gulp trust-dev-cert`
- **gulp serve --nobrowser** - `gulp serve --nobrowser`
- Open the hosted workbench on a SharePoint site - i.e. https://_tenant_.sharepoint.com/site/_sitename_/_layouts/workbench.aspx - Open the hosted workbench on a SharePoint site - i.e. https://_tenant_.sharepoint.com/site/_sitename_/_layouts/workbench.aspx
- Add the User and Group Info web part to the page. - Add the User and Group Info web part to the page.
- View the current user's information and the 'user' information for any Azure AD groups the user belongs to which are also known to the SharePoint site. - View the current user's information and the 'user' information for any Azure AD groups the user belongs to which are also known to the SharePoint site.

View File

@ -42,8 +42,8 @@ Version|Date|Comments
- Clone this repository - Clone this repository
- Ensure that you are at the solution folder - Ensure that you are at the solution folder
- In the command-line run: - In the command-line run:
- **npm install** - `npm install`
- **npm run package** - `npm run package`
- Upload the generated SPPKG file into the SharePoint App Catalog of your tenant - Upload the generated SPPKG file into the SharePoint App Catalog of your tenant
- Select the SPPKG in the App Catalog and click on "Sync to Teams" button - Select the SPPKG in the App Catalog and click on "Sync to Teams" button
- Add the web part to a SharePoint page - Add the web part to a SharePoint page

View File

@ -57,7 +57,7 @@ Version|Date|Comments
- `gulp build` - `gulp build`
- `gulp bundle --ship` - `gulp bundle --ship`
- `gulp package-solution --ship` - `gulp package-solution --ship`
- `Add to AppCatalog and deploy` - Add to AppCatalog and deploy
## Help ## Help

View File

@ -59,9 +59,9 @@ In this section we will make changes to the sample FieldVisit project
5. Copy file **constants.sample.ts** in src\webparts\fieldvisittab to **constants.ts** 5. Copy file **constants.sample.ts** in src\webparts\fieldvisittab to **constants.ts**
6. Open constants.ts and update keys with your own keys. **NOTE:** These keys are used to retrieve map and weather from Bing. If you do not provide a valid key, maps and weather will not be displayed 6. Open constants.ts and update keys with your own keys. **NOTE:** These keys are used to retrieve map and weather from Bing. If you do not provide a valid key, maps and weather will not be displayed
7. In Visual Studio Code, click on menu **Terminal -> New Terminal** 7. In Visual Studio Code, click on menu **Terminal -> New Terminal**
8. Issue command **gulp bundle -ship** 8. Issue command `gulp bundle -ship`
9. Issue command **gulp trust-dev-cert** (**NOTE:** This step needs to be performed only once per development machine) 9. Issue command `gulp trust-dev-cert` (**NOTE:** This step needs to be performed only once per development machine)
10. Issue command **gulp package-solution -ship** 10. Issue command `gulp package-solution -ship`
11. Ensure there are no errors for any of these commands. 11. Ensure there are no errors for any of these commands.
## 4. Deploying Solution in SharePoint ## 4. Deploying Solution in SharePoint

View File

@ -45,8 +45,8 @@ Version|Date|Comments
- Clone this repository - Clone this repository
- Ensure that you are at the solution folder - Ensure that you are at the solution folder
- in the command-line run: - in the command-line run:
- **npm install** - `npm install`
- **gulp serve** - `gulp serve`
> Include any additional steps as needed. > Include any additional steps as needed.