Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Apache License
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

Expand Down Expand Up @@ -186,7 +186,7 @@ Apache License
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 Mendix Technology BV
Copyright 2022 Mendix Technology B.V.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -198,4 +198,4 @@ Apache License
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
2 changes: 2 additions & 0 deletions automation/utils/src/steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ export async function addWidgetsToMpk({ config }: ModuleStepParams): Promise<voi

console.info(`Add file entries to package.xml`);
await addFilesToPackageXml(packageXml, packageFilePaths, "modelerProject");
console.log(`Copying License.txt...`);
cp(join(config.output.dirs.themesource, "LICENSE"), join(target, "License.txt"));
rm(mpk);

console.info("Create module zip archive");
Expand Down
6 changes: 3 additions & 3 deletions packages/modules/calendar/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Apache License
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

Expand Down Expand Up @@ -186,7 +186,7 @@ Apache License
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2025 Mendix Technology BV
Copyright 2022 Mendix Technology B.V.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -198,4 +198,4 @@ Apache License
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
6 changes: 3 additions & 3 deletions packages/modules/data-widgets/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Apache License
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

Expand Down Expand Up @@ -186,7 +186,7 @@ Apache License
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 Mendix Technology BV
Copyright 2022 Mendix Technology B.V.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -198,4 +198,4 @@ Apache License
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
6 changes: 3 additions & 3 deletions packages/modules/file-uploader/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Apache License
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

Expand Down Expand Up @@ -186,7 +186,7 @@ Apache License
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 Mendix Technology BV
Copyright 2022 Mendix Technology B.V.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -198,4 +198,4 @@ Apache License
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
2 changes: 2 additions & 0 deletions packages/pluggableWidgets/charts-web/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ async function repackChartWidgets({ config }: WidgetStepParams): Promise<void> {

console.log("Copying package.xml...");
cp(join(paths.package, "src", "package.xml"), join(paths.tmp, "package.xml"));
console.log("Copying License.txt...");
cp(join(paths.package, "../../../LICENSE"), join(paths.tmp, "License.txt"));
console.log("Creating mpk...");
await zip(paths.tmp, output.files.mpk);
}
Expand Down
1 change: 1 addition & 0 deletions packages/pluggableWidgets/combobox-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@mendix/eslint-config-web-widgets": "workspace:*",
"@mendix/pluggable-widgets-tools": "*",
"@mendix/prettier-config-web-widgets": "workspace:*",
"@mendix/rollup-web-widgets": "workspace:*",
"@mendix/run-e2e": "workspace:^*",
"@mendix/widget-plugin-component-kit": "workspace:*",
"@mendix/widget-plugin-grid": "workspace:*",
Expand Down
20 changes: 0 additions & 20 deletions packages/pluggableWidgets/combobox-web/rollup.config.js

This file was deleted.

5 changes: 5 additions & 0 deletions packages/pluggableWidgets/combobox-web/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import copyFiles from "@mendix/rollup-web-widgets/copyFiles.mjs";

export default args => {
return copyFiles(args);
};
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@babel/plugin-transform-private-methods": "^7.27.1",
"@babel/plugin-transform-private-property-in-object": "^7.27.1",
"@mendix/pluggable-widgets-tools": "*",
"@mendix/rollup-web-widgets": "workspace:*",
"@rollup/plugin-replace": "^6.0.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import commonjs from "@rollup/plugin-commonjs";
import replace from "@rollup/plugin-replace";
import { copyDefaultFilesPlugin } from "@mendix/rollup-web-widgets/copyFiles.mjs";

export default args => {
const result = args.configDefaultConfig;
Expand Down Expand Up @@ -41,7 +42,8 @@ export default args => {
// Tree-shake client worker initialization logic.
"!PDFWorkerUtil.isWorkerDisabled && !PDFWorker.#mainThreadWorkerMessageHandler": "false"
}
})
}),
copyDefaultFilesPlugin()
]
};
});
Expand Down
5 changes: 5 additions & 0 deletions packages/pluggableWidgets/events-web/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import copyFiles from "@mendix/rollup-web-widgets/copyFiles.mjs";

