Skip to content

ManosDr/web-widgets

 
 

Repository files navigation

NOTE: Please, keep in mind that this repo is still in process of migration. Some of the scripts, CI actions or other tools may not work or be unstable. We hardly working on fixing all this issues. Please, if you find some problem with pnpm, testing, running or building, let us know about the problem by submitting issue on GitHub.


Web widgets

A bundle of R&D Platform supported widgets & nanoflow actions for building web apps.

For issues and bugs related to CSS, Widgets, Atlas or JS Actions, please contact Mendix Support

Developing

Quick start

$ pnpm install
$ cd packages/<widget-you-wish-to-start-work-on>
$ pnpm start

Prerequisites

  • node version 16 -- we recommend use nvm for installing and managin node on you local env, but you can download and install node from official website
  • pnpm veresion 7.3.0 or higher – please visit Installation docs section to get instruction on how to install pnpm in your local env.

As we are using node-gyp in our dependencies, please make sure to install the required dependencies for this library according to your OS.

Developer flow

  • Mendix projects for each widget already comes with repo with folder called packages/pluggableWidgets/<widgetName>/tests/testProject.
  • Run pnpm run pretest:e2e to initialize Mendix project.
  • Run pnpm run build on a desired widget folder. For ex: packages/pluggableWidgets/badge-web. This will build and copy the mpk to each Mendix project's correct widget folder.
  • Open and run the project in <widgetName>/tests/testProject with Mendix Studio.
  • If you want to override your local test project with a test project from GitHub, execute the test:e2e npm script with the following command: pnpm run test:e2e -- --update-test-project.

Adding new test project to the repo

  • Go to https://github.com/mendix/testProjects and create an appropriate branch name from master
  • Add your .mpr files, commit and push (remember your branch name)
  • Go to web-widgets monorepo and in the package.json of the widget insert the branch name in the test project section.

Contributing

See CONTRIBUTING.md.

Raising problems/issues

  • We encourage everyone to open a Support ticket on Mendix Support in case of problems with widgets or scaffolding tools (Pluggable Widgets Generator or Pluggable Widgets Tools)

About

Mendix Platform supported widgets and modules for web

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 77.9%
  • JavaScript 15.8%
  • SCSS 4.7%
  • Mustache 0.9%
  • HTML 0.3%
  • PEG.js 0.2%
  • Other 0.2%