Skip to content

Instantly share code, notes, and snippets.

@jonschlinkert
Forked from axelhzf/gist:3192614
Created November 3, 2012 14:33
Show Gist options
  • Save jonschlinkert/4007536 to your computer and use it in GitHub Desktop.
Save jonschlinkert/4007536 to your computer and use it in GitHub Desktop.

Revisions

  1. @axelhzf axelhzf created this gist Jul 28, 2012.
    31 changes: 31 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    module.exports = function (grunt) {

    // Project configuration.
    grunt.initConfig({
    less: {
    all: {
    src: '*.less',
    dest: 'style.css'
    }
    },
    watch : {
    files : '<config:less.all.src>',
    tasks : 'less reload'
    },

    reload: {
    proxy: {}
    },
    server : {
    port : 8000
    }
    });

    // External tasks
    grunt.loadNpmTasks('grunt-less');
    grunt.loadNpmTasks('grunt-reload');

    // Custom tasks names
    grunt.registerTask('default', 'less');
    grunt.registerTask('dev', 'server reload watch');
    };