question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What to do with "demo"?

See original GitHub issue

Demo is an interesting bit of the schema. Right now it’s only referenced from CustomElement#demos, but really, anything could have an associated demo, including or especially the package as a whole.

We could add a demos field to all declarations, modules and package. We could also add an extensible metadata field to just about everything and make DemoMetadata well-known object that can appear there.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Westbrookcommented, Jun 26, 2021

For “storybook”, I’d say it would be better to lean into the CSF format: https://storybook.js.org/docs/react/api/csf and speak in that language directly. In this way, if Storybook decided to move away from it at some point, we’d not be in as large a bind as CSF is structured for cross tool usage and means alternative “formats” would likely have new names, even if used by Storybook.

If we went this way, it would be cool if there was a types reference format that we could point to the actual story in a separate story file. Maybe?


/*
 * @demo {csf} {import('./my-el.stories.js').Default}
 * @demo {csf} {import('./my-el.stories.js').styles}
 * @demo {csf} {import('./my-el.stories.js').complex}
 */
class MyEl extends HTMLElement {} 

I could also see a nice plugin supporting the automatic association of these across files, etc.

0reactions
thepasslecommented, Jun 26, 2021

My opinion is to have demo be an optional URL or URL array, maybe maybe with title attr

But this again assumes the demo is something that has an url

Read more comments on GitHub >

github_iconTop Results From Across the Web

Seven Things Songwriters Can Do With Their Finished Song ...
Seven Things Songwriters Can Do With Their Finished Song Demos · 1. Catalog them · 2. Show them to your PRO representative ·...
Read more >
What Makes the Perfect Demo? | MusicWorld | BMI.com
“How good do demos need to be?” is one of the questions I am ... The ideal song demo is one that clearly...
Read more >
Music Demo: 6 Reasons to Record Your Demo Tracks
Learn what a demo is and music why to make your own music demos in your workflow. From industry submissions to recording help,...
Read more >
What is a Product Demo & Why is it Important? - Demodesk
The sales product demo is critical in the sales process of a SaaS company. It's an opportunity to demonstrate the value of your...
Read more >
Learn the Basics of Music Demos - LiveAbout
How Musicians and Songwriters Use Demos. Demos of new songs can be given to producers before a band goes into the studio. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found