• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

211
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

almost 3 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error