This repository is now deprecated. All developments for Dont-code are now happening in the Monorepo repository
This repository contains several plugins that are used by default. It provides as well some common behavior for Angular based plugins in a distinct library. They can as well be used as example of plugin developments.
They are part of the dont-code no-code / low-code platform enabling you to quickly produce your very own application.
Each plugin is an angular library, that plugs into the ide-ui and the preview-ui.
They all use the Plugin Common library that provides reusable behaviors.
- The Sandbox is not a plugin but the common ui used by the Previewer and the Plugin-tester
- The Basic Plugin provides a page listing and editing any entity defined
- The Fields Plugin provides custom field types, like country or currency
- The Screen Plugin shows how a plugin can override default behavior of the ide-ui and the preview-ui
You can install, run, test and build them from the root directory thanks to the Nx workspace.
-
Installing
npm install nx -gInstall nx.dev globallynpm install -
Running tests
nx run common:testnx run sandbox:testnx run basic:testnx run fields:testnx run screen:test -
Building
nx run common:buildnx run sandbox:buildnx run basic:buildnx run fields:buildnx run screen:build -
Debugging in Builder or Previewer application We have setup some commands to enable debugging the plugins when run inside the Builder or Previewer. Using npm link is difficult and doesn't work all the time, so we use Yalc.
npm install yalc -g Installs the Yalc tool globally
npm run publish-all Publish all the plugins in Yalc repository, after version increase (to bypass Angular caching)
Then in the builder project (ide-ui) :
npm run yalc-add-all to install the plugin using Yalc
You can now set breakpoints in your plugins classes running in the builder, and if you modify some plugin code, just run
npm run publish-all again to rebuild and reload them in the builder application.
This project was generated using Nx, visit the Nx Documentation to learn more.
