Commit dcffbbab authored by Chris Rebert's avatar Chris Rebert

pass grunt into generateRawFilesJs instead of require()ing it

parent 1c6d303b
...@@ -460,7 +460,7 @@ module.exports = function (grunt) { ...@@ -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.
......
...@@ -10,7 +10,6 @@ ...@@ -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) { ...@@ -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 = '';
} }
......
Markdown is supported
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