Replies: 2 comments 7 replies
-
|
Thanks for your feedback @ehs5! 💯 Agreed, TypeScript support out of the box would be nice. This has been discussed and considered from the very beginning. This project is still in its' very early stages, so it has a ways to go and evolve. We still have a mountain of steps to climb, and none so trivial as including a tsconfig, calling the tsc and storing both the source and the result. When this does go live, there will not be an option to create new CRMScripts with the existing language. So if JavaScript is all we support, that will be the only option available. As I said, it's still early days, and the only sure thing at the moment is the backend will be NodeJS - not Deno or Dun. See the CRMScript 2.0: A Paradigm Shift in SuperOffice Customization for more details. Best regards, and keep the feedback coming! |
Beta Was this translation helpful? Give feedback.
-
|
Closing this discussion, based on recent news |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey SuperOffice team,
I think I speak for my colleagues and myself when I say that we are very excited about the upcoming transition from CRMScript to JavaScript.
While there are many benefits, I also see some potential pitfalls in this move from a statically, strongly typed language to a dynamically, weakly typed language. To mitigate the potential risks of writing error-prone code in JavaScript due to its type unpredictability, I think integrating TypeScript support directly into CRMScript 2.0 is not only a handy, but a necessary feature.
Why not just set up TypeScript locally and paste the transpiled JavaScript code into SuperOffice?
I don’t see this approach working very well in practice. This would require every developer to set up and maintain a TypeScript environment for each of our customers locally, which is a big shift from how easy it is to directly do small changes in the CRMScript editor today. It will create overhead that does not exist today, and there could be cases we won’t have access to the original TypeScript code.
Worse off, what if someone decides to edit the transpiled JavaScript code directly in the CRMScript 2.0 editor? The change might not be noticed, and then you risk someone with the TypeScript repo transpiling new JavaScript code and overwriting changes done in the editor.
I’m afraid this approach is not viable, and will in practice mean we are not going to use TypeScript, despite its upsides. That's why I'm rather proposing built-in TypeScript support:
Built-in TypeScript workflow proposal:
Regards,
Espen Steen
Cloud Connection AS
Beta Was this translation helpful? Give feedback.
All reactions