Skip to content

Commit 61adcaa

Browse files
committed
upgraded spfx to 1.15
upgraded pnpjs to v3
1 parent 9c17796 commit 61adcaa

23 files changed

+46271
-9211
lines changed

Module04/.editorconfig

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

Module04/.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
module.exports = {
3+
extends: ['@microsoft/eslint-config-spfx/lib/profiles/react'],
4+
parserOptions: { tsconfigRootDir: __dirname }
5+
};

Module04/.npmignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
!dist
2+
config
3+
4+
gulpfile.js
5+
6+
release
7+
src
8+
temp
9+
10+
tsconfig.json
11+
tslint.json
12+
13+
*.log
14+
15+
.yo-rc.json
16+
.vscode

Module04/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is where you include your WebPart documentation.
77
|------------------- | :----------------------------- |
88
|module04Demo1| <ul><li>simple helloworld demo</li><li>OOTB property pane control</li><li>PropertyPaneText</li></ul>|
99
|module04Demo2| custom property pane control ASyncDropdown|
10-
|module04Demo3| <ul><li>Data Access demonstration for SPO REST and PnPJS</li><li>React useContext</li></ul>|
10+
|module04Demo3| <ul><li>Data Access demonstration for SPO REST and PnPJS</li><li>React useContext</li><li>React Function Component</li></ul>|
1111
|module04Demo4| Single App Part and full width|
1212
|Module04DemoPublisher| <ul><li>Dynamic property publish</li><li>Web part icon</li></ul>|
1313
|Module04DemoSubscriber| Dynamic property subscribe|
Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
11
{
2-
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
3-
"solution": {
4-
"name": "module-04-demo-1-client-side-solution",
5-
"id": "1ba11062-44f3-401d-8ba1-0739af039466",
6-
"version": "1.0.0.0",
7-
"includeClientSideAssets": true,
8-
"isDomainIsolated": false
9-
},
10-
"paths": {
11-
"zippedPackage": "solution/module-04-demo-1.sppkg"
12-
}
13-
}
2+
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
3+
"solution": {
4+
"name": "module-04-demo-1-client-side-solution",
5+
"id": "1ba11062-44f3-401d-8ba1-0739af039466",
6+
"version": "1.0.0.0",
7+
"includeClientSideAssets": true,
8+
"isDomainIsolated": false
9+
},
10+
"developer": {
11+
"name": "",
12+
"websiteUrl": "",
13+
"privacyUrl": "",
14+
"termsOfUseUrl": "",
15+
"mpnId": "Undefined-1.15.0"
16+
},
17+
"metadata": {
18+
"shortDescription": {
19+
"default": "SPFxv1.15-1 description"
20+
},
21+
"longDescription": {
22+
"default": "SPFxv1.15-1 description"
23+
},
24+
"screenshotPaths": [],
25+
"videoUrl": "",
26+
"categories": []
27+
},
28+
"paths": {
29+
"zippedPackage": "solution/module-04-demo-1.sppkg"
30+
}
31+
}

Module04/config/serve.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
2-
"$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json",
3-
"port": 4321,
4-
"https": true,
5-
"initialPage": "https://localhost:5432/workbench",
6-
"api": {
7-
"port": 5432,
8-
"entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/"
9-
}
10-
}
2+
"$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json",
3+
"port": 4321,
4+
"https": true,
5+
"initialPage": "https://localhost:5432/workbench"
6+
}

Module04/gulpfile.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@ build.rig.getTasks = function () {
1313
return result;
1414
};
1515

16+
// ********* ADDED *******
17+
// disable tslint
18+
build.tslintCmd.enabled = false;
19+
// ********* ADDED *******
20+
1621
build.initialize(require('gulp'));

0 commit comments

Comments
 (0)