GithubHelp home page GithubHelp logo

jharding / grunt-less Goto Github PK

View Code? Open in Web Editor NEW
41.0 2.0 7.0 144 KB

[deprecated] Grunt plugin for LESS.

Home Page: https://npmjs.org/package/grunt-less

License: MIT License

JavaScript 100.00%

grunt-less's Introduction

build status grunt-less (deprecated)

This grunt plugin has been deprecated. If you're looking for a less grunt plugin, check out grunt-contrib-less.

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-less

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-less');

Documentation

This task is a multi task, meaning that grunt will automatically iterate over all less targets if a target is not specified.

Target Properties

  • src(required): The LESS file(s) to be compiled. Can be either a string or an array of strings. If more than one LESS file is provided, each LESS file will be compiled individually and then concatenated together.
  • dest(required): The path where the output from the LESS compilation should be placed. Must be a string as there can be only one destination.
  • options(optional): An object of LESS options. As of right now, the only options supported are compress and yuicompress.

Example

// project configuration
grunt.initConfig({
  less: {
    signup: {
      src: 'signup.less',
      dest: 'signup.css'
    },
    homepage: {
      src: ['banner.less', 'app.less'],
      dest: 'homepage.css',
      options: {
        yuicompress: true
      }
    },
    all: {
      src: '*.less',
      dest: 'all.css',
      options: {
        compress: true
      }
    }
  }
});

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

  • 08/28/2012 - 0.1.6: Remove grunt as a dependency.
  • 06/14/2012 - 0.1.5: Added test cases.
  • 04/08/2012 - 0.1.4: Refactored the code to make the helper function more usable.
  • 04/08/2012 - 0.1.3: Added gruntplugin keyword to be consistent with other plugins.
  • 04/05/2012 - 0.1.2: Added support for wildcard patterns and normalizing linefeeds for concatenation.
  • 04/04/2012 - 0.1.1: Checking to see if the src and dest properties are defined. Also now accept a string for src and not just an array of strings.
  • 04/04/2012 - 0.1.0: Initial release.

License

Copyright (c) 2012 Jake Harding
Licensed under the MIT license.

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.