Giter VIP home page Giter VIP logo

Comments (4)

MoOx avatar MoOx commented on May 29, 2024

I've think about that too.
But I don't like the idea of a cssnext-core name.
What about a cssnext-cli than get the cli bin ?

from postcss-cssnext.

necolas avatar necolas commented on May 29, 2024

yeah that was my first thought too - example of that approach would the karma and grunt projects

from postcss-cssnext.

MoOx avatar MoOx commented on May 29, 2024

Ok I've prepared something, but after thinking about it I'm unsure if it's nice to do that, mainly for maintenance. For example to test cli, I've to duplicate some fixtures in the cssnext-cli repo.
From what I remember when I checked grunt-cli (I've already made something similar in the past for another project), the "thing"-cli doesn't contains the cli logic, it's just a wrapper to the cli.
Confirmed by this
https://github.com/gruntjs/grunt-cli/blob/6b9c34abbb08bd945fb52e9ae98c999377a44fd2/bin/grunt#L44-L45
And this
https://github.com/gruntjs/grunt/blob/master/lib/grunt/cli.js

So I'm unsure if it worth it. Grunt did that because it's mainly a cli tool & it helps to use different versions, but for example cssnext will mainly be used via nodejs directly & only occasionally run using cli or for testing purpose like you do it with suit preprocessor https://github.com/suitcss/components-grid/blob/master/package.json#L18-L19 & like I do with my poor cssrecipes.

We only have a simple bin, not a big deal don't you think ?

ps: autoprefixer did that because I were asking for a postcss-autoprefixer plugin only, & after a weird discussion, autoprefixer-core came out 💃
fyi

from postcss-cssnext.

necolas avatar necolas commented on May 29, 2024

sgtm

from postcss-cssnext.

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.