You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto-completion. IDE integration and up to date documentation #1260
I just found moddable SDK which is nice, I'm guessing is there any up-to-date documentation? I can see there are a lot of examples, especially with drivers that are not updated in the documentation folder.
Also, I would like to know if there exists some good IDE integration, especially for auto-completion with imports.
I can see that typescript support is experimental, but there are no @types/ typings and things like that.
Is there any way I could help and eventually contribute to improving all those subjects, I found it very sad that this technology seems so promising but it's too opaque for beginners to jump in.
Hi @ScreamZ! Your questions are probably best moved to the Q&A section of the github discussions...
You can find the general documentation in the documentation directory (as you already did) and many of the drivers and libraries are "documentation by example".
I have not found a good integration with vscode per-se, but it works reasonably well after applying some elbow grease. There are TS typings in the typings directory. They are not complete but go quite far. I've been adding missing ones as I go along. The main difficulty with TS is that the tsconfig.json for the Moddable XS compiler gets auto-generated from the manifest of a project but that's not useful for vscode (or other IDE). So you have to manually construct a parallel tsconfig.json for the IDE. I can post what I have but it will need tweaking and others have also posted their tsconfig in the discussions section.
I totally agree with you that the initial learning curve is steep, especially if you've used something like MicroPython or Espruino, but the core is good so it's worth it in the end.
Activity
tve commentedon Dec 1, 2023
Hi @ScreamZ! Your questions are probably best moved to the Q&A section of the github discussions...
You can find the general documentation in the
documentationdirectory (as you already did) and many of the drivers and libraries are "documentation by example".I have not found a good integration with vscode per-se, but it works reasonably well after applying some elbow grease. There are TS typings in the
typingsdirectory. They are not complete but go quite far. I've been adding missing ones as I go along. The main difficulty with TS is that thetsconfig.jsonfor the Moddable XS compiler gets auto-generated from the manifest of a project but that's not useful for vscode (or other IDE). So you have to manually construct a paralleltsconfig.jsonfor the IDE. I can post what I have but it will need tweaking and others have also posted their tsconfig in the discussions section.I totally agree with you that the initial learning curve is steep, especially if you've used something like MicroPython or Espruino, but the core is good so it's worth it in the end.