Fixed standard npm commands
This commit is contained in:
parent
c7fecfd583
commit
e78e1f22c1
|
@ -55,8 +55,8 @@ Version|Date|Comments
|
|||
- Clone this repository
|
||||
- Ensure that you are at the solution folder
|
||||
- in the command-line run:
|
||||
- **npm install**
|
||||
- **gulp serve**
|
||||
- `npm install`
|
||||
- `gulp serve`
|
||||
|
||||
## Features
|
||||
|
||||
|
|
|
@ -42,8 +42,8 @@ Version|Date|Comments
|
|||
- Clone this repository
|
||||
- Ensure that you are at the solution folder
|
||||
- in the command-line run:
|
||||
- **npm install**
|
||||
- **gulp serve**
|
||||
- `npm install`
|
||||
- `gulp serve`
|
||||
|
||||
## Features
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ Version|Date|Comments
|
|||
- `gulp build`
|
||||
- `gulp bundle --ship`
|
||||
- `gulp package-solution --ship`
|
||||
- `Add to AppCatalog and deploy`
|
||||
- Add to AppCatalog and deploy
|
||||
|
||||
|
||||
## Help
|
||||
|
|
|
@ -59,8 +59,8 @@ Version|Date|Comments
|
|||
- Clone this repository
|
||||
- Ensure that you are at the solution folder
|
||||
- in the command-line run:
|
||||
- **npm install**
|
||||
- **gulp serve**
|
||||
- `npm install`
|
||||
- `gulp serve`
|
||||
|
||||
|
||||
For any issue or help, Buzz us on twitter:([sanganikunj](https://twitter.com/sanganikunj)) or ([siddh_me](https://twitter.com/siddh_me/))
|
||||
|
|
|
@ -80,7 +80,7 @@ You may be wondering how maintaining state, side effects or other complexities c
|
|||
|
||||
## 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
|
||||
|
|
|
@ -89,7 +89,7 @@ The *resultCaption* property is also rendered if defined.
|
|||
|
||||
## 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.
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -79,13 +79,13 @@ Version|Date|Comments
|
|||
- Clone this repository
|
||||
- Ensure that you are at the solution folder
|
||||
- in the command-line run:
|
||||
- **npm install**
|
||||
- **gulp bundle**
|
||||
- **gulp package-solution**
|
||||
- `npm install`
|
||||
- `gulp bundle`
|
||||
- `gulp package-solution`
|
||||
- Deploy the generated *.sppkg to your App Catalog
|
||||
- Approve the Microsoft Graph scopes
|
||||
- in the command-line run:
|
||||
- **gulp serve**
|
||||
- `gulp serve`
|
||||
|
||||
|
||||
## Features
|
||||
|
|
|
@ -42,10 +42,8 @@ Version|Date|Comments
|
|||
- Clone this repository
|
||||
- Ensure that you are at the solution folder
|
||||
- in the command-line run:
|
||||
- **npm install**
|
||||
- **gulp serve**
|
||||
|
||||
> Include any additional steps as needed.
|
||||
- `npm install`
|
||||
- `gulp serve`
|
||||
|
||||
## Features
|
||||
|
||||
|
@ -57,10 +55,6 @@ This extension illustrates the following concepts:
|
|||
- Load the data into a paginated list
|
||||
- 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
|
||||
|
||||
- [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.**
|
||||
|
||||
|
||||
<img src="https://telemetry.sharepointpnp.com/sp-dev-fx-webparts/samples/react-hero-webpart" />
|
||||
|
|
|
@ -76,11 +76,9 @@ Version|Date|Comments
|
|||
- Clone this repository
|
||||
- Ensure that you are at the solution folder
|
||||
- in the command-line run:
|
||||
- **npm install**
|
||||
- edit config\serve.json set "initialPage": "https://{tenant}.sharepoint.com/_layouts/15/workbench.aspx"
|
||||
- **gulp serve**
|
||||
|
||||
> Include any additional steps as needed.
|
||||
- `npm install`
|
||||
- edit `config\serve.json` set `"initialPage": "https://{tenant}.sharepoint.com/_layouts/15/workbench.aspx"`
|
||||
- `gulp serve`
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
@ -120,11 +120,6 @@ Version|Date|Comments
|
|||
-------|----|--------
|
||||
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
|
||||
|
||||
- Clone this repository
|
||||
|
@ -134,6 +129,9 @@ Version|Date|Comments
|
|||
- `gulp build`
|
||||
- `gulp bundle --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" />
|
||||
|
|
|
@ -70,8 +70,8 @@ Version|Date|Comments
|
|||
- Clone this repository
|
||||
- Ensure that you are at the solution folder
|
||||
- in the command-line run:
|
||||
- **npm install**
|
||||
- **gulp serve**
|
||||
- `npm install`
|
||||
- `gulp serve`
|
||||
|
||||
## References
|
||||
|
||||
|
|
|
@ -72,8 +72,8 @@ Version|Date|Comments
|
|||
- Clone this repository
|
||||
- Ensure that you are at the solution folder
|
||||
- in the command-line run:
|
||||
- **npm install**
|
||||
- **gulp serve**
|
||||
- `npm install`
|
||||
- `gulp serve`
|
||||
|
||||
|
||||
## References
|
||||
|
|
|
@ -98,9 +98,8 @@ Version|Date|Comments
|
|||
- `gulp build`
|
||||
- `gulp bundle --ship`
|
||||
- `gulp package-solution --ship`
|
||||
- `Add to AppCatalog and deploy`
|
||||
- `go to SharePoint Admin Center and Approve required API Permissions`
|
||||
|
||||
- Add to AppCatalog and deploy
|
||||
- go to **SharePoint Admin Center** and approve required API Permissions
|
||||
|
||||
## Help
|
||||
|
||||
|
|
|
@ -45,9 +45,9 @@ Access to a SharePoint online site with various tenant users granted access to v
|
|||
- Clone this repository
|
||||
- Ensure that you are at the solution folder
|
||||
- in the command-line run:
|
||||
- **npm install**
|
||||
- **gulp trust-dev-cert**
|
||||
- **gulp serve --nobrowser**
|
||||
- `npm install`
|
||||
- `gulp trust-dev-cert`
|
||||
- `gulp serve --nobrowser`
|
||||
- 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.
|
||||
- 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.
|
||||
|
|
|
@ -42,8 +42,8 @@ Version|Date|Comments
|
|||
- Clone this repository
|
||||
- Ensure that you are at the solution folder
|
||||
- In the command-line run:
|
||||
- **npm install**
|
||||
- **npm run package**
|
||||
- `npm install`
|
||||
- `npm run package`
|
||||
- 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
|
||||
- Add the web part to a SharePoint page
|
||||
|
|
|
@ -57,7 +57,7 @@ Version|Date|Comments
|
|||
- `gulp build`
|
||||
- `gulp bundle --ship`
|
||||
- `gulp package-solution --ship`
|
||||
- `Add to AppCatalog and deploy`
|
||||
- Add to AppCatalog and deploy
|
||||
|
||||
|
||||
## Help
|
||||
|
|
|
@ -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**
|
||||
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**
|
||||
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)
|
||||
10. Issue command **gulp package-solution -–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)
|
||||
10. Issue command `gulp package-solution -–ship`
|
||||
11. Ensure there are no errors for any of these commands.
|
||||
|
||||
## 4. Deploying Solution in SharePoint
|
||||
|
|
|
@ -45,8 +45,8 @@ Version|Date|Comments
|
|||
- Clone this repository
|
||||
- Ensure that you are at the solution folder
|
||||
- in the command-line run:
|
||||
- **npm install**
|
||||
- **gulp serve**
|
||||
- `npm install`
|
||||
- `gulp serve`
|
||||
|
||||
> Include any additional steps as needed.
|
||||
|
||||
|
|
Loading…
Reference in New Issue