export default args => {
return copyFiles(args);
};
1 change: 1 addition & 0 deletions packages/pluggableWidgets/maps-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"@mendix/eslint-config-web-widgets": "workspace:*",
"@mendix/pluggable-widgets-tools": "*",
"@mendix/prettier-config-web-widgets": "workspace:*",
"@mendix/rollup-web-widgets": "workspace:*",
"@mendix/run-e2e": "workspace:*",
"@mendix/widget-plugin-component-kit": "workspace:*",
"@mendix/widget-plugin-platform": "workspace:*",
Expand Down
4 changes: 3 additions & 1 deletion packages/pluggableWidgets/maps-web/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { mkdirSync } from "node:fs";
import { fileURLToPath } from "url";
import copyFiles from "@mendix/rollup-web-widgets/copyFiles.mjs";

export default args => {
const result = args.configDefaultConfig;
const result = copyFiles(args);

const [jsConfig, mJsConfig] = result;

const folderUrl = new URL("dist/tmp/widgets/com/mendix/widget/custom/Maps/", import.meta.url);
Expand Down
1 change: 1 addition & 0 deletions packages/pluggableWidgets/markdown-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"@mendix/eslint-config-web-widgets": "workspace:*",
"@mendix/pluggable-widgets-tools": "*",
"@mendix/prettier-config-web-widgets": "workspace:*",
"@mendix/rollup-web-widgets": "workspace:*",
"@mendix/run-e2e": "workspace:*",
"@mendix/widget-plugin-hooks": "workspace:*",
"@mendix/widget-plugin-platform": "workspace:*",
Expand Down
5 changes: 5 additions & 0 deletions packages/pluggableWidgets/markdown-web/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import copyFiles from "@mendix/rollup-web-widgets/copyFiles.mjs";

export default args => {
return copyFiles(args);
};
1 change: 1 addition & 0 deletions packages/pluggableWidgets/rich-text-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"@mendix/eslint-config-web-widgets": "workspace:*",
"@mendix/pluggable-widgets-tools": "*",
"@mendix/prettier-config-web-widgets": "workspace:*",
"@mendix/rollup-web-widgets": "workspace:*",
"@mendix/run-e2e": "workspace:*",
"@mendix/widget-plugin-component-kit": "workspace:*",
"@mendix/widget-plugin-platform": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import typescript from "@rollup/plugin-typescript";
import preserveDirectives from "rollup-preserve-directives";
import alias from "@rollup/plugin-alias";
import { copyDefaultFilesPlugin } from "@mendix/rollup-web-widgets/copyFiles.mjs";

export default args => {
const result = args.configDefaultConfig;
Expand All @@ -23,7 +24,8 @@ export default args => {
target: "es2022", // we transpile the result with babel anyway, see below
useDefineForClassFields: false,
exclude: ["**/__tests__/**/*"]
})
}),
copyDefaultFilesPlugin()
];

return config;
Expand Down
28 changes: 28 additions & 0 deletions packages/shared/rollup-web-widgets/copyFiles.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import copy from "rollup-plugin-copy";

export function copyDefaultFilesPlugin() {
return copy({
targets: [
{
src: "dist/locales",
dest: "dist/tmp/widgets",
flatten: false
},
{
src: "../../../LICENSE",
dest: "dist/tmp/widgets",
rename: "License.txt"
}
]
});
}

export default args => {
const result = args.configDefaultConfig;
return result.map((config, _index) => {
return {
...config,
plugins: [...config.plugins, copyDefaultFilesPlugin()]
};
});
};
15 changes: 15 additions & 0 deletions packages/shared/rollup-web-widgets/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "@mendix/rollup-web-widgets",
"version": "1.0.0",
"description": "Place to keep shared rollup configs.",
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/mendix/web-widgets.git"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "*",
"rollup-plugin-copy": "^3.5.0"
}
}
Loading
Loading