Code Monkey home page Code Monkey logo

Comments (4)

godanny86 avatar godanny86 commented on May 26, 2024 1

Hi @CodeByAlex!

Thanks for reaching out! Yes, I agree there should be a better way to integrate storybook with AEM components then copy + paste :)

I've had a few thoughts. One would be to look at a node-based HTL compiler [0], [1] to compile component scripts from ui.apps.

Other ideas would be to somehow point to an instance of AEM/page and dynamically pull in the rendered markup and smartly identify which components/stories it belongs to.

Definitely open to other creative ideas!

[0] - https://github.com/adobe/htlengine
[1] - https://www.npmjs.com/package/htl-compiler

from aem-guides-wknd.

godanny86 avatar godanny86 commented on May 26, 2024 1

Hey @CodeByAlex absolutely. I'll reach out over email.

from aem-guides-wknd.

CodeByAlex avatar CodeByAlex commented on May 26, 2024

I love that you brought up those options @godanny86. I’ve worked on the storybook open source project so I’m familiar with the architecture. I’ve seen a few implementations so far to achieve what you have done in this project which is to use the storybook react app or storybook html app to display aem components. I think a good solution would be to create a native storybook aem library that uses one of the above compilers. This is a new effort and I’ve got another dev who will be working with me on this. Would you want to be involved in that too?

from aem-guides-wknd.

godanny86 avatar godanny86 commented on May 26, 2024

if anyone is interested in contributing to this effort, checkout: https://github.com/storybookjs/aem

from aem-guides-wknd.

Related Issues (20)

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.