update package, devcontainer and readme

This commit is contained in:
Don 2022-10-20 10:01:21 -05:00
parent 6f08728c40
commit f062b18d26
5 changed files with 3919 additions and 11 deletions

View File

@ -1,7 +1,7 @@
// For more information on how to run this SPFx project in a VS Code Remote Container, please visit https://aka.ms/spfx-devcontainer // For more information on how to run this SPFx project in a VS Code Remote Container, please visit https://aka.ms/spfx-devcontainer
{ {
"name": "SPFx 1.9.1", "name": "SPFx 1.14.0",
"image": "docker.io/m365pnp/spfx:1.9.1", "image": "docker.io/m365pnp/spfx:1.14.0",
// Set *default* container specific settings.json values on container create. // Set *default* container specific settings.json values on container create.
"settings": {}, "settings": {},
// Add the IDs of extensions you want installed when the container is created. // Add the IDs of extensions you want installed when the container is created.
@ -34,6 +34,6 @@
"requireLocalPort": true "requireLocalPort": true
} }
}, },
"postCreateCommand": "bash .devcontainer/spfx-startup.sh", "postCreateCommand": "bash .devcontainer/spfx-startup.sh"//,
"remoteUser": "node" //"remoteUser": "node"
} }

View File

@ -7,9 +7,11 @@ echo
echo -e "\e[1;94mGenerating dev certificate\e[0m" echo -e "\e[1;94mGenerating dev certificate\e[0m"
gulp trust-dev-cert gulp trust-dev-cert
# Convert the generated PEM certificate to a CER certificate
openssl x509 -inform PEM -in ~/.rushstack/rushstack-serve.pem -outform DER -out ./spfx-dev-cert.cer
cp ~/.gcb-serve-data/gcb-serve.cer ./spfx-dev-cert.cer # Copy the PEM ecrtificate for non-Windows hosts
cp ~/.gcb-serve-data/gcb-serve.cer ./spfx-dev-cert.pem cp ~/.rushstack/rushstack-serve.pem ./spfx-dev-cert.pem
## add *.cer to .gitignore to prevent certificates from being saved in repo ## add *.cer to .gitignore to prevent certificates from being saved in repo
if ! grep -Fxq '*.cer' ./.gitignore if ! grep -Fxq '*.cer' ./.gitignore
@ -24,8 +26,8 @@ if ! grep -Fxq '*.pem' ./.gitignore
echo "# .PEM Certificates" >> .gitignore echo "# .PEM Certificates" >> .gitignore
echo "*.pem" >> .gitignore echo "*.pem" >> .gitignore
fi fi
npm i -g @pnp/cli-microsoft365
echo echo
echo -e "\e[1;92mReady!\e[0m" echo -e "\e[1;92mReady!\e[0m"
echo -e "\n\e[1;94m**********\nOptional: if you plan on using gulp serve, don't forget to add the container certificate to your local machine. Please visit https://aka.ms/spfx-devcontainer for more information\n**********" echo -e "\n\e[1;94m**********\nOptional: if you plan on using gulp serve, don't forget to add the container certificate to your local machine. Please visit https://aka.ms/spfx-devcontainer for more information\n**********"

View File

@ -41,8 +41,8 @@ Path can be `/sites/mysc/style library/js/custom.js` or `/sites/mysc/style libra
## Compatibility ## Compatibility
![SPFx 1.9.1](https://img.shields.io/badge/SPFx-1.9.1-green.svg) ![SPFx 1.14.0](https://img.shields.io/badge/SPFx-1.14.0-green.svg)
![Node.js v10 | v8](https://img.shields.io/badge/Node.js-v10%20%7C%20v8-green.svg) ![Node.js v14 | v12](https://img.shields.io/badge/Node.js-v14%20%7C%20v12-green.svg)
![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-green.svg) ![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-green.svg)
![Does not work with SharePoint 2019](https://img.shields.io/badge/SharePoint%20Server%202019-Incompatible-red.svg "SharePoint Server 2019 requires SPFx 1.4.1 or lower") ![Does not work with SharePoint 2019](https://img.shields.io/badge/SharePoint%20Server%202019-Incompatible-red.svg "SharePoint Server 2019 requires SPFx 1.4.1 or lower")
![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1") ![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1")

File diff suppressed because it is too large Load Diff

View File

@ -17,6 +17,7 @@
"@microsoft/sp-office-ui-fabric-core": "1.14.0", "@microsoft/sp-office-ui-fabric-core": "1.14.0",
"@microsoft/sp-property-pane": "1.14.0", "@microsoft/sp-property-pane": "1.14.0",
"@microsoft/sp-webpart-base": "1.14.0", "@microsoft/sp-webpart-base": "1.14.0",
"@pnp/cli-microsoft365": "^5.8.0",
"@pnp/sp": "^2.0.3", "@pnp/sp": "^2.0.3",
"@pnp/spfx-controls-react": "1.16.0", "@pnp/spfx-controls-react": "1.16.0",
"office-ui-fabric-react": "7.174.1", "office-ui-fabric-react": "7.174.1",