Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Calculator

0

108
Views
Angular Storybook - Is there a way to generate .stories.ts files automatically

I'm looking to generate a .stories.ts file inside a component folder once we have run ng g component my-component.

The final result should look somehting like this:

my-component

  -my-component.component.html

   .

   .

   .

  -my-component.stories.ts

What I've found so far is a PR that seems to be resolved about using angular with storybook, but i can't find something that explicitly tells how i can do this

The other solution i came across is creating the sript that generates this extra file by myself so that i can run somehting like: ng g component my-component && node generate-story-file.js my-component

Does anyone know if there is another solution?

Thx

7 months ago ยท Juan Pablo Isaza
Answer question
Find remote jobs