Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
32103eb
feat: add widget hot reload
kentakang Aug 25, 2025
00261ed
feat: bump version to 0.1.1
kentakang Aug 25, 2025
6d375a3
Merge pull request #26 from repixelcorp/fix/#17
kentakang Aug 25, 2025
7d85b42
feat: add VITE_CONFIGURATION_FILENAME constants
kentakang Aug 26, 2025
bc29b71
feat: add typescript configurations
kentakang Aug 26, 2025
bfca81d
feat: add vite custom configuration
kentakang Aug 26, 2025
72564b3
feat: add custom build readme
kentakang Aug 26, 2025
444102d
feat: bump version to 0.1.2
kentakang Aug 26, 2025
f6987df
Merge pull request #29 from repixelcorp/feature/custom-config
kentakang Aug 26, 2025
242b819
feat: add pack command
kentakang Aug 26, 2025
f45e0fa
fix: fix widget reload cache issue
kentakang Aug 26, 2025
c4c8edf
feat: bump version to 0.1.3
kentakang Aug 26, 2025
e9e4eab
Merge pull request #30 from repixelcorp/feature/custom-config
kentakang Aug 26, 2025
f2dc71a
feat: add header image on readme
kentakang Aug 26, 2025
f1c1adc
Update README.md
kentakang Aug 26, 2025
75d21e2
fix: fix header image resolution
kentakang Aug 26, 2025
c6956aa
fix: fix image branch name on readme
kentakang Aug 26, 2025
51b382a
fix: fix bundled react issue
kentakang Aug 26, 2025
5b94188
feat: bump version to 0.1.4
kentakang Aug 28, 2025
46118ab
Merge pull request #31 from repixelcorp/fix/#28
kentakang Aug 28, 2025
51afb35
fix: fix header image
kentakang Aug 28, 2025
817207a
feat: add fast-xml-parser dependency
kentakang Aug 28, 2025
b83adc9
feat: add mendix on dependency
kentakang Aug 28, 2025
06f236b
fix: remove caret on fast-xml-parser version
kentakang Aug 28, 2025
5dbd07d
feat: add copy widget schema script
kentakang Aug 28, 2025
5f636d4
feat: add custom_widget.xsd on files
kentakang Aug 28, 2025
e385ed4
feat: add type generator
kentakang Aug 28, 2025
4ec8a83
fix: fix generate type name
kentakang Aug 28, 2025
978f7c7
fix: change postinstall script to prepare script
kentakang Aug 28, 2025
5214cce
feat: generate types on build, start
kentakang Aug 28, 2025
5f2c9e9
feat: bump version to 0.1.5
kentakang Aug 28, 2025
1e27f32
Merge pull request #32 from repixelcorp/fix/#16
kentakang Aug 28, 2025
6a56aad
Merge pull request #33 from repixelcorp/develop
kentakang Aug 28, 2025
6fb6bac
fix: split vite plugins
kentakang Aug 28, 2025
de12424
feat: add esbuild on dev dependency
kentakang Aug 28, 2025
e3bcb5d
feat: add mendix patch vite client plugin
kentakang Aug 28, 2025
c43ba98
feat: bump version to 0.1.6
kentakang Aug 28, 2025
cc26e8e
Merge pull request #34 from repixelcorp/fix/#28
kentakang Aug 28, 2025
cb303ef
feat: version bump to 0.2.0
kentakang Aug 28, 2025
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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,7 @@ $RECYCLE.BIN/
# Temp directory
/tmp

# End of https://www.toptal.com/developers/gitignore/api/windows,macos,node,visualstudiocode
# End of https://www.toptal.com/developers/gitignore/api/windows,macos,node,visualstudiocode

# Mendix Widget schema file
custom_widget.xsd
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# hyper-pwt

<img src="https://raw.githubusercontent.com/repixelcorp/hyper-pwt/main/static/header.png" alt="hyper-pwt" width="100%" height="auto">

