Skip to content

Commit 159d7a8

Browse files
author
Illia Obukhau
authored
chore(web-widgets): manifest chores (#340)
2 parents d7cb83e + b57b94a commit 159d7a8

File tree

53 files changed

+159
-273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+159
-273
lines changed

automation/run-e2e/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"license": "Apache-2.0",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
77
"type": "module",
88
"bin": {
99
"run-e2e": "bin/run-e2e.mjs"

automation/scripts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"license": "Apache-2.0",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
77
"type": "module",
88
"engines": {
99
"node": ">=18"

automation/snapshot-generator/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@mendix/snapshot-generator",
33
"version": "1.0.0",
44
"description": "Generate fake data snapshot in json",
5+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
56
"main": "./lib/index.js",
67
"files": [
78
"lib"

automation/utils/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.0",
44
"description": "Set of helpers for release processes",
55
"private": true,
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
67
"main": "index.ts",
78
"types": "index.ts",
89
"bin": {

automation/utils/src/package-info.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const MxPackageTypeSchema = z.enum([MODULE, WIDGET, JSACTIONS]);
5252
export const MxPackageSchema = z.object({
5353
name: MxPackageNameSchema,
5454
type: MxPackageTypeSchema,
55-
mpkName: z.string().endsWith(".mpk").optional(),
55+
mpkName: z.string().endsWith(".mpk"),
5656
dependencies: z.string().array().optional().default([])
5757
});
5858

@@ -106,7 +106,7 @@ export const ModulePackageSchema = PackageSchema.extend({
106106
moduleFolderNameInModeler: z
107107
.string()
108108
.min(3)
109-
.regex(/^[a-z_]+$/m, "Expected to be writtern in snakecase (eg. data_stack)")
109+
.regex(/^[a-z_]+$/m, "Expected to be written in snake_case (eg. my_first_module)")
110110
});
111111

112112
export const JSActionsPackageSchema = PackageSchema.extend({
@@ -134,7 +134,9 @@ export async function getPackageFileContent(dirPath: string): Promise<PackageJso
134134
const pkgPath = join(dirPath, `package.json`);
135135
try {
136136
await access(pkgPath);
137-
const result = (await import(pkgPath)) as PackageJsonFileContent;
137+
const result = await import(pkgPath).then(module => {
138+
return module.default as PackageJsonFileContent;
139+
});
138140
return result;
139141
} catch (error) {
140142
console.log(error);

packages/customWidgets/calendar-web/package.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"widgetName": "Calendar",
44
"version": "1.0.14",
55
"description": "Display and manage calendar events",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
77
"license": "Apache-2.0",
88
"repository": {
99
"type": "git",
@@ -34,10 +34,7 @@
3434
"update-changelog": "rui-update-changelog-widget",
3535
"verify": "rui-verify-package-format"
3636
},
37-
"config": {
38-
"mendixHost": "http://localhost:8080",
39-
"developmentPort": 3000
40-
},
37+
"config": {},
4138
"devDependencies": {
4239
"@babel/core": "^7.20.12",
4340
"@mendix-internal/automation-utils": "workspace:*",

packages/modules/data-widgets/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"moduleName": "Data Widgets",
44
"version": "2.6.0",
55
"license": "Apache-2.0",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
77
"private": true,
88
"repository": {
99
"type": "git",
@@ -12,6 +12,7 @@
1212
"mxpackage": {
1313
"name": "DataWidgets",
1414
"type": "module",
15+
"mpkName": "DataWidgets.mpk",
1516
"dependencies": [
1617
"datagrid-date-filter-web",
1718
"datagrid-dropdown-filter-web",

packages/modules/web-actions/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
"moduleName": "Web Actions",
44
"version": "2.6.0",
55
"license": "Apache-2.0",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
77
"repository": {
88
"type": "git",
99
"url": "https://github.com/mendix/web-widgets.git"
1010
},
1111
"mxpackage": {
1212
"type": "module",
13-
"name": "WebActions"
13+
"name": "WebActions",
14+
"mpkName": "WebActions.mpk"
1415
},
1516
"moduleFolderNameInModeler": "webactions",
1617
"marketplace": {

packages/pluggableWidgets/accessibility-helper-web/package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,17 @@
33
"widgetName": "AccessibilityHelper",
44
"version": "2.1.0",
55
"description": "Set an attribute to a DOM element",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
77
"author": "Widget Team",
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/mendix/web-widgets.git"
1111
},
12-
"config": {
13-
"mendixHost": "http://localhost:8080",
14-
"developmentPort": 3000
15-
},
12+
"config": {},
1613
"mxpackage": {
1714
"name": "AccessibilityHelper",
18-
"type": "widget"
15+
"type": "widget",
16+
"mpkName": "com.mendix.widget.web.AccessibilityHelper.mpk"
1917
},
2018
"marketplace": {
2119
"minimumMXVersion": "9.6.0",

packages/pluggableWidgets/accordion-web/package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,17 @@
33
"widgetName": "Accordion",
44
"version": "2.2.0",
55
"description": "A Mendix pluggable widget to display expandable list items.",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
77
"license": "Apache-2.0",
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/mendix/web-widgets.git"
1111
},
12-
"config": {
13-
"mendixHost": "http://localhost:8080",
14-
"developmentPort": 3000
15-
},
12+
"config": {},
1613
"mxpackage": {
1714
"name": "Accordion",
18-
"type": "widget"
15+
"type": "widget",
16+
"mpkName": "com.mendix.widget.web.Accordion.mpk"
1917
},
2018
"marketplace": {
2119
"minimumMXVersion": "9.6.0",

packages/pluggableWidgets/area-chart-web/package.json

+4-12
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,18 @@
33
"widgetName": "AreaChart",
44
"version": "3.0.0",
55
"description": "An area chart displays a solid color between the traces of a graph.",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
77
"license": "Apache-2.0",
88
"private": true,
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/mendix/web-widgets.git"
1212
},
13-
"config": {
14-
"mendixHost": "http://localhost:8080",
15-
"developmentPort": 3000
16-
},
13+
"config": {},
1714
"mxpackage": {
1815
"name": "AreaChart",
19-
"type": "widget"
16+
"type": "widget",
17+
"mpkName": "com.mendix.widget.web.AreaChart.mpk"
2018
},
2119
"marketplace": {
2220
"minimumMXVersion": "9.6.0",
@@ -28,19 +26,13 @@
2826
},
2927
"packagePath": "com.mendix.widget.web",
3028
"scripts": {
31-
"prestart": "lerna run build --scope '@mendix/shared-charts'",
3229
"start": "pluggable-widgets-tools start:server",
3330
"dev": "pluggable-widgets-tools start:web",
3431
"build": "pluggable-widgets-tools build:ts",
35-
"build:with-deps": "lerna run build --scope 'area-chart-web' --include-dependencies",
3632
"format": "prettier --write .",
3733
"lint": "eslint --ext .jsx,.js,.ts,.tsx src/",
3834
"test": "pluggable-widgets-tools test:unit:web",
39-
"pretest:e2e": "NODE_OPTIONS=--max_old_space_size=4096 npm run release:with-deps && node ../../../scripts/test/updateAtlas.js --latest-atlas",
40-
"test:e2e": "echo 'Skipping e2e tests'",
41-
"test:e2e:local": "echo 'Skipping e2e tests'",
4235
"release": "pluggable-widgets-tools release:web",
43-
"release:with-deps": "lerna run release --scope 'area-chart-web' --include-dependencies",
4436
"verify": "rui-verify-package-format",
4537
"update-changelog": "rui-update-changelog-widget"
4638
},

packages/pluggableWidgets/badge-button-web/package.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33
"widgetName": "BadgeButton",
44
"version": "3.1.0",
55
"description": "Shows a button containing a colored badge or label",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
77
"repository": {
88
"type": "git",
99
"url": "https://github.com/mendix/web-widgets.git"
1010
},
1111
"license": "Apache-2.0",
12-
"config": {
13-
"mendixHost": "http://localhost:8080",
14-
"developmentPort": 3000
15-
},
12+
"config": {},
1613
"mxpackage": {
1714
"name": "BadgeButton",
1815
"type": "widget",

packages/pluggableWidgets/badge-web/package.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33
"widgetName": "Badge",
44
"version": "3.1.0",
55
"description": "Shows a value inside a colored badge or label",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
77
"license": "Apache-2.0",
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/mendix/web-widgets.git"
1111
},
12-
"config": {
13-
"mendixHost": "http://localhost:8080",
14-
"developmentPort": 3000
15-
},
12+
"config": {},
1613
"mxpackage": {
1714
"name": "Badge",
1815
"type": "widget",

packages/pluggableWidgets/bar-chart-web/package.json

+4-12
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,18 @@
33
"widgetName": "BarChart",
44
"version": "3.0.0",
55
"description": "Shows difference between the data points for one or more categories.",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
77
"license": "Apache-2.0",
88
"private": true,
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/mendix/web-widgets.git"
1212
},
13-
"config": {
14-
"mendixHost": "http://localhost:8080",
15-
"developmentPort": 3000
16-
},
13+
"config": {},
1714
"mxpackage": {
1815
"name": "BarChart",
19-
"type": "widget"
16+
"type": "widget",
17+
"mpkName": "com.mendix.widget.web.BarChart.mpk"
2018
},
2119
"marketplace": {
2220
"minimumMXVersion": "9.6.0",
@@ -28,19 +26,13 @@
2826
},
2927
"packagePath": "com.mendix.widget.web",
3028
"scripts": {
31-
"prestart": "lerna run build --scope '@mendix/shared-charts'",
3229
"start": "pluggable-widgets-tools start:server",
3330
"dev": "pluggable-widgets-tools start:web",
3431
"build": "pluggable-widgets-tools build:ts",
35-
"build:with-deps": "lerna run build --scope 'bar-chart-web' --include-dependencies",
3632
"format": "prettier --write .",
3733
"lint": "eslint --ext .jsx,.js,.ts,.tsx src/",
3834
"test": "pluggable-widgets-tools test:unit:web",
39-
"pretest:e2e": "NODE_OPTIONS=--max_old_space_size=4096 npm run release:with-deps && node ../../../scripts/test/updateAtlas.js --latest-atlas",
40-
"test:e2e": "echo 'Skipping e2e tests'",
41-
"test:e2e:local": "echo 'Skipping e2e tests'",
4235
"release": "pluggable-widgets-tools release:web",
43-
"release:with-deps": "lerna run release --scope 'bar-chart-web' --include-dependencies",
4436
"verify": "rui-verify-package-format",
4537
"update-changelog": "rui-update-changelog-widget"
4638
},

packages/pluggableWidgets/barcode-scanner-web/package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,17 @@
33
"widgetName": "BarcodeScanner",
44
"version": "2.2.3",
55
"description": "Displays a barcode scanner",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
77
"license": "Apache-2.0",
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/mendix/web-widgets.git"
1111
},
12-
"config": {
13-
"mendixHost": "http://localhost:8080",
14-
"developmentPort": 3000
15-
},
12+
"config": {},
1613
"mxpackage": {
1714
"name": "BarcodeScanner",
18-
"type": "widget"
15+
"type": "widget",
16+
"mpkName": "com.mendix.widget.web.BarcodeScanner.mpk"
1917
},
2018
"marketplace": {
2119
"minimumMXVersion": "9.6.0",

packages/pluggableWidgets/bubble-chart-web/package.json

+4-12
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,18 @@
33
"widgetName": "BubbleChart",
44
"version": "3.0.0",
55
"description": "Shows data in a bubble format graph.",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
77
"license": "Apache-2.0",
88
"private": true,
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/mendix/web-widgets.git"
1212
},
13-
"config": {
14-
"mendixHost": "http://localhost:8080",
15-
"developmentPort": 3000
16-
},
13+
"config": {},
1714
"mxpackage": {
1815
"name": "BubbleChart",
19-
"type": "widget"
16+
"type": "widget",
17+
"mpkName": "com.mendix.widget.web.BubbleChart.mpk"
2018
},
2119
"marketplace": {
2220
"minimumMXVersion": "9.6.0",
@@ -28,19 +26,13 @@
2826
},
2927
"packagePath": "com.mendix.widget.web",
3028
"scripts": {
31-
"prestart": "lerna run build --scope '@mendix/shared-charts'",
3229
"start": "pluggable-widgets-tools start:server",
3330
"dev": "pluggable-widgets-tools start:web",
3431
"build": "pluggable-widgets-tools build:ts",
35-
"build:with-deps": "lerna run build --scope 'bubble-chart-web' --include-dependencies",
3632
"format": "prettier --write .",
3733
"lint": "eslint --ext .jsx,.js,.ts,.tsx src/",
3834
"test": "pluggable-widgets-tools test:unit:web",
39-
"pretest:e2e": "NODE_OPTIONS=--max_old_space_size=4096 npm run release:with-deps && node ../../../scripts/test/updateAtlas.js --latest-atlas",
40-
"test:e2e": "echo 'Skipping e2e tests'",
41-
"test:e2e:local": "echo 'Skipping e2e tests'",
4235
"release": "pluggable-widgets-tools release:web",
43-
"release:with-deps": "lerna run release --scope 'bubble-chart-web' --include-dependencies",
4436
"verify": "rui-verify-package-format",
4537
"update-changelog": "rui-update-changelog-widget"
4638
},

packages/pluggableWidgets/carousel-web/package.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"widgetName": "Carousel",
44
"version": "2.0.0",
55
"description": "Displays images in a carousel",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
77
"repository": {
88
"type": "git",
99
"url": "https://github.com/mendix/web-widgets.git"
@@ -39,10 +39,7 @@
3939
"e2e": "run-e2e ci",
4040
"e2edev": "run-e2e dev --with-preps"
4141
},
42-
"config": {
43-
"mendixHost": "http://localhost:8080",
44-
"developmentPort": 3000
45-
},
42+
"config": {},
4643
"devDependencies": {
4744
"@mendix-internal/automation-utils": "workspace:*",
4845
"@mendix/eslint-config-web-widgets": "workspace:*",

packages/pluggableWidgets/charts-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Chart widgets collection for data visualization",
55
"license": "Apache-2.0",
66
"private": false,
7-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
7+
"copyright": "© Mendix Technology BV 2023. All rights reserved.",
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/mendix/web-widgets.git"

0 commit comments

Comments
 (0)