Giter Club home page Giter Club logo

Comments (2)

hughsk avatar hughsk commented on July 2, 2024

Definitely - but sass/scss is written in Ruby and I don't want to have to bundle that in with the NPM module. There's sass.js but it's implemented differently.

The module parses every file that matches the mask option for either // or /* */ comments, so it's just a matter of changing the mask. The --css and --less flags are just to make the CLI more accessible - I'll add --mask to the CLI later tonight so you can point it at your sass/scss, otherwise if anyone wants to submit a pull request with support for one of the other Node-based preprocessors they're more than welcome :)

from kss-node.

recomputing avatar recomputing commented on July 2, 2024

That sounds great! I don't mind using the css generated from the sass - but the comment structure is different:

/* a:
 * 
 * .star - change color to blue
 * .disabled - change color to gray
 *
 * Styleguide 1.0
 *
 * Markup: <a class="{$modifiers}">
 */

This doesn't match the mask that is in the code. Even without the ruby parser it would be possible to match this as a comment to allow the CLI to find the different sections.

from kss-node.

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.