A faster, more modern, superior alternative for [Mendix PWT](https://github.com/mendix/widgets-tools).

## How to use?
Expand Down Expand Up @@ -29,6 +31,49 @@ Second, replace pluggable-widgets-tools to hyper-pwt in widget's package.json.

## Custom build configurations

### Web

Create vite.config.mjs on your pwt root directory.

```javascript
import { definePWTConfig } from '@repixelcorp/hyper-pwt';

export default definePWTConfig(() => {
return {
// Your custom configuration in here.
};
});
```

hyper-pwt uses the [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc) plugin. The settings for this plugin can be changed as follows.

```javascript
import { definePWTConfig } from '@repixelcorp/hyper-pwt';

export default definePWTConfig(() => {
return {
reactPluginOptions: {
tsDecorators: true,
}
};
});
```

definePWTConfig also supports asynchronous mode. It can be used as follows.

```javascript
import { definePWTConfig } from '@repixelcorp/hyper-pwt';

export default definePWTConfig(async () => {
const promise = await somethingPromise();

return {
};
});
```

### Native

TODO

## Performance compare with Mendix PWT
Expand Down Expand Up @@ -70,3 +115,5 @@ Please refer to the [LICENSE](./LICENSE).
## Disclaimers

Neither Repixel Co., Ltd., nor the project maintainers or contributors, are responsible for any problems arising from the use of this software. The user is entirely responsible.


113 changes: 65 additions & 48 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,65 @@
{
"name": "@repixelcorp/hyper-pwt",
"version": "0.1.0",
"description": "A faster, more modern, superior alternative for Mendix PWT.",
"repository": {
"type": "git",
"url": "git+https://github.com/repixelcorp/hyper-pwt.git"
},
"scripts": {
"build": "rslib build",
"watch": "rslib build --watch",
"start": "pnpm build && node ./dist/index.js",
"link": "pnpm build && npm link --force"
},
"bin": {
"hyper-pwt": "dist/index.js"
},
"keywords": [
"mendix",
"pwt",
"mendix-pwt",
"pluggable-widgets-tools"
],
"author": "Repixel Co, Ltd.",
"license": "MIT",
"packageManager": "pnpm@10.15.0",
"devDependencies": {
"@rslib/core": "0.12.2",
"@types/node": "22.17.2",
"type-fest": "4.41.0"
},
"dependencies": {
"@vitejs/plugin-react-swc": "4.0.1",
"chalk": "5.6.0",
"commander": "14.0.0",
"vite": "7.1.3",
"zip-a-folder": "3.1.9"
},
"files": [
"dist/**/*",
"package.json",
"LICENSE"
],
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
}
}
{
"name": "@repixelcorp/hyper-pwt",
"version": "0.2.0",
"description": "A faster, more modern, superior alternative for Mendix PWT.",
"repository": {
"type": "git",
"url": "git+https://github.com/repixelcorp/hyper-pwt.git"
},
"scripts": {
"build": "rslib build",
"watch": "rslib build --watch",
"start": "pnpm build && node ./dist/cli.js",
"package": "pnpm build && pnpm pack",
"prepare": "node ./tools/copy-widget-schema.js"
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"bin": {
"hyper-pwt": "dist/cli.js"
},
"keywords": [
"mendix",
"pwt",
"mendix-pwt",
"pluggable-widgets-tools"
],
"author": "Repixel Co, Ltd.",
"license": "MIT",
"packageManager": "pnpm@10.15.0",
"devDependencies": {
"@rslib/core": "0.12.2",
"@types/node": "22.17.2",
"esbuild": "0.25.9",
"type-fest": "4.41.0",
"typescript": "5.9.2"
},
"dependencies": {
"@vitejs/plugin-react-swc": "4.0.1",
"chalk": "5.6.0",
"commander": "14.0.0",
"fast-xml-parser": "5.2.5",
"mendix": "10.24.77222",
"vite": "7.1.3",
"zip-a-folder": "3.1.9"
},
"files": [
"dist/**/*",
"package.json",
"LICENSE",
"src/configurations/hotReload/**/*",
"custom_widget.xsd"
],
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
}
}
Loading
Loading