module.exports = function(grunt) {

  // Project configuration
  grunt.initConfig({

    clean: {
      all: {
        src: ['.tmp', 'dist']
      }
    },
    
    concat: {
      all: {
        src: [
          'less/mixins.less',
          'less/variables.less',
          'less/*.less',
        ],
        dest: '.tmp/styles.less'
      }
    },

    less: {
      all: {
        src: '<%= concat.all.dest %>',
        dest: 'dist/styles.css'
      }
    },

    cssmin: {
      all: {
        src: '<%= less.all.dest %>',
        dest: 'dist/styles.min.css'
      }
    },

    connect: {
      server: {
        options: {
          base: ['demo', 'dist'],
          open: 'http://localhost:8000/index.html',
          livereload: true
        },
      }
    },

    watch: {
      all: {
        options: {
          livereload: true
        },
        files: '<%= concat.all.src %>',
        tasks: ['default']
      }
    }

  });

  // Load plugins
  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

  // Register task(s)
  grunt.registerTask('default', [
    'clean',
    'concat',
    'less',
    'cssmin'
  ]);

  grunt.registerTask('server', [
    'default',
    'connect',
    'watch'
  ]);

};

module.exports = function(grunt) {

  // Project configuration
  grunt.initConfig({

    clean: {
      all: {
        src: ['.tmp', 'dist']
      }
    },
    
    concat: {
      all: {
        src: [
          'less/mixins.less',
          'less/variables.less',
          'less/*.less',
        ],
        dest: '.tmp/styles.less'
      }
    },

    less: {
      all: {
        src: '<%= concat.all.dest %>',
        dest: 'dist/styles.css'
      }
    },

    cssmin: {
      all: {
        src: '<%= less.all.dest %>',
        dest: 'dist/styles.min.css'
      }
    },

    connect: {
      server: {
        options: {
          base: ['demo', 'dist'],
          port: 9090,
          open: 'http://localhost:9090/index.html',
          livereload: true
        },
      }
    },

    watch: {
      all: {
        options: {
          livereload: true
        },
        files: '<%= concat.all.src %>',
        tasks: ['default']
      }
    }

  });

  // Load plugins
  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

  // Register task(s)
  grunt.registerTask('default', [
    'clean',
    'concat',
    'less',
    'cssmin'
  ]);

  grunt.registerTask('server', [
    'default',
    'connect',
    'watch'
  ]);

};

Use different port for server task
chore: Use different port for server task
