Giter Site home page Giter Site logo

Add a task for Less.js about grunt HOT 11 CLOSED

gruntjs avatar gruntjs commented on August 26, 2024
Add a task for Less.js

from grunt.

Comments (11)

cowboy avatar cowboy commented on August 26, 2024

Can you take a stab at building a task (or tasks) for these?

from grunt.

tbranyen avatar tbranyen commented on August 26, 2024

There is a task already created for less here: https://github.com/tbranyen/build-tasks/tree/master/less

from grunt.

tauren avatar tauren commented on August 26, 2024

Thanks @tbranyen. Nice to see a project already doing this. Unfortunately, it does both the less and compressing in one task. They should be broken into separate tasks.

I'd certainly be happy to work on this when I get a chance.

from grunt.

tbranyen avatar tbranyen commented on August 26, 2024

Absolutely agree with that. It should be decoupled.

from grunt.

rowanmanning avatar rowanmanning commented on August 26, 2024

For quite specific libraries, like LESS, does it make more sense to have a simple plugin system or maintain a repository of user-contributed extensions? I may be wrong, but this doesn't feel like it should be in the core build tool.

I use LESS for a lot of projects, but I also have projects where it'd be an unneeded extra :)

from grunt.

svnlto avatar svnlto commented on August 26, 2024

there is a task for less.js that's pretty decent.

https://github.com/mklabs/gruntfiles/blob/master/tasks/less.js

from grunt.

errcw avatar errcw commented on August 26, 2024

I have a task that I wrote for stylus:
https://github.com/errcw/gruntfiles/blob/master/tasks/stylus.js

But I agree with @rowanmanning that the right approach is likely not to include ten kitchen sinks of tasks in grunt itself but rather to provide some mechanism of easily pulling in user-contributed tasks (and for that, perhaps ~/.grunt is sufficient?).

from grunt.

tkellen avatar tkellen commented on August 26, 2024

@tauren minification isn't enforced in that task, but it is an option.

from grunt.

jharding avatar jharding commented on August 26, 2024

In case anyone comes here looking for an npm task for LESS (like I initially did), I've created grunt-less.

from grunt.

cowboy avatar cowboy commented on August 26, 2024

If anything, this belongs in the upcoming grunt-contrib plugin.

from grunt.

tkellen avatar tkellen commented on August 26, 2024

already in there! i just haven't pushed it to npm yet.

from grunt.

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.