Aktualisiere Paketnamen und -titel auf "accordion-web-part" in Konfigurationsdateien

This commit is contained in:
Torsten Brendgen
2026-08-24 10:36:03 +02:00
parent 4426893c8b
commit 200825c4af
4 changed files with 10 additions and 8 deletions
+2 -3
View File
@@ -1,12 +1,11 @@
{ {
"@microsoft/generator-sharepoint": { "@microsoft/generator-sharepoint": {
"version": "1.4.1", "version": "1.4.1",
"libraryName": "accordion", "libraryName": "accordion-web-part",
"libraryId": "27a6fd90-42a1-4e39-8862-08ed0e7803bc", "libraryId": "27a6fd90-42a1-4e39-8862-08ed0e7803bc",
"environment": "onprem", "environment": "onprem",
"packageManager": "npm", "packageManager": "npm",
"solutionName": "accordion", "solutionName": "accordion-web-part",
"componentType": "webpart" "componentType": "webpart"
} }
} }
+1 -1
View File
@@ -49,7 +49,7 @@ npm install
npm run package npm run package
``` ```
Das Paket wird unter `sharepoint/solution/accordion.sppkg` erzeugt. Es kann im App Catalog zentral bereitgestellt Das Paket wird unter `sharepoint/solution/accordion-web-part.sppkg` erzeugt. Es kann im App Catalog zentral bereitgestellt
werden. Danach steht das WebPart unter dem Namen **Accordion** beziehungsweise **Akkordeon** im WebPart-Picker zur Verfügung. werden. Danach steht das WebPart unter dem Namen **Accordion** beziehungsweise **Akkordeon** im WebPart-Picker zur Verfügung.
## Sicherheit ## Sicherheit
+3 -4
View File
@@ -1,15 +1,14 @@
{ {
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json", "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
"solution": { "solution": {
"name": "accordion-client-side-solution", "name": "accordion-web-part",
"title": "Accordion", "title": "accordion-web-part",
"id": "27a6fd90-42a1-4e39-8862-08ed0e7803bc", "id": "27a6fd90-42a1-4e39-8862-08ed0e7803bc",
"version": "1.0.0.0", "version": "1.0.0.0",
"includeClientSideAssets": true, "includeClientSideAssets": true,
"skipFeatureDeployment": true "skipFeatureDeployment": true
}, },
"paths": { "paths": {
"zippedPackage": "solution/accordion.sppkg" "zippedPackage": "solution/accordion-web-part.sppkg"
} }
} }
+4
View File
@@ -22,6 +22,10 @@ assert(packageJson.version === '1.0.0', 'Package version must be 1.0.0.');
assert(solution.version === '1.0.0.0', 'Solution version must be 1.0.0.0.'); assert(solution.version === '1.0.0.0', 'Solution version must be 1.0.0.0.');
assert(solution.includeClientSideAssets === true, 'Client-side assets must be included.'); assert(solution.includeClientSideAssets === true, 'Client-side assets must be included.');
assert(solution.skipFeatureDeployment === true, 'Solution must support central deployment.'); assert(solution.skipFeatureDeployment === true, 'Solution must support central deployment.');
assert(packageJson.name === 'accordion-web-part' && solution.name === 'accordion-web-part' &&
solution.title === 'accordion-web-part', 'Accordion package naming is inconsistent.');
assert(json('config/package-solution.json').paths.zippedPackage === 'solution/accordion-web-part.sppkg',
'Accordion package file name is inconsistent.');
assert(manifest.componentType === 'WebPart', 'Component must be a web part.'); assert(manifest.componentType === 'WebPart', 'Component must be a web part.');
assert(!!config.bundles['accordion-web-part'], 'Accordion bundle is missing.'); assert(!!config.bundles['accordion-web-part'], 'Accordion bundle is missing.');
assert(webPart.indexOf("PropertyPaneDropdown('listId'") >= 0, 'Dynamic list selection is missing.'); assert(webPart.indexOf("PropertyPaneDropdown('listId'") >= 0, 'Dynamic list selection is missing.');