0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

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-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.

View File

@ -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 = '';
}