Giter Club home page Giter Club logo

Comments (3)

drudge avatar drudge commented on July 19, 2024

@tonyganch: I've updated the mixin to use the csscomb node module. This has been pushed as v2.0.0 and is live in Chocolat's "Install Mixin" menu.

from csscomb.chocmixin.

tonyganch avatar tonyganch commented on July 19, 2024

@drudge, I don't like the idea of storing node_modules, the whole csscomb.js repo and all its dependencies in this plugin.
And I'm sad that it's published already.
Can we please discuss this?

from csscomb.chocmixin.

tonyganch avatar tonyganch commented on July 19, 2024

@drudge, first of all, the plugin is broken now.
Have you tested it?
You can not use csscomb like this: new Comb().processString(text).
There should be a config file.
Default one is .csscomb.json in the root of the module.
So code should like this:

var comb = new Comb(),
    config = require(pathToConfig);
comb.configure(config);
comb.processString(text);

Secondly, csscomb's module should be removed from this repo.
There are at least two ways to include it:

  1. Ask users to run npm install csscomb -g and then require the global module inside your plugin.
  2. Require npm module inside your plugin, run npm install csscomb (either with spawn/exec, or with npm.load()) and then use the local module.
    The second one is preferred if there is no problem with write permissions.

Please, can you unpublish this broken version?

from csscomb.chocmixin.

Related Issues (3)

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.