Git Product home page Git Product logo

Comments (7)

BYK avatar BYK commented on June 13, 2024

Oh, thank you for bringing this up!

I like the idea of plugins though I'm not use if we should have it in a folder in the package itself. I'd rather we have a convention such as Grunt plugins. I'll also look how ESLint does it and try to replicate that functionality.

from r2.

BYK avatar BYK commented on June 13, 2024

I guess I'll choose the "Grunt way" which both has conventions and options for NPM packages and a local "extra tasks" directory.

I'll update the ticket once I have something working.

from r2.

jbalsas avatar jbalsas commented on June 13, 2024

@BYK That sounds awesome!!

I completely agree about building a proper plugin architecture outside the r2 package. We just wanted to have something working and get the ball rolling ;)

As a bonus, it'd be useful if valueMap functions received some context such as within which declaration or rule are they. This would allow for more specific and conflict-free plugins.

from r2.

jbalsas avatar jbalsas commented on June 13, 2024

Another important need for this, as we can see, is the possibility to register several plugins for the same valueMap functions. If functions receive context, then it's easy to just affect a selected group of rules, but more than one plugin may want to get a chance at changing the value of some property...

from r2.

jbalsas avatar jbalsas commented on June 13, 2024

Hey @BYK,

Have you been able to make any progress on this?

Please, let us know if we could assist you in any way :)

from r2.

BYK avatar BYK commented on June 13, 2024

Hey @jbalsas, thanks for following up! I'm sorry to keep you waiting though I had a pretty rough month. I plan to spend some time on this in the first half of March.

If you have any prototypes for such plugin system, I can use them as a start too. My plan is to have something similar to grunt's plugin system.

from r2.

jbalsas avatar jbalsas commented on June 13, 2024

Hi @BYK, thanks for letting me know. We applied the temporary solution to our fork and that's what we're using for now with good results. Sadly, I got sidetracked with other stuff, so I couldn't work any further on this...

For reference, in case it helps with the specs for the architecture, you can check which kind of additional conversions we're applying in our plugins

I'll try to look into it again, but I'm not sure I'll be able to do that before March either. I'll keep you informed.

Thanks!

from r2.

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.