Skip to content

Commit 591ba99

Browse files
committed
Upgraded to SPFx 1.6
1 parent 9727732 commit 591ba99

17 files changed

Lines changed: 8614 additions & 5548 deletions

.yo-rc.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
22
"@microsoft/generator-sharepoint": {
3-
"version": "1.4.1",
3+
"isCreatingSolution": true,
4+
"environment": "spo",
5+
"version": "1.6.0",
46
"libraryName": "react-application-injectcss",
57
"libraryId": "b2322574-549b-4510-99d8-1351d9457a97",
6-
"environment": "spo"
8+
"packageManager": "npm",
9+
"componentType": "extension",
10+
"extensionType": "ApplicationCustomizer"
711
}
8-
}
12+
}

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You can deploy the application customizer with different settings to point to di
1616

1717
## Used SharePoint Framework Version
1818

19-
![SPFx v1.4.1](https://img.shields.io/badge/SPFx-1.4.1-green.svg)
19+
![SPFx v1.6](https://img.shields.io/badge/SPFx-1.6-green.svg)
2020

2121
## Applies to
2222

@@ -34,6 +34,7 @@ react-application-injectcss|Hugo Bernier ([Tahoe Ninjas](http://tahoeninjas.blog
3434
Version|Date|Comments
3535
-------|----|--------
3636
1.0.0|07 May, 2018|Initial release
37+
1.1.0|18 October, 2018|Updated to SPFx 1.6
3738

3839
## Disclaimer
3940

@@ -60,24 +61,24 @@ Version|Date|Comments
6061
border-radius: 50%;
6162
}
6263
```
63-
* upload the CSS file to a shared location on your SharePoint tenant. For example, in the `Styles Library` of the root site collection.
64-
* get the URL to your custom CSS. For example: `/Style%20Library/custom.css`
64+
* Upload the CSS file to a shared location on your SharePoint tenant. For example, in the `Styles Library` of the root site collection.
65+
* Get the URL to your custom CSS. For example: `/Style%20Library/custom.css`
6566

66-
* update _serve.json_ pointing to your site collection home page change the `cssurl` property with the URL to your custom CSS.
67-
* run _gulp serve_
67+
* Update _serve.json_ pointing to your site collection home page change the `cssurl` property with the URL to your custom CSS.
68+
* Run _gulp serve_
6869

6970
## Deployment to Production
7071

71-
* located the `elements.xml` file, in the `sharepoint` > `assets` folder
72-
* change the `ClientSideComponentProperties` to point to your custom CSS URL.
73-
* run _gulp bundle --ship_
74-
* run _gulp package-solution --ship_
75-
* upload the `react-application-injectcss.sppkg` from the `sharepoint` folder to your App catalog.
76-
* when prompted to deploy to all sites, choose the option that suits your needs.
72+
* Locate the `elements.xml` file, in the `sharepoint` > `assets` folder
73+
* Change the `ClientSideComponentProperties` to point to your custom CSS URL.
74+
* Run _gulp bundle --ship_
75+
* Run _gulp package-solution --ship_
76+
* Upload the `react-application-injectcss.sppkg` from the `sharepoint` folder to your App catalog.
77+
* When prompted to deploy to all sites, choose the option that suits your needs.
7778

7879
## Features
7980

80-
Sample SharePoint Framework application customiser injecting a custom CSS in the HTML header.
81+
Sample SharePoint Framework Application Customiser which injects a custom CSS in the HTML header.
8182

8283
This sample illustrates the following concepts on top of the SharePoint Framework:
8384

config/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://dev.office.com/json-schemas/spfx-build/config.2.0.schema.json",
2+
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json",
33
"version": "2.0",
44
"bundles": {
55
"inject-css-application-customizer": {

config/copy-assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"$schema": "https://dev.office.com/json-schemas/spfx-build/copy-assets.schema.json",
2+
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/copy-assets.schema.json",
33
"deployCdnPath": "temp/deploy"
44
}

config/deploy-azure-storage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"$schema": "https://dev.office.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
2+
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
33
"workingDir": "./temp/deploy/",
44
"account": "<!-- STORAGE ACCOUNT NAME -->",
55
"container": "react-application-injectcss",
66
"accessKey": "<!-- ACCESS KEY -->"
7-
}
7+
}

config/package-solution.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
{
2-
"$schema": "https://dev.office.com/json-schemas/spfx-build/package-solution.schema.json",
2+
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
33
"solution": {
44
"name": "react-application-injectcss-client-side-solution",
55
"id": "b2322574-549b-4510-99d8-1351d9457a97",
6-
"version": "1.0.0.0",
6+
"version": "1.1.0.0",
77
"includeClientSideAssets": true,
8-
"skipFeatureDeployment": true
8+
"skipFeatureDeployment": true,
9+
"features": [
10+
{
11+
"title": "Inject CSS Application Extension",
12+
"description": "Injects custom CSS to make minor style modifications to SharePoint Online",
13+
"id": "fcea9230-7f22-45b7-815c-081a49474611",
14+
"version": "1.1.0.0",
15+
"assets": {
16+
"elementManifests": [
17+
"elements.xml",
18+
"clientsideinstance.xml"
19+
]
20+
}
21+
}
22+
]
923
},
1024
"paths": {
1125
"zippedPackage": "solution/react-application-injectcss.sppkg"

config/serve.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://dev.office.com/json-schemas/core-build/serve.schema.json",
2+
"$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json",
33
"port": 4321,
44
"https": true,
55
"serveConfigurations": {

config/tslint.json

Lines changed: 0 additions & 45 deletions
This file was deleted.

config/write-manifests.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"$schema": "https://dev.office.com/json-schemas/spfx-build/write-manifests.schema.json",
2+
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/write-manifests.schema.json",
33
"cdnBasePath": "<!-- PATH TO CDN -->"
4-
}
4+
}

0 commit comments

Comments
 (0)