Replies: 1 comment
-
It would be awesome to have support for It seems that the {
"installDependencies": true,
"startCommand": "npm run test:ui"
}
This will not work if you use the "open from github" functionality where you just replace |
Beta Was this translation helpful? Give feedback.
-
The original idea is from @antfu. In Vitest we are using StackBlitz to add online playgrounds for the examples. See https://vitest.dev/guide/#examples.
In each example in https://github.com/vitest-dev/vitest/tree/main/examples, we need to add a
.stackblitzrc
file. This increases the cognitive load for new users because they need to understand this extra file. In some examples, a project may have only a handful of files so adding another one is not free.An idea to avoid this issue would be to allow to configure the playground with a
stackblitz
field inpackage.json
. This is standard for other tools like prettier, eslint, etc.Beta Was this translation helpful? Give feedback.
All reactions