include ace in config.json

This commit is contained in:
Marcin Wojciechowski 2022-05-05 15:52:15 +02:00
parent 28dc095ac9
commit a980fd6fa4
4 changed files with 53 additions and 7 deletions

View File

@ -7,12 +7,17 @@
{
"entrypoint": "./lib/webparts/graphAutoBatching/GraphAutoBatchingWebPart.js",
"manifest": "./src/webparts/graphAutoBatching/GraphAutoBatchingWebPart.manifest.json"
},
{
"entrypoint": "./lib/adaptiveCardExtensions/profileCard/ProfileCardAdaptiveCardExtension.js",
"manifest": "./src/adaptiveCardExtensions/profileCard/ProfileCardAdaptiveCardExtension.manifest.json"
}
]
}
},
"externals": {},
"localizedResources": {
"GraphAutoBatchingWebPartStrings": "lib/webparts/graphAutoBatching/loc/{locale}.js"
"GraphAutoBatchingWebPartStrings": "lib/webparts/graphAutoBatching/loc/{locale}.js",
"ProfileCardAdaptiveCardExtensionStrings": "lib/adaptiveCardExtensions/profileCard/loc/{locale}.js"
}
}

View File

@ -12,5 +12,19 @@ build.rig.getTasks = function () {
return result;
};
build.configureWebpack.mergeConfig({
additionalConfiguration: (generatedConfiguration) => {
generatedConfiguration.node = {
fs: 'empty'
},
generatedConfiguration.module.rules.unshift(
{
test: /\.resx$/,
loader: "xml-loader",
}
)
return generatedConfiguration;
}
});
build.initialize(require('gulp'));

View File

@ -2466,6 +2466,21 @@
"typescript": "~3.7.2"
}
},
"@microsoft/sp-adaptive-card-extension-base": {
"version": "1.13.0-beta.17",
"resolved": "https://registry.npmjs.org/@microsoft/sp-adaptive-card-extension-base/-/sp-adaptive-card-extension-base-1.13.0-beta.17.tgz",
"integrity": "sha512-7dN6fMG1WMPptPnhrsKo/cCZIBSWt9ypEfr80aatwT+DSrnezi4aZgz4gQZ1sQc2KdEjpeoikQRajZlnM6/zUg==",
"requires": {
"@microsoft/sp-component-base": "1.13.0-beta.17",
"@microsoft/sp-core-library": "1.13.0-beta.17",
"@microsoft/sp-diagnostics": "1.13.0-beta.17",
"@microsoft/sp-loader": "1.13.0-beta.17",
"@microsoft/sp-lodash-subset": "1.13.0-beta.17",
"@microsoft/sp-module-interfaces": "1.13.0-beta.17",
"@microsoft/sp-property-pane": "1.13.0-beta.17",
"tslib": "~1.10.0"
}
},
"@microsoft/sp-build-core-tasks": {
"version": "1.13.0-beta.17",
"resolved": "https://registry.npmjs.org/@microsoft/sp-build-core-tasks/-/sp-build-core-tasks-1.13.0-beta.17.tgz",
@ -24233,6 +24248,16 @@
"integrity": "sha1-eLpyAgApxbyHuKgaPPzXS0ovweU=",
"dev": true
},
"xml-loader": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/xml-loader/-/xml-loader-1.2.1.tgz",
"integrity": "sha1-A0hNpxDETTYQ3TbCr0CUs1tPeXU=",
"dev": true,
"requires": {
"loader-utils": "^1.0.0",
"xml2js": "^0.4.16"
}
},
"xml-name-validator": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz",

View File

@ -9,14 +9,15 @@
"test": "gulp test"
},
"dependencies": {
"react": "16.9.0",
"react-dom": "16.9.0",
"office-ui-fabric-react": "7.156.0",
"@microsoft/sp-adaptive-card-extension-base": "1.13.0-beta.17",
"@microsoft/sp-core-library": "1.13.0-beta.17",
"@microsoft/sp-lodash-subset": "1.13.0-beta.17",
"@microsoft/sp-office-ui-fabric-core": "1.13.0-beta.17",
"@microsoft/sp-property-pane": "1.13.0-beta.17",
"@microsoft/sp-webpart-base": "1.13.0-beta.17",
"@microsoft/sp-lodash-subset": "1.13.0-beta.17",
"@microsoft/sp-office-ui-fabric-core": "1.13.0-beta.17"
"office-ui-fabric-react": "7.156.0",
"react": "16.9.0",
"react-dom": "16.9.0"
},
"devDependencies": {
"@microsoft/rush-stack-compiler-3.7": "0.2.3",
@ -35,7 +36,8 @@
"jest": "^27.4.7",
"jest-environment-jsdom": "^27.4.6",
"jsdom": "^19.0.0",
"ts-jest": "^27.1.3"
"ts-jest": "^27.1.3",
"xml-loader": "^1.2.1"
},
"jest": {
"transform": {