0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Gruntfile cleanup

This commit is contained in:
Hannah Wolfe 2013-09-12 21:03:01 +01:00
parent 60635991db
commit eb15a37850

View file

@ -6,7 +6,6 @@ var path = require('path'),
spawn = require("child_process").spawn,
buildDirectory = path.resolve(process.cwd(), '.build'),
distDirectory = path.resolve(process.cwd(), '.dist'),
config = require('./config'),
_ = require('underscore'),
configureGrunt = function (grunt) {
@ -110,9 +109,7 @@ var path = require('path'),
// allow unused parameters
unparam: true,
// don't require use strict pragma
sloppy: true,
// allow bitwise operators
bitwise: true
sloppy: true
},
files: {
src: [
@ -487,6 +484,7 @@ var path = require('path'),
// Using this janky looking integerising-method
// because it's faster and doesn't result in NaN, which
// breaks sorting
/*jslint bitwise: true */
return (+b[1] | 0) - (+a[1] | 0);
}
@ -501,7 +499,7 @@ var path = require('path'),
.map(function (tag) {
return {
"tag": tag.split(/tags\//).pop().trim(),
"ref": tag.split(/\s+/).shift().trim(),
"ref": tag.split(/\s+/).shift().trim()
};
})
.sort(sortTags);