-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add typescript support #68
Comments
We could add the
And then to check if a repo contains a
I haven't tested this yet, but I think it's a good starting point. |
Another option would be to give the programmer the freedom to compile the code to javascript and attach it as an asset on the releases page. Then we could look for a specific asset name (e.g This is probably easier to implement, doesn't require additional dependencies and also works with any other transpiler like babel or coffeescript. The only downside is that the developer could potentially add unwanted (or in the worst case scenario harmful) content to the zipped build. |
That's a pretty big downside.. User security should be the priority in all cases, so I can't agree with this.. I would like to support any and all transpilers if possible, but adding them all to PMS might create quite a serious bloat, and then again favoring (or discriminating) a transpiler would be unfair.. I'm really worried about the bloat size here as transpilers and other build tools should normally not be part of released applications, so they may be heavy repositories. This could obviously also be solved by processing the code before release (to some I'm not entirely sure how to handle this need best.. but everything that causes possible security issues should definitely be avoided. I will think about it.. |
I have to say that it breaks my heart that there's an addon out there that isn't in PMS due to transpiling limitations.. |
Too bad I happen to have 3+ addons for PMS written in TypeScript, stored in a monorepo 😅 (#69 - nice) |
I checked, But PMS is a platform for creators, and u are one such creator. Although imo the best place for transpilers to be used would be before releasing on GitHub, as it would add zero weight and all transpilers are obviously supported that way.. If u say u need this, and you seem to have a good idea about where it should be added already and have addons to test this with, if u make a PR for it, i'll accept it. |
So what if we create separate repos for each transpiler:
With a list of addons and a script. The script could download addons and transpile them, then we could use monorepos to point to each transpiled addon folder. |
That can work if @sleeyax thinks it's sufficient. We already have most of the logic to make something like:
We're just missing the monorepos feature. |
@danamag I think I added support for monorepos, but did not test it at all. If you have any way of testing, I would appreciate it. |
I've made my monorepo public for testing: https://github.com/sleeyax/stremio-addons |
I have an addon written in typescript that I'd like to run locally. Typescript is nothing more than a superset of javascript that compiles to javascript.
PimpMyStremio could check if an addon repo contains
.ts
files and compile them before starting the addon.The text was updated successfully, but these errors were encountered: