Comments (7)
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.
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.
@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.
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.
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.
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.
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)
- !important declaration not handled HOT 3
- background-position property not handled HOT 6
- Can't install it on ubuntu HOT 1
- Support 'border-left-color' HOT 1
- CLI not working on ubuntu HOT 1
- how can I make the output not be minified ? HOT 4
- How can I make R2 to skip a section in the css file? HOT 5
- R2 produces extra curly brackets in a certain situation HOT 2
- Media queries and asterisks HOT 2
- R2 fails if the CSS rule is empty
- r2 command not working in ubuntu 13.04 HOT 3
- Enable TravisCI on the repo HOT 1
- Enable TravisCI for the repo HOT 5
- Support for CSS Shadows and Transitions HOT 1
- Try using CSSOM as the backend
- License
- R2 fails on empty files HOT 3
- Support Gradients
- Semicolons in content block can break parsing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from r2.