r/StreamDeckSDK • Elgato Staff • Feb 07 '22

Javascript JavaScript Stream Deck Plugin Template

Hi Devs,

I'm working on a new JavaScript Stream Deck plugin template... If anyone has some time I would love it if you could take a peek at this and let me know if it could use anything:

https://github.com/ChekTek/streamdeck-plugin-template

GOALS:

* Use modern javascript

* Remove all the unnecessary utils

* Add documentation inside the code (possibly a jsdoc)

* Make it easier to get started, and more approachable for new devs

* Make IntelliSense actually help you

* Make minimal changes that require updating the documentation site

* Separate what is the plugin and what is a library used for connecting (if you feel the need to make changes to anything inside of the "libs" folder please let me know. The end game will be to publish the "libs" folder as a node package, so we don't want to have to make changes in there.)

TODO

*Property Inspector still needs a bit of work

*Remove all classes from CSS so styles apply directly to elements easily

*Gather form data from ALL controls using name (the proper HTML way, not using sketchy classes), not just the easy ones

I don't think it's ready for prime time yet (and I still have talk to the team about getting it on the main github), but I think it is in a good place that people could try it out.

Any feedback is welcome!

10 Upvotes

13 comments sorted by

View all comments

5

u/Zenpher Feb 08 '22

This is pretty cool. I created a cli tool to help people develop on Windows: https://github.com/hhaidar/deckdev

I would recommend using typescript if possible. Having some type definitions available would help, especially if having IntelliSense is one of your goals.

3

u/elgato_zack Elgato Staff Feb 08 '22

Very Nice! Typescript is in my plans for stage 3 😎

  1. Clean vanilla js

  2. Node it up so we can use classes with modules

  3. Typescript

I've checked out this Typescript repo in the past as well that I like: https://github.com/rweich/streamdeck-ts

I also need to make sure that it doesn't stray too far from the wording in our documentation so that when I go to update it, there is not a total re-write in order...