Repository navigation
From zero to a DSH plugin: a tested walkthrough with dsh-plugin-toolkit 0.23.2 #14942
WJDdidi-1
started this conversation in
Show Your Plugins!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I wrote a step-by-step tutorial for building a DSH plugin from an empty directory, using
dsh-plugin-toolkit@0.23.2. It is meant for people who want to understand the package structure before writing their first panel, not just copy a scaffold.The tutorial itself is written in Chinese; the commands, code blocks, and error messages are language-neutral.
The walkthrough covers:
dsh-plugin initand the files it generates (package.json,index.js,client.js,cordis.patch.yml, the test);testkitin jsdom;doctor,verify, andNODE_ENV=production verify— including the React 18 production-modeReact.actcrash that0.23.2fixes;npm pack --dry-runand thefilesallowlist, with the two common ways a package looks fine locally but breaks after install;Every command and output in the first four sections was reproduced in a clean directory against
0.23.2. The tutorial is here:https://github.com/WJDdidi-1/dsh-plugin-toolkit/blob/main/docs/from-zero-to-a-dsh-plugin.md
If you are maintaining a plugin or hit a different failure mode, I would be interested in the exact error and the DSH version. I am not posting this as a plugin release; it is a reference for the package-structure parts that are easy to get wrong.
All reactions