Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

rename grunt.utils to grunt.util #7

Closed
wants to merge 5 commits into from

2 participants

Daniel Gräber Jake Harding
Daniel Gräber

Issue #159 remove grunt.utils

grunt.utils was renamed to grunt.util and deprecated in 0.4.0. grunt.utils should be removed completely, maybe in 0.5.0.

Daniel Gräber

until 4.x grunt :)

Jake Harding
Owner

What might be better here is:

var utils = grunt.util || grunt.utils;

This would be compatible with all versions of Grunt. Then in a few months when most Grunt users have upgraded from 0.3.x, it can be changed to what you currently have. Thoughts?

Nice one. 2d58117

Daniel Gräber added some commits
Daniel Gräber Update task.js - fallback for grunt.util 2d58117
Daniel Gräber rename grunt.utils to grunt.util 428d876
Daniel Gräber Merge branch 'patch-2' of github.com:gorekee/grunt-less into patch-2
* 'patch-2' of github.com:gorekee/grunt-less:
  Update task.js - fallback for grunt.util
  rename grunt.utils to grunt.util

Conflicts:
	tasks/less.js
a58e2ee
Daniel Gräber albohlabs closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 5 unique commits by 2 authors.

May 09, 2012
Daniel Gräber rename grunt.utils to grunt.util 4a91be0
Jake Harding Merge pull request #5 from gorekee/patch-1
rename task to grunt
8a64ed9
May 12, 2012
Daniel Gräber Update task.js - fallback for grunt.util 2d58117
Daniel Gräber rename grunt.utils to grunt.util 428d876
Daniel Gräber Merge branch 'patch-2' of github.com:gorekee/grunt-less into patch-2
* 'patch-2' of github.com:gorekee/grunt-less:
  Update task.js - fallback for grunt.util
  rename grunt.utils to grunt.util

Conflicts:
	tasks/less.js
a58e2ee
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  tasks/less.js
2  tasks/less.js
@@ -10,7 +10,7 @@ module.exports = function(grunt) {
10 10 // Grunt utilities.
11 11 var task = grunt.task;
12 12 var file = grunt.file;
13   - var utils = grunt.utils;
  13 + var utils = grunt.util || grunt.utils;
14 14 var log = grunt.log;
15 15 var verbose = grunt.verbose;
16 16 var fail = grunt.fail;

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.