Giter Club home page Giter Club logo

auto-story-generator's Introduction

@takuma-ru/auto-story-generator

asg-thumbnail

Description

Automatic real-time story file generation from React, Vue, Angular and Lit component files

Getting Started

1. Install the package

npm i @takuma-ru/auto-story-generator

2. Add config

Add settings to main.ts in Storybook (./storybook/main.ts)

For React, Vite

import type { StorybookConfig } from "@storybook/react-vite";

import { mergeConfig } from "vite";

import autoStoryGenerator from "@takuma-ru/auto-story-generator";

const config: StorybookConfig = {
  viteFinal: async (config) =>
    mergeConfig(config, {
      plugins: [
        autoStoryGenerator.vite({
          preset: "react",
          imports: ["src/components/**/*.tsx"],
        }),
      ],
    }),
};

export default config;

Supported Frameworks

✅: Supported
🚧: Work in progress
❌: Not supported
📝: Not yet implemented

Framework Supported
React
Vue 🚧
Lit
Angular 🚧
Svelte 📝
Custom 📝

auto-story-generator's People

Contributors

github-actions[bot] avatar takuma-ru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

auto-story-generator's Issues

:bug: GitHub Release CI修正

Describe the bug

get-package-info の修正

To Reproduce

get-package-info から情報を取得できる

Terminal Info

  • OS:
  • Browser:
  • Version:
  • Library version:

Additional context

No response

:sparkles: Next用デモの作成

Is your feature request related to a problem? Please describe

Describe the solution you'd like

Describe alternatives you've considered

Additional context

:bug: Sometimes paths are taken as backslash in Windows

Describe the bug (required)

Some path operations fail because process.cwd() is taken as a backslash path.

To Reproduce (required)

Run in Wondows11

Expected behavior (required)

Pass operation succeeds

Screenshots

Terminal Info (please complete the following information):

  • OS: Winsows11
  • Browser:
  • Browser version:
  • Library version:

Additional context

:sparkles: Support Angular

Describe the NEW feature

Make Angular support based on #15

(I want to put GeetaKrishna65 in the contributor's name and would like to ask GeetaKrishna65 to do some of the implementation.)

Additional context

No response

:bug: globs do not load properly

Describe the bug

globs do not load properly

To Reproduce

file:///........./node_modules/.pnpm/@[email protected]/node_modules/@takuma-ru/auto-story-generator/dist/index.js:24
import glob2 from "glob";
       ^^^^^
SyntaxError: The requested module 'glob' does not provide an export named 'default'

Terminal Info

  • OS:
  • Browser:
  • Version:
  • Library version: 0.3.0

Additional context

No response

:bug: Error when specifying a path that does not exist in imports

Describe the bug

Error when specifying a path that does not exist in imports

To Reproduce

asg.webpack({
  preset: "react",
  imports: ["src/components/**/*.tsx", "src/XXXX/**/*.tsx" /* <- non-existent path */],
})

Terminal Info

  • OS:
  • Browser:
  • Version:
  • Library version:

Additional context

No response

♻️ Review file structure

Describe the improve feature

Review the structure of files and functions due to the increased complexity of the processing flow

Additional context

No response

:bug: Failure release action

Describe the bug

Failure release action

To Reproduce

No response

Terminal Info

  • OS:
  • Browser:
  • Version:
  • Library version:

Additional context

No response

:sparkles: Creation of PR Templates

Is your feature request related to a problem? Please describe

Creation of PR Templates

Describe the solution you'd like

Describe alternatives you've considered

Additional context

📝 FAQページの追加

Issue Type.

  • Add
  • Update
  • Fixes

Please describe your request in detail.

よくある質問を書く

Other Background

:sparkles: Update Issue Templates

Is your feature request related to a problem? Please describe

Update Issue Templates

Describe the solution you'd like

Describe alternatives you've considered

Additional context

:bug: File changes are not detected under Webpack environment

Describe the bug (required)

File changes are not detected under Webpack environment

To Reproduce (required)

demo/next/

Expected behavior (required)

Component change detection in the webpack environment as well as in the vite environment.

Screenshots

Terminal Info (please complete the following information):

  • OS:
  • Browser:
  • Browser version:
  • Library version:

Additional context

:sparkles: Lit用デモの作成

Is your feature request related to a problem? Please describe

Describe the solution you'd like

  • Lit 用デモプロジェクトを作成する

Describe alternatives you've considered

Additional context

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.