pass grunt into generateRawFilesJs instead of require()ing it

This commit is contained in:
Chris Rebert 2014-03-17 03:33:42 -07:00
parent 1c6d303b76
commit dcffbbab61
2 changed files with 2 additions and 3 deletions

View File

@ -460,7 +460,7 @@ module.exports = function (grunt) {
grunt.registerTask('build-customizer-html', 'jade'); grunt.registerTask('build-customizer-html', 'jade');
grunt.registerTask('build-raw-files', 'Add scripts/less files to customizer.', function () { grunt.registerTask('build-raw-files', 'Add scripts/less files to customizer.', function () {
var banner = grunt.template.process('<%= banner %>'); var banner = grunt.template.process('<%= banner %>');
generateRawFiles(banner); generateRawFiles(grunt, banner);
}); });
// Task for updating the npm packages used by the Travis build. // Task for updating the npm packages used by the Travis build.

View File

@ -10,7 +10,6 @@
'use strict'; 'use strict';
var fs = require('fs'); var fs = require('fs');
var btoa = require('btoa'); var btoa = require('btoa');
var grunt = require('grunt');
function getFiles(type) { function getFiles(type) {
var files = {}; var files = {};
@ -25,7 +24,7 @@ function getFiles(type) {
return 'var __' + type + ' = ' + JSON.stringify(files) + '\n'; return 'var __' + type + ' = ' + JSON.stringify(files) + '\n';
} }
module.exports = function generateRawFilesJs(banner) { module.exports = function generateRawFilesJs(grunt, banner) {
if (!banner) { if (!banner) {
banner = ''; banner = '';
} }