Comments (4)
@shilman I think it is this package right?
https://www.npmjs.com/package/@storybook/csf-tools
from csf.
That's the one. Use loadCsf
, which will give you a CsfFile
object back. It's pretty hacked together, so the interface might change in the future. But it's fairly well tested and used thoughout the storybook codebase
from csf.
@shilman I try to read tsx file in utf8 and pass it code as first argument to loadCsf but result has empty array in stories property and undefined in meta property
Is there an examples of using?
UPD
turns out I had to call parse before reading properties
from csf.
Thank you all for answers
from csf.
Related Issues (13)
- Kind meta types don't have `includeStories` and `excludeStories` fields
- Storybook 6.0 type changes HOT 3
- header image
- Only exports that are functions should be considered stories HOT 1
- Using these utilities as a way of getting story IDs
- Dynamic stories HOT 3
- Security Vulnerability - Bump lodash to 4.17.21 (from 4.17.15)
- Type of args no longer inferred in render HOT 6
- Publish ESM HOT 9
- How do we include markdown in between stories without MDX?
- License? HOT 4
- The readme is wrong about the package name HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csf.