Open TrainDoctor opened 1 year ago
This might already be covered by the "Create instructions". But having a good "Hello world" example always helps me get on track when working in new environments.
So step by step instructions of getting a first edit onto the steam deck, and making small changes would be very useful.
The most trouble I met during setup was how to find and start the tasks mentioned in the README. It would be good to give some suggestions on which extension to use, I am using https://marketplace.visualstudio.com/items?itemName=spmeesseman.vscode-taskexplorer
Probably like everyone else here, I had to figure out a lot of stuff to get properly started. Since taking those first steps, my goal has been to make builds and deployments of my plugin as simple as possible and ideally without prompts for passwords and configuration.
After forking the plugin, I extensively re-wrote the README to suit my needs. Please do read through it -- especially the Development section -- as it contains both build and deploy instructions along with a number of debugging tips. You're welcome to copy and adapt it for the community's needs (and I'm happy to help out if you want). 🙂
Since it is my plugin, I did also make it opinionated. Here are a few thoughts and changes I made to my plugin and build tasks for your consideration:
builddeploy
task the default since it is a single task that gets everything done. Separating builds and deploys isn't much use in my workflow.
builddeploy
invocation now gives me zero prompts.
sudo
upon builds via this patch to Decky CLI. This saves me needing to type a password every deploy.
sudo
for builds. 😞 sudo
for Docker access since I'm using WSL and Docker Desktop. Other devs may need to use rootless Docker or add their user to the e.g. docker
group (and understand the ramifications therein).I suggest using the watch mode of rollup to build your JS as it builds much faster due to being incremental
I suggest using the watch mode of rollup to build your JS as it builds much faster due to being incremental
@AAGaming00 Can that be combined with deployments? 😮
@XanderXAJ I don't have much time myself to integrate the changes you made manually but if you were to submit a PR with generalized changes I'd be happy to review those and merge when appropriate!
Unfortunately I no longer have the time to work on this aspect of the documentation as I would like. If plugin developers are willing to contribute some generalized knowledge to our wiki then we'd be happy to accept that. Marking as middle priority as this work should eventually be done.
Looking for more feedback from devs on how this can be improved outside what I've stated below. This issue will serve as a discussion for said desired improvements as well.