Coder Social home page Coder Social logo

Looking for collaborators about css-values HOT 9 OPEN

ben-eb avatar ben-eb commented on May 27, 2024 1
Looking for collaborators

from css-values.

Comments (9)

davidtheclark avatar davidtheclark commented on May 27, 2024 1

Thanks for the confirmation. Will probably dig in pretty soon. Meanwhile, just ran across this: http://www.slideshare.net/maxdesign/understanding-the-mysteries-of-the-css-property-value-syntax. You probably already reviewed that information when making the parser. Helped me.

from css-values.

ben-eb avatar ben-eb commented on May 27, 2024 1

This is also a good resource. 😄

https://developer.mozilla.org/en/docs/Web/CSS/Value_definition_syntax

from css-values.

delorge avatar delorge commented on May 27, 2024 1

@ben-eb okay, I will take a look today or next week

from css-values.

davidtheclark avatar davidtheclark commented on May 27, 2024

The thing that I think would help the most in bringing me or some other potential contributor up to speed on the intentions module would be an example how it would get used. How would a tool like stylelint use this? Would stylelint have to run acquire and run itself and then use the built functions? Or would the built functions be published somehow?

from css-values.

ben-eb avatar ben-eb commented on May 27, 2024

css-values is a tool to create modules (or other things). So if we wanted to make a plugin for stylelint, we would install css-values as a development dependency, and then run the generator to output that plugin. Then, consumers of that plugin download the built functions and not the methods used to generate them.

I haven't decided on acquire, other than we should run that periodically to catch updates to the dataset - that's a good task that a bot could do. I think it will be good when we reach 1.0.0 to publish dataset updates with semantic versioning - new properties are minor versions, changes to existing properties are major versions.

from css-values.

davidtheclark avatar davidtheclark commented on May 27, 2024

Ok, I'd like to try to talk through some details and you correct me if I'm wrong :)

  • acquire simply gets the latest JSON data from MDN.
  • When you run, you parse the values of that JSON data (so css-values includes an MDN-spec-syntax parser) to generate an tree of nodes.
  • Using that node tree, you generate a bunch of functions that can check whether a property-value pair matches the spec.
  • The end-user, then, has access to the generated functions (if they want to validate property-value pairs) and also to the node tree itself (if they want to, say, generate a document or do something else).

So if stylelint made a rule that uses generated functions to check for invalid values, it would

  • Pull in CSS-values as a dev dependency.
  • Run CSS-values and put the output into a directory that is part of the repo, versioned & released.
  • Reference those generated functions from its value-no-unknown rule.

Does the above sound right? This kind of practice really helps me understand new things.

from css-values.

ben-eb avatar ben-eb commented on May 27, 2024

Spot on, yeah. Note that in addition to acquire, we supplement that data with Autoprefixer (this is just for vendor specific keywords). At the moment that is pulled in via whatever Autoprefixer version the module is currently using.

from css-values.

delorge avatar delorge commented on May 27, 2024

@ben-eb I can be an collaborator :) Atm I'm not familiar with API yet, but I can help with property coverage for a first time.

from css-values.

ben-eb avatar ben-eb commented on May 27, 2024

@delorge I've sent an invite so you can contribute directly to this repo if you would like! I think there are a few more simple tasks in this format (#10), if you would like to take those also it would be really great;

from css-values.

Related Issues (17)

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.