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
44 changes: 0 additions & 44 deletions .github/workflows/CreateGWRelease.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create GitHub release of PWT
name: Create GitHub release

# This workflow for pluggable-widgets-tools:
# 1. Puts current version from package.json as the version for unreleased changes in CHANGELOG.md
Expand All @@ -10,11 +10,20 @@ name: Create GitHub release of PWT
# NOTE: Publishing to npm doesn't happen in this workflow. PublishNpm.yml is responsible fot npm publishing.
# When the GitHub release is approved, that creates a corresponding git tag to trigger PublishNpm.yml.

on: workflow_dispatch
on:
workflow_dispatch:
inputs:
package_name:
description: Package to create release for
required: true
type: choice
options:
- pluggable-widgets-tools
- generator-widget

jobs:
release:
name: "Create GitHub release and changelogs MR of PWT"
name: "Create GitHub release and changelogs MR"
runs-on: ubuntu-latest

steps:
Expand All @@ -35,8 +44,8 @@ jobs:
- name: "Installing dependencies"
run: pnpm install

- name: "Creating PWT release and MR"
run: "pnpm --dir packages/release-tools run release:pwt"
- name: "Creating Github release and MR"
run: pnpm exec create-release ${{ inputs.package_name }} $GITHUB_REF_NAME
env:
GH_USERNAME: ${{ secrets.GH_USERNAME }}
GH_EMAIL: ${{ secrets.GH_EMAIL }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/TestPWTCommands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ on:

jobs:
test:
name: "Script tests (Node ${{ matrix.node }}, ${{ matrix.os }})"
name: "Script tests (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [20]
os: [windows-latest, ubuntu-latest]
steps:
- name: "Checking-out code"
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/UnitTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,18 @@ jobs:

- name: "Linting packages"
run: pnpm lint

- name: "Linting changelogs"
run: |
failures=0
for changelog in $(find . -type f -name CHANGELOG.md -mindepth 3 -maxdepth 3); do
echo "Parsing $changelog"
if pnpm exec changelog-parser parse $changelog; then
:
else
: $((failures++))
fi
done
if [[ $failures -gt 0 ]]; then
exit 1;
fi
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.20.2
22.23.2
3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import prettierRecommended from "eslint-plugin-prettier/recommended";
export default defineConfig(
globalIgnores([
"packages/generator-widget/generators/app/templates/**",
"packages/pluggable-widgets-tools/dist/**"
"packages/pluggable-widgets-tools/dist/**",
"packages/release-tools/utils/changelog-parser/changelog.*"
]),
{
files: ["**/*.js", "**/*.mjs"],
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "widgets-tools",
"engines": {
"node": ">=20"
"node": "^22.18.0"
},
"private": "true",
"type": "module",
Expand All @@ -17,6 +17,7 @@
},
"packageManager": "pnpm@10.33.4+sha512.1c67b3b359b2d408119ba1ed289f34b8fc3c6873412bec6fd264fbdc82489e510fcbecb9ce9d22dae7f3b76269d8441046014bdca53b9979cd7a561ad631b800",
"devDependencies": {
"@mendix/release-tools": "workspace:*",
"@eslint/js": "^10.0.1",
"@prettier/plugin-xml": "^3.4.2",
"@typescript-eslint/eslint-plugin": "^8.59.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/command-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@mendix/pluggable-widgets-tools": "workspace:*",
"@prettier/plugin-xml": "^2.2.0",
"@types/jest-image-snapshot": "^4.3.1",
"@types/node": "^20.14.8",
"@types/node": "^22.18.0",
"@types/shelljs": "^0.10.0",
"@types/xml2js": "^0.4.5",
"async-mutex": "^0.5.0",
Expand Down
1 change: 1 addition & 0 deletions packages/generator-widget/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Changed

- We cleaned up a template with unused imports.
- We increased the minimum node version to 22.

- We updated the version of cypress when e2e tests are generated.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"copyright": "Mendix 2023",
"author": "Jest",
"engines": {
"node": ">=20"
"node": "^22.18.0"
},
"license": "Apache-2.0",
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"copyright": "Mendix 2023",
"author": "Jest",
"engines": {
"node": ">=20"
"node": "^22.18.0"
},
"license": "Apache-2.0",
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"copyright": "Mendix 2023",
"author": "Jest",
"engines": {
"node": ">=20"
"node": "^22.18.0"
},
"license": "Apache-2.0",
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"copyright": "Mendix 2023",
"author": "Jest",
"engines": {
"node": ">=20"
"node": "^22.18.0"
},
"license": "Apache-2.0",
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"copyright": "Mendix 2023",
"author": "Jest",
"engines": {
"node": ">=16"
"node": "^22.18.0"
},
"license": "Apache-2.0",
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"copyright": "Mendix 2023",
"author": "Jest",
"engines": {
"node": ">=16"
"node": "^22.18.0"
},
"license": "Apache-2.0",
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"copyright": "Mendix 2023",
"author": "Jest",
"engines": {
"node": ">=16"
"node": "^22.18.0"
},
"license": "Apache-2.0",
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"copyright": "Mendix 2023",
"author": "Jest",
"engines": {
"node": ">=16"
"node": "^22.18.0"
},
"license": "Apache-2.0",
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"copyright": "Mendix 2023",
"author": "Jest",
"engines": {
"node": ">=16"
"node": "^22.18.0"
},
"license": "Apache-2.0",
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"copyright": "Mendix 2023",
"author": "Jest",
"engines": {
"node": ">=16"
"node": "^22.18.0"
},
"license": "Apache-2.0",
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"copyright": "Mendix 2023",
"author": "Jest",
"engines": {
"node": ">=16"
"node": "^22.18.0"
},
"license": "Apache-2.0",
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"copyright": "Mendix 2023",
"author": "Jest",
"engines": {
"node": ">=16"
"node": "^22.18.0"
},
"license": "Apache-2.0",
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"copyright": <%- JSON.stringify(copyright) %>,
"author": <%- JSON.stringify(author) %>,
"engines": {
"node": ">=20"
"node": "^22.18.0"
},
"license": <%- JSON.stringify(license) %>,
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"copyright": <%- JSON.stringify(copyright) %>,
"author": <%- JSON.stringify(author) %>,
"engines": {
"node": ">=16"
"node": "^22.18.0"
},
"license": <%- JSON.stringify(license) %>,
"config": {
Expand Down
5 changes: 3 additions & 2 deletions packages/generator-widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"description": "Mendix Pluggable Widgets Generator",
"type": "module",
"engines": {
"node": ">=20"
"node": "^22.18.0"
},
"bin": "./bin.js",
"main": "generators/app/index.js",
"scripts": {
"test": "jest --config ./jest.config.js"
"test": "jest --config ./jest.config.js",
"lint:changelog": "../release-tools/utils/changelog-parser/cli.ts parse ./CHANGELOG.md"
},
"files": [
"generators"
Expand Down
2 changes: 2 additions & 0 deletions packages/pluggable-widgets-tools/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Changed

- We increased the minimum node version to 22.

- We replaced `ts-jest` with `@swc/jest` as the Jest transform (3–5× faster for TSX-heavy test suites) and switched the test runner from `jest-jasmine2` to `jest-circus`.

- **Breaking:** The `jest-jasmine2` runner has been removed. Tests using Jasmine-specific globals (`jasmine.createSpy()`, `jasmine.objectContaining()`, etc.) will throw `ReferenceError: jasmine is not defined`. Replace with Jest equivalents: `jest.fn()`, `expect.objectContaining()`.
Expand Down
5 changes: 3 additions & 2 deletions packages/pluggable-widgets-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
"version": "10.24.1",
"description": "Mendix Pluggable Widgets Tools",
"engines": {
"node": ">=20"
"node": "^22.18.0"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"pluggable-widgets-tools": "bin/mx-scripts.js"
},
"scripts": {
"lint:changelog": "../release-tools/utils/changelog-parser/cli.ts parse ./CHANGELOG.md",
"prepack": "shx rm -rf dist && tsc",
"typecheck:test-config": "tsc -p test-config/tsconfig.json",
"test": "pnpm typecheck:test-config && jest"
Expand Down Expand Up @@ -108,7 +109,7 @@
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^16.18.126",
"@types/node": "^22.18.0",
"@types/xml2js": "^0.4.5"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/pluggable-widgets-tools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"include": ["./src"],
"compilerOptions": {
"module": "commonjs",
"lib": ["es2015"],
"target": "es2015",
"lib": ["es2024", "ESNext.Array", "ESNext.Collection", "ESNext.Iterator"],
"target": "es2022",
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
Expand Down
17 changes: 0 additions & 17 deletions packages/release-tools/.eslintrc.js

This file was deleted.

Loading
Loading