Aktualisiere Paketnamen und -pfade auf "dynamic-poll-web-part" in Konfigurationsdateien
This commit is contained in:
+2
-3
@@ -1,12 +1,11 @@
|
||||
{
|
||||
"@microsoft/generator-sharepoint": {
|
||||
"version": "1.4.1",
|
||||
"libraryName": "dynamic-poll",
|
||||
"libraryName": "dynamic-poll-web-part",
|
||||
"libraryId": "900239c9-b6c7-495d-a386-2d08a81a66f3",
|
||||
"environment": "onprem",
|
||||
"packageManager": "npm",
|
||||
"solutionName": "dynamic-poll",
|
||||
"solutionName": "dynamic-poll-web-part",
|
||||
"componentType": "webpart"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ npm install
|
||||
npm run package
|
||||
```
|
||||
|
||||
Das fertige Paket liegt unter `sharepoint/solution/dynamic-poll.sppkg`.
|
||||
Das fertige Paket liegt unter `sharepoint/solution/dynamic-poll-web-part.sppkg`.
|
||||
|
||||
## Hinweise
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
|
||||
"solution": {
|
||||
"name": "dynamic-poll-client-side-solution",
|
||||
"name": "dynamic-poll-web-part",
|
||||
"title": "dynamic-poll-web-part",
|
||||
"id": "900239c9-b6c7-495d-a386-2d08a81a66f3",
|
||||
"version": "1.0.0.0",
|
||||
"includeClientSideAssets": true,
|
||||
"skipFeatureDeployment": true
|
||||
},
|
||||
"paths": { "zippedPackage": "solution/dynamic-poll.sppkg" }
|
||||
"paths": { "zippedPackage": "solution/dynamic-poll-web-part.sppkg" }
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,10 @@ var styles = read('src/webparts/dynamicPoll/components/DynamicPoll.module.scss')
|
||||
|
||||
assert(packageJson.version === '1.0.0' && solution.version === '1.0.0.0', 'Version mismatch.');
|
||||
assert(solution.includeClientSideAssets === true && solution.skipFeatureDeployment === true, 'Central deployment missing.');
|
||||
assert(packageJson.name === 'dynamic-poll-web-part' && solution.name === 'dynamic-poll-web-part' &&
|
||||
solution.title === 'dynamic-poll-web-part', 'Dynamic Poll package naming is inconsistent.');
|
||||
assert(json('config/package-solution.json').paths.zippedPackage === 'solution/dynamic-poll-web-part.sppkg',
|
||||
'Dynamic Poll package file name is inconsistent.');
|
||||
assert(manifest.componentType === 'WebPart', 'Component is not a web part.');
|
||||
assert(webPart.indexOf("PropertyPaneDropdown('pollListId'") >= 0 && webPart.indexOf("PropertyPaneDropdown('answerListId'") >= 0,
|
||||
'List selection is missing.');
|
||||
|
||||
Reference in New Issue
Block a user