Commit dcffbbab authored by Chris Rebert's avatar Chris Rebert
Browse files

pass grunt into generateRawFilesJs instead of require()ing it

parent 1c6d303b
Showing with 2 additions and 3 deletions
+2 -3
......@@ -460,7 +460,7 @@ module.exports = function (grunt) {
grunt.registerTask('build-customizer-html', 'jade');
grunt.registerTask('build-raw-files', 'Add scripts/less files to customizer.', function () {
var banner = grunt.template.process('<%= banner %>');
generateRawFiles(banner);
generateRawFiles(grunt, banner);
});
// Task for updating the npm packages used by the Travis build.
......
......@@ -10,7 +10,6 @@
'use strict';
var fs = require('fs');
var btoa = require('btoa');
var grunt = require('grunt');
function getFiles(type) {
var files = {};
......@@ -25,7 +24,7 @@ function getFiles(type) {
return 'var __' + type + ' = ' + JSON.stringify(files) + '\n';
}
module.exports = function generateRawFilesJs(banner) {
module.exports = function generateRawFilesJs(grunt, banner) {
if (!banner) {
banner = '';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment