Connector development
JavaScript connector
Since the JS connector is separate from the applications that use it, it is necessary to combine it for its development with any application in which it can be used. To do this you can use the demo apps in DiscoveryCmsDemo. However, since the transpilation of files external to applications is not enabled, it is necessary:
1) Enable rollup watch
mode by running npm run rollup-watch @discoverycms/connector
. In this mode
the connector will be recompiled every time the files are modified and it will therefore be possible to evaluate the changes in the application in real time;
2) Put typescript in watch
mode by running npm run tsc-watch @discoverycms/connector
in a new terminal
to regenerate type definitions with each modification;
3) Launch one of the demo applications;